1 /* 2 * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #pragma once 7 8 #ifdef __cplusplus 9 extern "C" { 10 #endif 11 12 /** 13 * @brief Interrupt core ID type 14 * 15 * This type represents on which core your ISR is registered 16 */ 17 typedef enum { 18 INTR_CPU_ID_AUTO, ///< Register intr ISR to core automatically, this means the core on which you call `esp_intr_alloc` 19 INTR_CPU_ID_0, ///< Register intr ISR to core 0. 20 INTR_CPU_ID_1, ///< Register intr ISR to core 1. 21 } intr_cpu_id_t; 22 23 #define INTR_CPU_CONVERT_ID(cpu_id) ((cpu_id) - 1) 24 25 #ifdef __cplusplus 26 } 27 #endif 28