diff --git a/components/driver/spi/include/driver/spi_common.h b/components/driver/spi/include/driver/spi_common.h index 764b885359..17bb7576f3 100644 --- a/components/driver/spi/include/driver/spi_common.h +++ b/components/driver/spi/include/driver/spi_common.h @@ -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 diff --git a/components/driver/spi/include/driver/intr_types.h b/components/esp_hw_support/include/intr_types.h similarity index 73% rename from components/driver/spi/include/driver/intr_types.h rename to components/esp_hw_support/include/intr_types.h index baac907b12..81015ca02b 100644 --- a/components/driver/spi/include/driver/intr_types.h +++ b/components/esp_hw_support/include/intr_types.h @@ -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;