mt2523 Please describe sleep manager function
时间:10-02
整理:3721RD
点击:
Enter power saving mode
The purpose is to save power.
Use API : hal_sleep_manager_enter_sleep_mode() to enter sleep mode.
Sleep lock control
The purpose is to lock sleep.
If module need hold system awake, let device can’t go to sleep.
Use API : hal_sleep_manager_lock_sleep() to apply Sleep Lock or call hal_sleep_manager_unlock_sleep() to unlock the applied Sleep Lock.
Set wake up time
Set sleep time length. If no other wake up event occurs, the system will sleep for a specific time
Use API : hal_sleep_manager_set_sleep_time() to wake up the system after a specific time in milliseconds.
Config the Wakeup Source
It is possible to apply multiple Wakeup Sources in the hardware design to wake up the system fROM the Sleep Mode.
Use API : hal_sleep_manager_enable_wakeup_pin() to set a specific
Wakeup Source.
Use API : hal_sleep_manager_disable_wakeup_pin() to disable the specific Wakeup Source.
The purpose is to save power.
Use API : hal_sleep_manager_enter_sleep_mode() to enter sleep mode.
Sleep lock control
The purpose is to lock sleep.
If module need hold system awake, let device can’t go to sleep.
Use API : hal_sleep_manager_lock_sleep() to apply Sleep Lock or call hal_sleep_manager_unlock_sleep() to unlock the applied Sleep Lock.
Set wake up time
Set sleep time length. If no other wake up event occurs, the system will sleep for a specific time
Use API : hal_sleep_manager_set_sleep_time() to wake up the system after a specific time in milliseconds.
Config the Wakeup Source
It is possible to apply multiple Wakeup Sources in the hardware design to wake up the system fROM the Sleep Mode.
Use API : hal_sleep_manager_enable_wakeup_pin() to set a specific
Wakeup Source.
Use API : hal_sleep_manager_disable_wakeup_pin() to disable the specific Wakeup Source.
