Обновление
This commit is contained in:
parent
583b6e04e1
commit
84af4f698a
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
@ -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);
|
||||
|
||||
|
||||
|
||||
InitThreadAtrStatic(&env->thread.attr, "CommandLine", env->thread.controlBlock, env->thread.stack,
|
||||
osPriorityNormal);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ typedef struct {
|
|||
|
||||
struct {
|
||||
tCliRedirectItem commandPrefixes[10];
|
||||
uint8_t cmdRxLine[128];
|
||||
uint8_t cmdRxLine[512];
|
||||
} mem;
|
||||
|
||||
tCliCmd cmd;
|
||||
|
|
|
|||
Loading…
Reference in New Issue