Обновление
This commit is contained in:
parent
583b6e04e1
commit
84af4f698a
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -53,8 +52,7 @@ void CommandLine_Init(tCommandLine *env, tSerialPortIO *cliVirtualPortIn_Io, tSe
|
||||||
CliRedirectionTable_RecAddStatic(&env->redirectTable, "help", CliCmd_baseCommandHelp, NULL);
|
CliRedirectionTable_RecAddStatic(&env->redirectTable, "help", CliCmd_baseCommandHelp, NULL);
|
||||||
CliRedirectionTable_RecAddStatic(&env->redirectTable, "mem", vTaskGetRunTime, NULL);
|
CliRedirectionTable_RecAddStatic(&env->redirectTable, "mem", vTaskGetRunTime, NULL);
|
||||||
CliRedirectionTable_RecAddStatic(&env->redirectTable, "reboot", CliCmd_baseCommandReboot, 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, "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,
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue