OS Sleep
API 介绍
This section introduces os sleep reference api.
Enums
-
enum OS_SLEEP_STATUS
os sleep status.
Values:
-
enumerator ABORT_SLEEP
abort entering a sleep mode.
-
enumerator STANDARD_SLEEP
Enter a sleep mode that will not last any longer than the expected idle time.
-
enumerator NO_TIMEOUT_SLEEP
No tasks are waiting for a timeout so it is safe to enter a sleep mode that can only be exited by an external interrupt.
-
enumerator ABORT_SLEEP
Functions
-
OS_SLEEP_STATUS os_get_sleep_status(void)
This function is used to get os sleep status.
- 返回:
OS_SLEEP_STATUS status indicate if os can sleep.
-
void os_tick_compensate(const uint32_t tick_cnt)
This function is used to compensate the os tick.
- 参数:
tick_cnt -- is the tick cnt need be added.