Обновление

This commit is contained in:
cfif 2026-01-16 11:40:13 +03:00
parent 583b6e04e1
commit 84af4f698a
2 changed files with 7 additions and 9 deletions

View File

@ -9,6 +9,7 @@
#include <string.h> #include <string.h>
#include "math.h" #include "math.h"
#include "stdlib.h" #include "stdlib.h"
#include "fc7xxx_driver_rgm.h"
int32_t CliCmd_baseCommandHelp(void *env, tCliCmd *cli) { int32_t CliCmd_baseCommandHelp(void *env, tCliCmd *cli) {
@ -23,10 +24,8 @@ int32_t CliCmd_baseCommandHelp(void *env, tCliCmd *cli) {
return 0; return 0;
} }
int32_t CliCmd_baseCommandReboot(void *env, tCliCmd *cli) { int32_t CliCmd_baseCommandReboot(void *env, tCliCmd *cli) {
//NVIC_SystemReset(); NVIC_SystemReset();
return 0; return 0;
} }
@ -56,7 +55,6 @@ void CommandLine_Init(tCommandLine *env, tSerialPortIO *cliVirtualPortIn_Io, tSe
CliRedirectionTable_RecAddStatic(&env->redirectTable, "set_Amb_Fb", (cliCall) CliCmd_set_Amb_Fb, env); CliRedirectionTable_RecAddStatic(&env->redirectTable, "set_Amb_Fb", (cliCall) CliCmd_set_Amb_Fb, env);
InitThreadAtrStatic(&env->thread.attr, "CommandLine", env->thread.controlBlock, env->thread.stack, InitThreadAtrStatic(&env->thread.attr, "CommandLine", env->thread.controlBlock, env->thread.stack,
osPriorityNormal); osPriorityNormal);
} }

View File

@ -14,7 +14,7 @@ typedef struct {
struct { struct {
tCliRedirectItem commandPrefixes[10]; tCliRedirectItem commandPrefixes[10];
uint8_t cmdRxLine[128]; uint8_t cmdRxLine[512];
} mem; } mem;
tCliCmd cmd; tCliCmd cmd;