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

Function _pm_device_resume

components/drivers/pm/pm.c:136–149  ·  view source on GitHub ↗

* This function will resume all registered devices */

Source from the content-addressed store, hash-verified

134 * This function will resume all registered devices
135 */
136static void _pm_device_resume(rt_uint8_t mode)
137{
138 struct rt_device_pm *device_pm = RT_NULL;
139 rt_slist_t *node = RT_NULL;
140
141 for (node = rt_slist_first(&_pm.device_list); node; node = rt_slist_next(node))
142 {
143 device_pm = rt_slist_entry(node, struct rt_device_pm, list);
144 if (device_pm->ops != RT_NULL && device_pm->ops->resume != RT_NULL)
145 {
146 device_pm->ops->resume(device_pm->device, mode);
147 }
148 }
149}
150
151/**
152 * This function will update the frequency of all registered devices

Callers 1

_pm_change_sleep_modeFunction · 0.85

Calls 2

rt_slist_firstFunction · 0.85
rt_slist_nextFunction · 0.85

Tested by

no test coverage detected