From b96c370ab86b1c43a3cf9c8810f9065d810355fb Mon Sep 17 00:00:00 2001 From: Armando Date: Wed, 15 Feb 2023 16:23:53 +0800 Subject: [PATCH] esp_hw_support: move driver/intr_types.h to esp_hw_support to make it available to all g1+ components --- components/driver/spi/include/driver/spi_common.h | 2 +- .../driver => esp_hw_support/include}/intr_types.h | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) rename components/{driver/spi/include/driver => esp_hw_support/include}/intr_types.h (73%) 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;