mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(intr_alloc): Fix ISR allocate methods in several drivers
This commit is contained in:
@@ -1581,7 +1581,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)
|
||||
|
||||
Reference in New Issue
Block a user