esp_hw_‎support/sleep: ‎fix cannot lightsleep again after a wakeup from ULP

Since ulp wakeup signal are connected to ulp int raw(except esp32), we
need to clear ulp int raw before sleep when ulp wakeup enabled. Otherwise,
if the ulp int raw is already set, chip will not sleep properly.

Closes https://github.com/espressif/esp-idf/issues/6229
This commit is contained in:
jingli
2022-05-02 12:31:25 +08:00
parent baa5b8ed7d
commit dd414b9305
6 changed files with 41 additions and 43 deletions
+2
View File
@@ -83,3 +83,5 @@ void rtc_cntl_hal_disable_tagmem_retention(void *addr);
* Enable wakeup from ULP coprocessor.
*/
#define rtc_hal_ulp_wakeup_enable() rtc_cntl_ll_ulp_wakeup_enable()
#define rtc_hal_ulp_int_clear() rtc_cntl_ll_ulp_int_clear()