apps/nshlib: Add new NSH command, 'pmconfig'.

This commit is contained in:
ligd
2019-11-04 07:44:33 -06:00
committed by Gregory Nutt
parent 25c59ccbfe
commit 42aaecf1d1
4 changed files with 106 additions and 0 deletions

View File

@@ -378,6 +378,10 @@ static const struct cmdmap_s g_cmdmap[] =
# endif
#endif
#if defined(CONFIG_PM) && !defined(CONFIG_NSH_DISABLE_PMCONFIG)
{ "pmconfig", cmd_pmconfig, 1, 3, "[stay|relax] [normal|idle|standby|sleep]" },
#endif
#if defined(CONFIG_BOARDCTL_POWEROFF) && !defined(CONFIG_NSH_DISABLE_POWEROFF)
{ "poweroff", cmd_poweroff, 1, 2, NULL },
#endif