amt630hv160.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. #ifndef __AMT630HV160__H
  2. #define __AMT630HV160__H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  7. #include <stdint.h>
  8. #ifdef __cplusplus
  9. #define __I volatile /**< Defines 'read-only' permissions */
  10. #else
  11. #define __I volatile const /**< Defines 'read-only' permissions */
  12. #endif
  13. #define __O volatile /**< Defines 'write-only' permissions */
  14. #define __IO volatile /**< Defines 'read/write' permissions */
  15. #endif
  16. #include "os_adapt.h"
  17. typedef enum IRQn
  18. {
  19. LCD_IRQn = (32+0),
  20. MFC_IRQn = (32+1),
  21. GPU_IRQn = (32+2),
  22. USB_IRQn = (32+3),
  23. PXP_IRQn = (32+4),
  24. DMA_IRQn = (32+5),
  25. SDMMC0_IRQn = (32+6),
  26. SDMMC1_IRQn = (32+7),
  27. BLEND2D_IRQn = (32+8),
  28. QOI_IRQn = (32+9),
  29. ETH_IRQn = (32+10),
  30. WRAP_IRQn = (32+11),
  31. RDC_DDR_IRQn = (32+12),
  32. RDC_SRAM_IRQn = (32+13),
  33. SEMA_IRQn = (32+15),
  34. SPI0_IRQn = (32+16),
  35. SPI2_IRQn = (32+17),
  36. I2C0_IRQn = (32+18),
  37. I2C1_IRQn = (32+19),
  38. UART0_IRQn = (32+20),
  39. UART1_IRQn = (32+21),
  40. UART2_IRQn = (32+22),
  41. UART3_IRQn = (32+23),
  42. GPIOA_IRQn = (32+24),
  43. GPIOB_IRQn = (32+25),
  44. GPIOC_IRQn = (32+26),
  45. GPIOD_IRQn = (32+27),
  46. TIMER0_IRQn = (32+28),
  47. TIMER1_IRQn = (32+29),
  48. TIMER2_IRQn = (32+30),
  49. I2S1_IRQn = (32+31),
  50. ITU_IRQn = (32+32),
  51. WDT_IRQn = (32+33),
  52. I2S_IRQn = (32+34),
  53. RTC_ALM_IRQn = (32+35),
  54. RTC_PRD_IRQn = (32+36),
  55. ADC_IRQn = (32+37),
  56. PWM_IRQn = (32+38),
  57. TIMER3_IRQn = (32+39),
  58. RCRT_IRQn = (32+40),
  59. DDRCTL_INT_N_IRQn = (32+41),
  60. SPI1_IRQn = (32+42),
  61. CSI_IRQn = (32+43),
  62. ADC1_IRQn = (32+44),
  63. ADC2_IRQn = (32+45),
  64. GPIOE_IRQn = (32+46),
  65. MAILBOX_IRQn = (32+48),
  66. MAX_IRQ_NUM, /**< Number of peripheral IDs */
  67. } IRQn_Type;
  68. /*@}*/
  69. /* ************************************************************************** */
  70. /* BASE ADDRESS DEFINITIONS FOR AMT630HV160 */
  71. /* ************************************************************************** */
  72. /** \addtogroup AMT630HV160_base Peripheral Base Address Definitions */
  73. /*@{*/
  74. #define REGS_USB_BASE (0x40000000U)
  75. #define REGS_SDMMC0_BASE (0x40100000U)
  76. #define REGS_DMAC_BASE (0x40200000U)
  77. #define REGS_LCD_BASE (0x40300000U)
  78. #define REGS_SDMMC1_BASE (0x40400000U)
  79. #define REGS_GPU_BASE (0x40500000U)
  80. #define REGS_PXP_BASE (0x40600000U)
  81. #define REGS_MFC_BASE (0X40700000U)
  82. #define REGS_ITU_BASE (0x40800000U)
  83. #define REGS_QOI_BASE (0x40900000U)
  84. #define REGS_BLEND2D_BASE (0x40a00000U)
  85. #define REGS_ETH_BASE (0x40b00000U)
  86. #define REGS_WRAP_BASE (0x40c00000U)
  87. #define REGS_SPI0_BASE (0x40d00000U)
  88. #define REGS_SPI2_BASE (0x40d80000U)
  89. #define REGS_CRC_BASE (0x40e00000U)
  90. #define REGS_MAILBOX_BASE (0x40e80000U)
  91. #define REGS_SEMA_BASE (0x40f00000U)
  92. #define REGS_SYSCTL_BASE (0x50000000U)
  93. #define REGS_SPI1_BASE (0x50200000U)
  94. #define REGS_IIC0_BASE (0x50300000U)
  95. #define REGS_IIC1_BASE (0x50400000U)
  96. #define REGS_UART0_BASE (0x50500000U)
  97. #define REGS_UART1_BASE (0X50600000U)
  98. #define REGS_UART2_BASE (0X50700000U)
  99. #define REGS_UART3_BASE (0X50800000U)
  100. #define REGS_GPIO_BASE (0x50900000U)
  101. #define REGS_TIMER_BASE (0x50a00000U)
  102. #define REGS_PWM_BASE (0x50b00000U)
  103. #define REGS_WDT_BASE (0x50C00000U)
  104. #define REGS_I2S_BASE (0x50d00000U)
  105. #define REGS_I2S1_BASE (0x50f00000U)
  106. #define REGS_RTC_BASE (0x51000000U)
  107. #define REGS_ADC_BASE (0x51100000U)
  108. #define REGS_ADC1_BASE (0x51200000U)
  109. #define REGS_ADC2_BASE (0x51300000U)
  110. #define REGS_DDRCTL_BASE (0x51400000U)
  111. #define REGS_DDRPHY_BASE (0x51500000U)
  112. #define REGS_VBUS_BASE (0X51600000U)
  113. #define REGS_GBUS_BASE (0X51700000U)
  114. #define REGS_CHBUS_BASE (0X51800000U)
  115. #define REGS_CABUS_BASE (0X51900000U)
  116. #define REGS_DSI_BASE (0x51A00000U)
  117. #define REGS_CSI_BASE (0x51B00000U)
  118. #define REGS_RCRT_BASE (0x51c00000U)
  119. #define REGS_RDC_DDR_BASE (0X51d00000U)
  120. #define REGS_RDC_SRAM_BASE (0X51e00000U)
  121. #define REGS_GIC_BASE (0xE0B00000U)
  122. /* ************************************************************************** */
  123. /* ELECTRICAL DEFINITIONS FOR AMT630HV100 */
  124. /* ************************************************************************** */
  125. #ifdef __cplusplus
  126. }
  127. #endif
  128. /*@}*/
  129. #endif /* __AMT630HV160__H */