mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 04:26:04 +08:00
apps/nsh:add resetcause command
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
This commit is contained in:
@@ -439,6 +439,10 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
{ "reboot", cmd_reboot, 1, 2, NULL },
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_BOARDCTL_RESET_CAUSE) && !defined(CONFIG_NSH_DISABLE_RESET_CAUSE)
|
||||
{ "resetcause", cmd_reset_cause, 1, 1, NULL },
|
||||
#endif
|
||||
|
||||
#ifdef NSH_HAVE_DIROPTS
|
||||
# ifndef CONFIG_NSH_DISABLE_RM
|
||||
{ "rm", cmd_rm, 2, 3, "[-r] <file-path>" },
|
||||
|
Reference in New Issue
Block a user