From b43ef4c8e6825dcba3ae87ff40bbb78cf0458e3b Mon Sep 17 00:00:00 2001 From: Jason-mao Date: Fri, 7 Jun 2024 18:40:15 +0800 Subject: [PATCH] Fix a bug that there is no free ISR level1 on IDF v5.2 --- components/esp_peripherals/esp_peripherals.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esp_peripherals/esp_peripherals.c b/components/esp_peripherals/esp_peripherals.c index 99ead30b..5e141123 100644 --- a/components/esp_peripherals/esp_peripherals.c +++ b/components/esp_peripherals/esp_peripherals.c @@ -150,9 +150,9 @@ esp_periph_set_handle_t esp_periph_set_init(esp_periph_config_t *config) //TODO: Should we uninstall gpio isr service?? //TODO: Because gpio need for sdcard and gpio, then install isr here - ret = gpio_install_isr_service(ESP_INTR_FLAG_LEVEL1); + ret = gpio_install_isr_service(ESP_INTR_FLAG_LEVEL2); if (ret == ESP_ERR_NOT_FOUND) { - ESP_LOGE(TAG, "No free interrupt found with ESP_INTR_FLAG_LEVEL1"); + ESP_LOGE(TAG, "No free interrupt found with ESP_INTR_FLAG_LEVEL2"); #if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 0)) ESP_LOGE(TAG,"Select an available interrupt level based on the interrupt table below"); esp_intr_dump(stdout);