MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_pm_run_mode_switch

Function rt_pm_run_mode_switch

components/drivers/pm/pm.c:1145–1154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1143MSH_CMD_EXPORT_ALIAS(rt_module_delay_sleep, pm_module_delay, module request delay sleep);
1144
1145static void rt_pm_run_mode_switch(int argc, char **argv)
1146{
1147 int mode = 0;
1148 if (argc >= 2)
1149 {
1150 mode = atoi(argv[1]);
1151 }
1152
1153 rt_pm_run_enter(mode);
1154}
1155MSH_CMD_EXPORT_ALIAS(rt_pm_run_mode_switch, pm_run, switch power management run mode);
1156
1157rt_uint32_t rt_pm_module_get_status(void)

Callers

nothing calls this directly

Calls 1

rt_pm_run_enterFunction · 0.85

Tested by

no test coverage detected