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

Function _pm_device_frequency_change

components/drivers/pm/pm.c:154–167  ·  view source on GitHub ↗

* This function will update the frequency of all registered devices */

Source from the content-addressed store, hash-verified

152 * This function will update the frequency of all registered devices
153 */
154static void _pm_device_frequency_change(rt_uint8_t mode)
155{
156 struct rt_device_pm *device_pm = RT_NULL;
157 rt_slist_t *node = RT_NULL;
158
159 for (node = rt_slist_first(&_pm.device_list); node; node = rt_slist_next(node))
160 {
161 device_pm = rt_slist_entry(node, struct rt_device_pm, list);
162 if (device_pm->ops->frequency_change != RT_NULL)
163 {
164 device_pm->ops->frequency_change(device_pm->device, mode);
165 }
166 }
167}
168
169/**
170 * This function will update the system clock frequency when idle

Callers 2

_pm_frequency_scalingFunction · 0.85
rt_pm_run_enterFunction · 0.85

Calls 2

rt_slist_firstFunction · 0.85
rt_slist_nextFunction · 0.85

Tested by

no test coverage detected