mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
fix(esp_hw_support): allow allocating interrupts with handlers in ROM with IRAM attribute
The interrupt allocator now allows allocating an interrupt with a handler in ROM and flags set to ESP_INTR_FLAG_IRAM
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -317,6 +317,18 @@ static inline int esp_intr_level_to_flags(int level)
|
||||
*/
|
||||
esp_err_t esp_intr_dump(FILE *stream);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Check if the given pointer is in the safe ISR area.
|
||||
* In other words, make sure that the pointer's content is accessible at
|
||||
* any time, regardless of the cache status
|
||||
*
|
||||
* @param ptr Pointer to check
|
||||
*
|
||||
* @return true if `ptr` points to ISR area, false else
|
||||
*/
|
||||
bool esp_intr_ptr_in_isr_region(void* ptr);
|
||||
|
||||
/**@}*/
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user