* This function set notification callback for application */
| 850 | * This function set notification callback for application |
| 851 | */ |
| 852 | void 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 |
no outgoing calls