Merge branch 'fix/fix_esp_sleep_get_ext1_wakeup_status_on_c6' into 'release/v5.1'

fix(esp_hw_support): fixed `esp_sleep_get_ext1_wakeup_status` always return 0 on esp32c6 (v5.1)

See merge request espressif/esp-idf!40310
This commit is contained in:
Jiang Jiang Jian
2025-07-08 10:47:31 +08:00

View File

@@ -297,6 +297,14 @@ static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t ty
{ {
LP_IO.pin[rtcio_num].wakeup_enable = 0x1; LP_IO.pin[rtcio_num].wakeup_enable = 0x1;
LP_IO.pin[rtcio_num].int_type = type; LP_IO.pin[rtcio_num].int_type = type;
/* Work around for HW issue,
need to also enable this clk, otherwise it will
not trigger a wake-up on the ULP. This is not needed
for triggering a wakeup on HP CPU, but always setting this
has no side-effects.
*/
LP_IO.date.clk_en = 1;
} }
/** /**