apps/nsh:add resetcause command

Signed-off-by: 田昕 <tianxin7@xiaomi.com>
This commit is contained in:
田昕
2022-03-30 15:38:21 +08:00
committed by Petro Karashchenko
parent 442d52e878
commit cbc9163266
4 changed files with 34 additions and 0 deletions

View File

@@ -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>" },