1 /* 2 * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include "esp_cpu.h" 8 #include "esp_riscv_intr.h" 9 esp_cpu_intr_get_desc(int core_id,int intr_num,esp_cpu_intr_desc_t * intr_desc_ret)10void esp_cpu_intr_get_desc(int core_id, int intr_num, esp_cpu_intr_desc_t *intr_desc_ret) 11 { 12 /* On targets that uses CLIC as the interrupt controller, the first 16 lines (0..15) are reserved for software 13 * interrupts, all the other lines starting from 16 and above can be used by external peripheral. 14 * 15 * Reserve interrupt line 1 for the Wifi controller. 16 * Reserve interrupt line 6 since it is used for disabling interrupts in the interrupt allocator (INT_MUX_DISABLED_INTNO) 17 */ 18 const uint32_t rsvd_mask = BIT(1) | BIT(6); 19 intr_desc_ret->priority = 1; 20 intr_desc_ret->type = ESP_CPU_INTR_TYPE_NA; 21 intr_desc_ret->flags = esp_riscv_intr_num_flags(intr_num, rsvd_mask); 22 } 23