[feat][pm] add pm util for pds31 that ble needs

This commit is contained in:
jzlv 2021-09-30 14:59:08 +08:00
parent 28de956075
commit e3449aabde
5 changed files with 435 additions and 51 deletions

View file

@ -123,7 +123,7 @@ int hbn_run_in_wakeup_addr(int argc, char *argv[])
/*cpu will wakeup when you set gpio9-gpio12 with GPIO_FUN_WAKEUP
* rtc can not wakeup level2
**/
pm_hbn_set_wakeup_callback(led_blink); /*cpu will run in wakeup callback not reset when it awakes*/
pm_set_wakeup_callback(led_blink); /*cpu will run in wakeup callback not reset when it awakes*/
pm_hbn_mode_enter(PM_HBN_LEVEL_0, 0);
return 0;