-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Description
- Type: Question
- Related: RTX idle: sleep without locked deep sleep fix #5866
Question
According to the documentation, sleep is managed automatically, including deep sleep. However from what I see, deep sleep is locked by default_idle_hook()
for non-tickless targets
mbed-os/rtos/TARGET_CORTEX/mbed_rtx_idle.cpp
Lines 220 to 228 in ce4d6c9
static void default_idle_hook(void) | |
{ | |
// critical section to complete sleep with locked deepsleep | |
core_util_critical_section_enter(); | |
sleep_manager_lock_deep_sleep(); | |
sleep(); | |
sleep_manager_unlock_deep_sleep(); | |
core_util_critical_section_exit(); | |
} |
What is the reason for this? What is the expected way of entering deep sleep?
I know that it is possible to use a custom default_idle_hook()
, but before I do, I would like to understand it more.
Metadata
Metadata
Assignees
Labels
No labels