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

Function rt_system_power_manager

components/drivers/pm/pm.c:468–480  ·  view source on GitHub ↗

* This function will enter corresponding power mode. */

Source from the content-addressed store, hash-verified

466 * This function will enter corresponding power mode.
467 */
468void rt_system_power_manager(void)
469{
470 if (_pm_init_flag == 0 || _pm.ops == RT_NULL)
471 {
472 return;
473 }
474
475 /* CPU frequency scaling according to the runing mode settings */
476 _pm_frequency_scaling(&_pm);
477
478 /* Low Power Mode Processing */
479 _pm_change_sleep_mode(&_pm);
480}
481
482/**
483 * Upper application or device driver requests the system

Callers 1

idle_thread_entryFunction · 0.85

Calls 2

_pm_frequency_scalingFunction · 0.85
_pm_change_sleep_modeFunction · 0.85

Tested by

no test coverage detected