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

Function pm_sleep

components/drivers/pm/pm.c:102–106  ·  view source on GitHub ↗

enter sleep mode */

Source from the content-addressed store, hash-verified

100
101/* enter sleep mode */
102static void pm_sleep(struct rt_pm *pm, uint8_t sleep_mode)
103{
104 if (_pm.ops->sleep != RT_NULL)
105 _pm.ops->sleep(pm, sleep_mode);
106}
107
108/**
109 * This function will suspend all registered devices

Callers 1

_pm_change_sleep_modeFunction · 0.70

Calls 1

sleepMethod · 0.80

Tested by

no test coverage detected