mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
intr_alloc: Fixed missing portEXIT_CRITICAL_SAFE
Closes https://github.com/espressif/esp-idf/pull/9867 [darian@espressif.com: Updated commit message] Signed-off-by: Darian Leung <darian@espressif.com>
This commit is contained in:
parent
bcb9328618
commit
2ac7008a16
@ -801,6 +801,7 @@ esp_err_t IRAM_ATTR esp_intr_enable(intr_handle_t handle)
|
|||||||
} else {
|
} else {
|
||||||
//Re-enable using cpu int ena reg
|
//Re-enable using cpu int ena reg
|
||||||
if (handle->vector_desc->cpu != esp_cpu_get_core_id()) {
|
if (handle->vector_desc->cpu != esp_cpu_get_core_id()) {
|
||||||
|
portEXIT_CRITICAL_SAFE(&spinlock);
|
||||||
return ESP_ERR_INVALID_ARG; //Can only enable these ints on this cpu
|
return ESP_ERR_INVALID_ARG; //Can only enable these ints on this cpu
|
||||||
}
|
}
|
||||||
ESP_INTR_ENABLE(handle->vector_desc->intno);
|
ESP_INTR_ENABLE(handle->vector_desc->intno);
|
||||||
|
Loading…
Reference in New Issue
Block a user