1 /* 2 * Copyright (c) 2020 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef __HI3861_H__ 17 #define __HI3861_H__ 18 19 typedef enum IRQn { 20 /****** RISC-V Privilege Interrupts ***************************************************/ 21 MACHINE_SOFTWARE_IRQ = 3, 22 MACHINE_TIMER_IRQ = 7, 23 MACHINE_EXTERNAL_IRQ = 11, 24 NMI_IRQ = 12, 25 26 /****** HiMedeer local Interrupts ***************************************************/ 27 TIMER_0_IRQ = 26, 28 TIMER_1_IRQ = 27, 29 TIMER_2_IRQ = 28, 30 RTC_0_IRQ = 29, 31 RTC_1_IRQ = 30, 32 RTC_2_IRQ = 31, 33 RTC_3_IRQ = 32, 34 WDT_IRQ = 33, 35 WLAN_IRQ = 34, 36 DMA_IRQ = 35, 37 SFC_IRQ = 36, 38 SDIO_IRQ = 37, 39 UART_0_IRQ = 38, 40 UART_1_IRQ = 39, 41 UART_2_IRQ = 40, 42 I2C_0_IRQ = 41, 43 I2C_1_IRQ = 42, 44 SSP_0_IRQ = 43, 45 SSP_1_IRQ = 44, 46 GPIO_IRQ = 45, 47 TSENSOR_IRQ = 46, 48 WLAN_SLEEP_IRQ = 47, 49 WLAN_WAKEUPT_IRQ = 48, 50 OVER_TEMP_IRQ = 49, 51 PMU_CMU_ERR_IRQ = 50, 52 CPU_SOFT_0_IRQ = 51, 53 CPU_SOFT_1_IRQ = 52, 54 CPU_SOFT_2_IRQ = 53, 55 CPU_SOFT_3_IRQ = 54, 56 SSS_PKE_IRQ = 55, 57 SSS_SYM_IRQ = 56, 58 SSS_TRNG_IRQ = 57, 59 ISADC_IRQ = 58, 60 I2S_IRQ = 59, 61 UDSLEEP_IRQ = 60, 62 RAMMONITOR_IRQ = 61 63 } IRQn_Type; 64 65 #endif // __HI3861_H__ 66 67