From 7ec38fcc42f401903b7232bab05c4cc187056d92 Mon Sep 17 00:00:00 2001 From: songruojing Date: Thu, 11 Nov 2021 12:14:32 +0800 Subject: [PATCH] gpio: Fix the bug that esp32 gpio interrupt cannot be triggered on core 1 Introduced in 874a720286b78e866684129ce18a6c948c8fa7fe Closes https://github.com/espressif/esp-idf/issues/7594 --- components/hal/esp32/include/hal/gpio_ll.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/hal/esp32/include/hal/gpio_ll.h b/components/hal/esp32/include/hal/gpio_ll.h index 2a4b0f0543..59a2858ce9 100644 --- a/components/hal/esp32/include/hal/gpio_ll.h +++ b/components/hal/esp32/include/hal/gpio_ll.h @@ -239,7 +239,7 @@ static inline void gpio_ll_get_intr_status(gpio_dev_t *hw, uint32_t core_id, uin */ static inline void gpio_ll_get_intr_status_high(gpio_dev_t *hw, uint32_t core_id, uint32_t *status) { - *status = (core_id == 0) ? HAL_FORCE_READ_U32_REG_FIELD(hw->pcpu_int1, intr) : HAL_FORCE_READ_U32_REG_FIELD(hw->pcpu_int1, intr); + *status = (core_id == 0) ? HAL_FORCE_READ_U32_REG_FIELD(hw->pcpu_int1, intr) : HAL_FORCE_READ_U32_REG_FIELD(hw->acpu_int1, intr); } /**