From 739d3ddd566a5ed2273aef41b35a131d93dda09b Mon Sep 17 00:00:00 2001 From: Renz Bagaporo Date: Thu, 2 Jul 2026 15:46:31 +0900 Subject: [PATCH] fix(ulp): clear LP GPIO edge wakeup latch --- components/ulp/lp_core/lp_core/include/ulp_lp_core_gpio.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/ulp/lp_core/lp_core/include/ulp_lp_core_gpio.h b/components/ulp/lp_core/lp_core/include/ulp_lp_core_gpio.h index 1c2baafb1a0..42b7cbde807 100644 --- a/components/ulp/lp_core/lp_core/include/ulp_lp_core_gpio.h +++ b/components/ulp/lp_core/lp_core/include/ulp_lp_core_gpio.h @@ -199,6 +199,11 @@ static inline void ulp_lp_core_gpio_intr_enable(lp_io_num_t lp_io_num, gpio_int_ static inline void ulp_lp_core_gpio_clear_intr_status(void) { rtcio_ll_clear_interrupt_status(); +#if CONFIG_IDF_TARGET_ESP32P4 + for (int rtcio_num = 0; rtcio_num < SOC_RTCIO_PIN_COUNT; rtcio_num++) { + LP_GPIO.pin[rtcio_num].edge_wakeup_clr = 1; + } +#endif } /**