fix(intr_alloc): Fix ISR allocate methods in several drivers

This commit is contained in:
Chen Chen
2026-01-07 10:17:09 +08:00
parent 27377d267b
commit 94f9f086f9
37 changed files with 265 additions and 29 deletions
+9 -1
View File
@@ -1280,7 +1280,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 ledc_isr_register(ledc_fade_isr, NULL, intr_alloc_flags | ESP_INTR_FLAG_IRAM, &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)