mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ulp: make sure I_WAKE instruction works with ULP timer disabled
Setting ULP_CP_WAKEUP_FORCE_EN forces ULP wakeup to work even if the ULP timer has already been disabled.
This commit is contained in:
parent
5cab04075e
commit
e96d653c9e
@ -126,6 +126,9 @@ void IRAM_ATTR esp_deep_sleep_start()
|
||||
if (s_config.wakeup_triggers & EXT_EVENT1_TRIG_EN) {
|
||||
ext1_wakeup_prepare();
|
||||
}
|
||||
if (s_config.wakeup_triggers & SAR_TRIG_EN) {
|
||||
SET_PERI_REG_MASK(RTC_CNTL_STATE0_REG, RTC_CNTL_ULP_CP_WAKEUP_FORCE_EN);
|
||||
}
|
||||
// TODO: move timer wakeup configuration into a similar function
|
||||
// once rtc_sleep is opensourced.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user