Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_to_change_gpio_isr_level' into 'master'
Browse files Browse the repository at this point in the history
Fix a bug that there is no free ISR level1 on IDF v5.2

See merge request adf/esp-adf-internal!1300
  • Loading branch information
jason-mao committed Jun 7, 2024
2 parents 0593164 + b43ef4c commit 2c6b060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/esp_peripherals/esp_peripherals.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2c6b060

Please sign in to comment.