[CLI] reboot command added
This commit is contained in:
@@ -156,6 +156,14 @@ int cliStackInfo(const char ** argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int cliReboot(const char ** argv)
|
||||||
|
{
|
||||||
|
#if !defined(SIMU)
|
||||||
|
NVIC_SystemReset();
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(PCBFLAMENCO)
|
#if defined(PCBFLAMENCO)
|
||||||
int cliReadBQ24195(const char ** argv)
|
int cliReadBQ24195(const char ** argv)
|
||||||
{
|
{
|
||||||
@@ -372,6 +380,7 @@ const CliCommand cliCommands[] = {
|
|||||||
{ "ls", cliLs, "<directory>" },
|
{ "ls", cliLs, "<directory>" },
|
||||||
{ "play", cliPlay, "<filename>" },
|
{ "play", cliPlay, "<filename>" },
|
||||||
{ "print", cliDisplay, "<address> [<size>] | <what>" },
|
{ "print", cliDisplay, "<address> [<size>] | <what>" },
|
||||||
|
{ "reboot", cliReboot, "" },
|
||||||
{ "set", cliSet, "<what> <value>" },
|
{ "set", cliSet, "<what> <value>" },
|
||||||
{ "stackinfo", cliStackInfo, "" },
|
{ "stackinfo", cliStackInfo, "" },
|
||||||
{ "trace", cliTrace, "on | off" },
|
{ "trace", cliTrace, "on | off" },
|
||||||
|
|||||||
Reference in New Issue
Block a user