Jelajahi Sumber

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
Armando (Dou Yiwen) 3 tahun lalu
induk
melakukan
76989b504a

+ 1 - 1
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

+ 6 - 2
components/driver/spi/include/driver/intr_types.h → 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;