Merge branch 'fix/handle_shared_intr' into 'master'

Fix/handle shared intr

Closes IDF-12904

See merge request espressif/esp-idf!43149
This commit is contained in:
Chen Chen
2025-11-19 11:05:37 +08:00
45 changed files with 358 additions and 34 deletions
+9 -1
View File
@@ -1583,7 +1583,15 @@ esp_err_t ledc_fade_func_install(int intr_alloc_flags)
{
LEDC_CHECK(s_ledc_fade_isr_handle == NULL, "fade function already installed", ESP_ERR_INVALID_STATE);
//OR intr_alloc_flags with ESP_INTR_FLAG_IRAM because the fade isr is in IRAM
return esp_intr_alloc(ETS_LEDC_INTR_SOURCE, intr_alloc_flags | ESP_INTR_FLAG_IRAM, ledc_fade_isr, NULL, &s_ledc_fade_isr_handle);
return esp_intr_alloc_intrstatus(
ETS_LEDC_INTR_SOURCE,
intr_alloc_flags | ESP_INTR_FLAG_IRAM,
(uint32_t)ledc_hal_get_fade_end_intr_addr(&(p_ledc_obj[0]->ledc_hal)),
LEDC_LL_FADE_END_INTR_MASK,
ledc_fade_isr,
NULL,
&s_ledc_fade_isr_handle
);
}
void ledc_fade_func_uninstall(void)