Обновление

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 "math.h"
#include "stdlib.h"
#include "fc7xxx_driver_rgm.h"
int32_t CliCmd_baseCommandHelp(void *env, tCliCmd *cli) {
@ -23,10 +24,8 @@ int32_t CliCmd_baseCommandHelp(void *env, tCliCmd *cli) {
return 0;
}
int32_t CliCmd_baseCommandReboot(void *env, tCliCmd *cli) {
//NVIC_SystemReset();
NVIC_SystemReset();
return 0;
}
@ -50,11 +49,10 @@ void CommandLine_Init(tCommandLine *env, tSerialPortIO *cliVirtualPortIn_Io, tSe
CliCmd_InitStatic(&env->cmd, cliVirtualPortIn_Io, cliVirtualPortOut_Io, env->mem.cmdRxLine);
CliRedirectionTable_InitStatic(&env->redirectTable, env->mem.commandPrefixes);
CliRedirectionTable_RecAddStatic(&env->redirectTable, "help", CliCmd_baseCommandHelp, NULL);
CliRedirectionTable_RecAddStatic(&env->redirectTable, "mem", vTaskGetRunTime, NULL);
CliRedirectionTable_RecAddStatic(&env->redirectTable, "reboot", CliCmd_baseCommandReboot, NULL);
CliRedirectionTable_RecAddStatic(&env->redirectTable, "set_Amb_Fb", (cliCall)CliCmd_set_Amb_Fb, env);
CliRedirectionTable_RecAddStatic(&env->redirectTable, "help", CliCmd_baseCommandHelp, NULL);
CliRedirectionTable_RecAddStatic(&env->redirectTable, "mem", vTaskGetRunTime, NULL);
CliRedirectionTable_RecAddStatic(&env->redirectTable, "reboot", CliCmd_baseCommandReboot, NULL);
CliRedirectionTable_RecAddStatic(&env->redirectTable, "set_Amb_Fb", (cliCall) CliCmd_set_Amb_Fb, env);
InitThreadAtrStatic(&env->thread.attr, "CommandLine", env->thread.controlBlock, env->thread.stack,

View File

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