hi3861.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. #ifndef __HI3861_H__
  16. #define __HI3861_H__
  17. typedef enum IRQn {
  18. /****** RISC-V Privilege Interrupts ***************************************************/
  19. MACHINE_SOFTWARE_IRQ = 3,
  20. MACHINE_TIMER_IRQ = 7,
  21. MACHINE_EXTERNAL_IRQ = 11,
  22. NMI_IRQ = 12,
  23. /****** HiMedeer local Interrupts ***************************************************/
  24. TIMER_0_IRQ = 26,
  25. TIMER_1_IRQ = 27,
  26. TIMER_2_IRQ = 28,
  27. RTC_0_IRQ = 29,
  28. RTC_1_IRQ = 30,
  29. RTC_2_IRQ = 31,
  30. RTC_3_IRQ = 32,
  31. WDT_IRQ = 33,
  32. WLAN_IRQ = 34,
  33. DMA_IRQ = 35,
  34. SFC_IRQ = 36,
  35. SDIO_IRQ = 37,
  36. UART_0_IRQ = 38,
  37. UART_1_IRQ = 39,
  38. UART_2_IRQ = 40,
  39. I2C_0_IRQ = 41,
  40. I2C_1_IRQ = 42,
  41. SSP_0_IRQ = 43,
  42. SSP_1_IRQ = 44,
  43. GPIO_IRQ = 45,
  44. TSENSOR_IRQ = 46,
  45. WLAN_SLEEP_IRQ = 47,
  46. WLAN_WAKEUPT_IRQ = 48,
  47. OVER_TEMP_IRQ = 49,
  48. PMU_CMU_ERR_IRQ = 50,
  49. CPU_SOFT_0_IRQ = 51,
  50. CPU_SOFT_1_IRQ = 52,
  51. CPU_SOFT_2_IRQ = 53,
  52. CPU_SOFT_3_IRQ = 54,
  53. SSS_PKE_IRQ = 55,
  54. SSS_SYM_IRQ = 56,
  55. SSS_TRNG_IRQ = 57,
  56. ISADC_IRQ = 58,
  57. I2S_IRQ = 59,
  58. UDSLEEP_IRQ = 60,
  59. RAMMONITOR_IRQ = 61
  60. } IRQn_Type;
  61. #endif // __HI3861_H__