Merge branch 'refactor/move_isr_core_id_enum_to_g1' into 'master'

esp_hw_support: move driver/intr_types.h to esp_hw_support to make it available to all g1+ components

See merge request espressif/esp-idf!22182
This commit is contained in:
Armando (Dou Yiwen) 2023-02-16 11:02:56 +08:00
commit 76989b504a
2 changed files with 7 additions and 3 deletions

View File

@ -11,7 +11,7 @@
#include "sdkconfig.h"
#include "esp_err.h"
#include "esp_ipc.h"
#include "driver/intr_types.h"
#include "intr_types.h"
#include "hal/spi_types.h"
#ifdef __cplusplus

View File

@ -9,9 +9,13 @@
extern "C" {
#endif
///< Selecting the ISR to be registered on which core
/**
* @brief Interrupt core ID type
*
* This type represents on which core your ISR is registered
*/
typedef enum {
INTR_CPU_ID_AUTO, ///< Register intr ISR to core automatically select by FreeRTOS.
INTR_CPU_ID_AUTO, ///< Register intr ISR to core automatically, this means the core on which you call `esp_intr_alloc`
INTR_CPU_ID_0, ///< Register intr ISR to core 0.
INTR_CPU_ID_1, ///< Register intr ISR to core 1.
} intr_cpu_id_t;