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

Function rt_pm_notify_set

components/drivers/pm/pm.c:852–856  ·  view source on GitHub ↗

* This function set notification callback for application */

Source from the content-addressed store, hash-verified

850 * This function set notification callback for application
851 */
852void rt_pm_notify_set(void (*notify)(rt_uint8_t event, rt_uint8_t mode, void *data), void *data)
853{
854 _pm_notify.notify = notify;
855 _pm_notify.data = data;
856}
857
858/**
859 * This function set default sleep mode when no pm_request

Callers 1

pm_sample_initFunction · 0.85

Calls

no outgoing calls

Tested by 1

pm_sample_initFunction · 0.68