mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02: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:
@@ -126,6 +126,9 @@ void IRAM_ATTR esp_deep_sleep_start()
|
|||||||
if (s_config.wakeup_triggers & EXT_EVENT1_TRIG_EN) {
|
if (s_config.wakeup_triggers & EXT_EVENT1_TRIG_EN) {
|
||||||
ext1_wakeup_prepare();
|
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
|
// TODO: move timer wakeup configuration into a similar function
|
||||||
// once rtc_sleep is opensourced.
|
// once rtc_sleep is opensourced.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user