hw_uart.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. //*****************************************************************************
  2. //
  3. // hw_uart.h - Macros and defines used when accessing the UART hardware.
  4. //
  5. // Copyright (c) 2005-2010 Texas Instruments Incorporated. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Texas Instruments (TI) is supplying this software for use solely and
  9. // exclusively on TI's microcontroller products. The software is owned by
  10. // TI and/or its suppliers, and is protected under applicable copyright
  11. // laws. You may not combine this software with "viral" open-source
  12. // software in order to form a larger program.
  13. //
  14. // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
  15. // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
  16. // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  17. // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
  18. // CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
  19. // DAMAGES, FOR ANY REASON WHATSOEVER.
  20. //
  21. // This is part of revision 6459 of the Stellaris Firmware Development Package.
  22. //
  23. //*****************************************************************************
  24. #ifndef __HW_UART_H__
  25. #define __HW_UART_H__
  26. //*****************************************************************************
  27. //
  28. // The following are defines for the UART register offsets.
  29. //
  30. //*****************************************************************************
  31. #define UART_O_DR 0x00000000 // UART Data
  32. #define UART_O_RSR 0x00000004 // UART Receive Status/Error Clear
  33. #define UART_O_ECR 0x00000004 // UART Receive Status/Error Clear
  34. #define UART_O_FR 0x00000018 // UART Flag
  35. #define UART_O_ILPR 0x00000020 // UART IrDA Low-Power Register
  36. #define UART_O_IBRD 0x00000024 // UART Integer Baud-Rate Divisor
  37. #define UART_O_FBRD 0x00000028 // UART Fractional Baud-Rate
  38. // Divisor
  39. #define UART_O_LCRH 0x0000002C // UART Line Control
  40. #define UART_O_CTL 0x00000030 // UART Control
  41. #define UART_O_IFLS 0x00000034 // UART Interrupt FIFO Level Select
  42. #define UART_O_IM 0x00000038 // UART Interrupt Mask
  43. #define UART_O_RIS 0x0000003C // UART Raw Interrupt Status
  44. #define UART_O_MIS 0x00000040 // UART Masked Interrupt Status
  45. #define UART_O_ICR 0x00000044 // UART Interrupt Clear
  46. #define UART_O_DMACTL 0x00000048 // UART DMA Control
  47. #define UART_O_LCTL 0x00000090 // UART LIN Control
  48. #define UART_O_LSS 0x00000094 // UART LIN Snap Shot
  49. #define UART_O_LTIM 0x00000098 // UART LIN Timer
  50. //*****************************************************************************
  51. //
  52. // The following are defines for the bit fields in the UART_O_DR register.
  53. //
  54. //*****************************************************************************
  55. #define UART_DR_OE 0x00000800 // UART Overrun Error
  56. #define UART_DR_BE 0x00000400 // UART Break Error
  57. #define UART_DR_PE 0x00000200 // UART Parity Error
  58. #define UART_DR_FE 0x00000100 // UART Framing Error
  59. #define UART_DR_DATA_M 0x000000FF // Data Transmitted or Received
  60. #define UART_DR_DATA_S 0
  61. //*****************************************************************************
  62. //
  63. // The following are defines for the bit fields in the UART_O_RSR register.
  64. //
  65. //*****************************************************************************
  66. #define UART_RSR_OE 0x00000008 // UART Overrun Error
  67. #define UART_RSR_BE 0x00000004 // UART Break Error
  68. #define UART_RSR_PE 0x00000002 // UART Parity Error
  69. #define UART_RSR_FE 0x00000001 // UART Framing Error
  70. //*****************************************************************************
  71. //
  72. // The following are defines for the bit fields in the UART_O_ECR register.
  73. //
  74. //*****************************************************************************
  75. #define UART_ECR_DATA_M 0x000000FF // Error Clear
  76. #define UART_ECR_DATA_S 0
  77. //*****************************************************************************
  78. //
  79. // The following are defines for the bit fields in the UART_O_FR register.
  80. //
  81. //*****************************************************************************
  82. #define UART_FR_RI 0x00000100 // Ring Indicator
  83. #define UART_FR_TXFE 0x00000080 // UART Transmit FIFO Empty
  84. #define UART_FR_RXFF 0x00000040 // UART Receive FIFO Full
  85. #define UART_FR_TXFF 0x00000020 // UART Transmit FIFO Full
  86. #define UART_FR_RXFE 0x00000010 // UART Receive FIFO Empty
  87. #define UART_FR_BUSY 0x00000008 // UART Busy
  88. #define UART_FR_DCD 0x00000004 // Data Carrier Detect
  89. #define UART_FR_DSR 0x00000002 // Data Set Ready
  90. #define UART_FR_CTS 0x00000001 // Clear To Send
  91. //*****************************************************************************
  92. //
  93. // The following are defines for the bit fields in the UART_O_ILPR register.
  94. //
  95. //*****************************************************************************
  96. #define UART_ILPR_ILPDVSR_M 0x000000FF // IrDA Low-Power Divisor
  97. #define UART_ILPR_ILPDVSR_S 0
  98. //*****************************************************************************
  99. //
  100. // The following are defines for the bit fields in the UART_O_IBRD register.
  101. //
  102. //*****************************************************************************
  103. #define UART_IBRD_DIVINT_M 0x0000FFFF // Integer Baud-Rate Divisor
  104. #define UART_IBRD_DIVINT_S 0
  105. //*****************************************************************************
  106. //
  107. // The following are defines for the bit fields in the UART_O_FBRD register.
  108. //
  109. //*****************************************************************************
  110. #define UART_FBRD_DIVFRAC_M 0x0000003F // Fractional Baud-Rate Divisor
  111. #define UART_FBRD_DIVFRAC_S 0
  112. //*****************************************************************************
  113. //
  114. // The following are defines for the bit fields in the UART_O_LCRH register.
  115. //
  116. //*****************************************************************************
  117. #define UART_LCRH_SPS 0x00000080 // UART Stick Parity Select
  118. #define UART_LCRH_WLEN_M 0x00000060 // UART Word Length
  119. #define UART_LCRH_WLEN_5 0x00000000 // 5 bits (default)
  120. #define UART_LCRH_WLEN_6 0x00000020 // 6 bits
  121. #define UART_LCRH_WLEN_7 0x00000040 // 7 bits
  122. #define UART_LCRH_WLEN_8 0x00000060 // 8 bits
  123. #define UART_LCRH_FEN 0x00000010 // UART Enable FIFOs
  124. #define UART_LCRH_STP2 0x00000008 // UART Two Stop Bits Select
  125. #define UART_LCRH_EPS 0x00000004 // UART Even Parity Select
  126. #define UART_LCRH_PEN 0x00000002 // UART Parity Enable
  127. #define UART_LCRH_BRK 0x00000001 // UART Send Break
  128. //*****************************************************************************
  129. //
  130. // The following are defines for the bit fields in the UART_O_CTL register.
  131. //
  132. //*****************************************************************************
  133. #define UART_CTL_CTSEN 0x00008000 // Enable Clear To Send
  134. #define UART_CTL_RTSEN 0x00004000 // Enable Request to Send
  135. #define UART_CTL_RTS 0x00000800 // Request to Send
  136. #define UART_CTL_DTR 0x00000400 // Data Terminal Ready
  137. #define UART_CTL_RXE 0x00000200 // UART Receive Enable
  138. #define UART_CTL_TXE 0x00000100 // UART Transmit Enable
  139. #define UART_CTL_LBE 0x00000080 // UART Loop Back Enable
  140. #define UART_CTL_LIN 0x00000040 // LIN Mode Enable
  141. #define UART_CTL_HSE 0x00000020 // High-Speed Enable
  142. #define UART_CTL_EOT 0x00000010 // End of Transmission
  143. #define UART_CTL_SMART 0x00000008 // ISO 7816 Smart Card Support
  144. #define UART_CTL_SIRLP 0x00000004 // UART SIR Low-Power Mode
  145. #define UART_CTL_SIREN 0x00000002 // UART SIR Enable
  146. #define UART_CTL_UARTEN 0x00000001 // UART Enable
  147. //*****************************************************************************
  148. //
  149. // The following are defines for the bit fields in the UART_O_IFLS register.
  150. //
  151. //*****************************************************************************
  152. #define UART_IFLS_RX_M 0x00000038 // UART Receive Interrupt FIFO
  153. // Level Select
  154. #define UART_IFLS_RX1_8 0x00000000 // RX FIFO >= 1/8 full
  155. #define UART_IFLS_RX2_8 0x00000008 // RX FIFO >= 1/4 full
  156. #define UART_IFLS_RX4_8 0x00000010 // RX FIFO >= 1/2 full (default)
  157. #define UART_IFLS_RX6_8 0x00000018 // RX FIFO >= 3/4 full
  158. #define UART_IFLS_RX7_8 0x00000020 // RX FIFO >= 7/8 full
  159. #define UART_IFLS_TX_M 0x00000007 // UART Transmit Interrupt FIFO
  160. // Level Select
  161. #define UART_IFLS_TX1_8 0x00000000 // TX FIFO <= 1/8 full
  162. #define UART_IFLS_TX2_8 0x00000001 // TX FIFO <= 1/4 full
  163. #define UART_IFLS_TX4_8 0x00000002 // TX FIFO <= 1/2 full (default)
  164. #define UART_IFLS_TX6_8 0x00000003 // TX FIFO <= 3/4 full
  165. #define UART_IFLS_TX7_8 0x00000004 // TX FIFO <= 7/8 full
  166. //*****************************************************************************
  167. //
  168. // The following are defines for the bit fields in the UART_O_IM register.
  169. //
  170. //*****************************************************************************
  171. #define UART_IM_LME5IM 0x00008000 // LIN Mode Edge 5 Interrupt Mask
  172. #define UART_IM_LME1IM 0x00004000 // LIN Mode Edge 1 Interrupt Mask
  173. #define UART_IM_LMSBIM 0x00002000 // LIN Mode Sync Break Interrupt
  174. // Mask
  175. #define UART_IM_OEIM 0x00000400 // UART Overrun Error Interrupt
  176. // Mask
  177. #define UART_IM_BEIM 0x00000200 // UART Break Error Interrupt Mask
  178. #define UART_IM_PEIM 0x00000100 // UART Parity Error Interrupt Mask
  179. #define UART_IM_FEIM 0x00000080 // UART Framing Error Interrupt
  180. // Mask
  181. #define UART_IM_RTIM 0x00000040 // UART Receive Time-Out Interrupt
  182. // Mask
  183. #define UART_IM_TXIM 0x00000020 // UART Transmit Interrupt Mask
  184. #define UART_IM_RXIM 0x00000010 // UART Receive Interrupt Mask
  185. #define UART_IM_DSRMIM 0x00000008 // UART Data Set Ready Modem
  186. // Interrupt Mask
  187. #define UART_IM_DCDMIM 0x00000004 // UART Data Carrier Detect Modem
  188. // Interrupt Mask
  189. #define UART_IM_CTSMIM 0x00000002 // UART Clear to Send Modem
  190. // Interrupt Mask
  191. #define UART_IM_RIMIM 0x00000001 // UART Ring Indicator Modem
  192. // Interrupt Mask
  193. //*****************************************************************************
  194. //
  195. // The following are defines for the bit fields in the UART_O_RIS register.
  196. //
  197. //*****************************************************************************
  198. #define UART_RIS_LME5RIS 0x00008000 // LIN Mode Edge 5 Raw Interrupt
  199. // Status
  200. #define UART_RIS_LME1RIS 0x00004000 // LIN Mode Edge 1 Raw Interrupt
  201. // Status
  202. #define UART_RIS_LMSBRIS 0x00002000 // LIN Mode Sync Break Raw
  203. // Interrupt Status
  204. #define UART_RIS_OERIS 0x00000400 // UART Overrun Error Raw Interrupt
  205. // Status
  206. #define UART_RIS_BERIS 0x00000200 // UART Break Error Raw Interrupt
  207. // Status
  208. #define UART_RIS_PERIS 0x00000100 // UART Parity Error Raw Interrupt
  209. // Status
  210. #define UART_RIS_FERIS 0x00000080 // UART Framing Error Raw Interrupt
  211. // Status
  212. #define UART_RIS_RTRIS 0x00000040 // UART Receive Time-Out Raw
  213. // Interrupt Status
  214. #define UART_RIS_TXRIS 0x00000020 // UART Transmit Raw Interrupt
  215. // Status
  216. #define UART_RIS_RXRIS 0x00000010 // UART Receive Raw Interrupt
  217. // Status
  218. #define UART_RIS_DSRRIS 0x00000008 // UART Data Set Ready Modem Raw
  219. // Interrupt Status
  220. #define UART_RIS_DCDRIS 0x00000004 // UART Data Carrier Detect Modem
  221. // Raw Interrupt Status
  222. #define UART_RIS_CTSRIS 0x00000002 // UART Clear to Send Modem Raw
  223. // Interrupt Status
  224. #define UART_RIS_RIRIS 0x00000001 // UART Ring Indicator Modem Raw
  225. // Interrupt Status
  226. //*****************************************************************************
  227. //
  228. // The following are defines for the bit fields in the UART_O_MIS register.
  229. //
  230. //*****************************************************************************
  231. #define UART_MIS_LME5MIS 0x00008000 // LIN Mode Edge 5 Masked Interrupt
  232. // Status
  233. #define UART_MIS_LME1MIS 0x00004000 // LIN Mode Edge 1 Masked Interrupt
  234. // Status
  235. #define UART_MIS_LMSBMIS 0x00002000 // LIN Mode Sync Break Masked
  236. // Interrupt Status
  237. #define UART_MIS_OEMIS 0x00000400 // UART Overrun Error Masked
  238. // Interrupt Status
  239. #define UART_MIS_BEMIS 0x00000200 // UART Break Error Masked
  240. // Interrupt Status
  241. #define UART_MIS_PEMIS 0x00000100 // UART Parity Error Masked
  242. // Interrupt Status
  243. #define UART_MIS_FEMIS 0x00000080 // UART Framing Error Masked
  244. // Interrupt Status
  245. #define UART_MIS_RTMIS 0x00000040 // UART Receive Time-Out Masked
  246. // Interrupt Status
  247. #define UART_MIS_TXMIS 0x00000020 // UART Transmit Masked Interrupt
  248. // Status
  249. #define UART_MIS_RXMIS 0x00000010 // UART Receive Masked Interrupt
  250. // Status
  251. #define UART_MIS_DSRMIS 0x00000008 // UART Data Set Ready Modem Masked
  252. // Interrupt Status
  253. #define UART_MIS_DCDMIS 0x00000004 // UART Data Carrier Detect Modem
  254. // Masked Interrupt Status
  255. #define UART_MIS_CTSMIS 0x00000002 // UART Clear to Send Modem Masked
  256. // Interrupt Status
  257. #define UART_MIS_RIMIS 0x00000001 // UART Ring Indicator Modem Masked
  258. // Interrupt Status
  259. //*****************************************************************************
  260. //
  261. // The following are defines for the bit fields in the UART_O_ICR register.
  262. //
  263. //*****************************************************************************
  264. #define UART_ICR_LME5MIC 0x00008000 // LIN Mode Edge 5 Interrupt Clear
  265. #define UART_ICR_LME1MIC 0x00004000 // LIN Mode Edge 1 Interrupt Clear
  266. #define UART_ICR_LMSBMIC 0x00002000 // LIN Mode Sync Break Interrupt
  267. // Clear
  268. #define UART_ICR_OEIC 0x00000400 // Overrun Error Interrupt Clear
  269. #define UART_ICR_BEIC 0x00000200 // Break Error Interrupt Clear
  270. #define UART_ICR_PEIC 0x00000100 // Parity Error Interrupt Clear
  271. #define UART_ICR_FEIC 0x00000080 // Framing Error Interrupt Clear
  272. #define UART_ICR_RTIC 0x00000040 // Receive Time-Out Interrupt Clear
  273. #define UART_ICR_TXIC 0x00000020 // Transmit Interrupt Clear
  274. #define UART_ICR_RXIC 0x00000010 // Receive Interrupt Clear
  275. #define UART_ICR_DSRMIC 0x00000008 // UART Data Set Ready Modem
  276. // Interrupt Clear
  277. #define UART_ICR_DCDMIC 0x00000004 // UART Data Carrier Detect Modem
  278. // Interrupt Clear
  279. #define UART_ICR_CTSMIC 0x00000002 // UART Clear to Send Modem
  280. // Interrupt Clear
  281. #define UART_ICR_RIMIC 0x00000001 // UART Ring Indicator Modem
  282. // Interrupt Clear
  283. //*****************************************************************************
  284. //
  285. // The following are defines for the bit fields in the UART_O_DMACTL register.
  286. //
  287. //*****************************************************************************
  288. #define UART_DMACTL_DMAERR 0x00000004 // DMA on Error
  289. #define UART_DMACTL_TXDMAE 0x00000002 // Transmit DMA Enable
  290. #define UART_DMACTL_RXDMAE 0x00000001 // Receive DMA Enable
  291. //*****************************************************************************
  292. //
  293. // The following are defines for the bit fields in the UART_O_LCTL register.
  294. //
  295. //*****************************************************************************
  296. #define UART_LCTL_BLEN_M 0x00000030 // Sync Break Length
  297. #define UART_LCTL_BLEN_13T 0x00000000 // Sync break length is 13T bits
  298. // (default)
  299. #define UART_LCTL_BLEN_14T 0x00000010 // Sync break length is 14T bits
  300. #define UART_LCTL_BLEN_15T 0x00000020 // Sync break length is 15T bits
  301. #define UART_LCTL_BLEN_16T 0x00000030 // Sync break length is 16T bits
  302. #define UART_LCTL_MASTER 0x00000001 // LIN Master Enable
  303. //*****************************************************************************
  304. //
  305. // The following are defines for the bit fields in the UART_O_LSS register.
  306. //
  307. //*****************************************************************************
  308. #define UART_LSS_TSS_M 0x0000FFFF // Timer Snap Shot
  309. #define UART_LSS_TSS_S 0
  310. //*****************************************************************************
  311. //
  312. // The following are defines for the bit fields in the UART_O_LTIM register.
  313. //
  314. //*****************************************************************************
  315. #define UART_LTIM_TIMER_M 0x0000FFFF // Timer Value
  316. #define UART_LTIM_TIMER_S 0
  317. //*****************************************************************************
  318. //
  319. // The following definitions are deprecated.
  320. //
  321. //*****************************************************************************
  322. #ifndef DEPRECATED
  323. //*****************************************************************************
  324. //
  325. // The following are deprecated defines for the UART register offsets.
  326. //
  327. //*****************************************************************************
  328. #define UART_O_LCR_H 0x0000002C // Line Control Register, HIGH byte
  329. #define UART_O_PeriphID4 0x00000FD0
  330. #define UART_O_PeriphID5 0x00000FD4
  331. #define UART_O_PeriphID6 0x00000FD8
  332. #define UART_O_PeriphID7 0x00000FDC
  333. #define UART_O_PeriphID0 0x00000FE0
  334. #define UART_O_PeriphID1 0x00000FE4
  335. #define UART_O_PeriphID2 0x00000FE8
  336. #define UART_O_PeriphID3 0x00000FEC
  337. #define UART_O_PCellID0 0x00000FF0
  338. #define UART_O_PCellID1 0x00000FF4
  339. #define UART_O_PCellID2 0x00000FF8
  340. #define UART_O_PCellID3 0x00000FFC
  341. //*****************************************************************************
  342. //
  343. // The following are deprecated defines for the bit fields in the UART_O_DR
  344. // register.
  345. //
  346. //*****************************************************************************
  347. #define UART_DR_DATA_MASK 0x000000FF // UART data
  348. //*****************************************************************************
  349. //
  350. // The following are deprecated defines for the bit fields in the UART_O_IBRD
  351. // register.
  352. //
  353. //*****************************************************************************
  354. #define UART_IBRD_DIVINT_MASK 0x0000FFFF // Integer baud-rate divisor
  355. //*****************************************************************************
  356. //
  357. // The following are deprecated defines for the bit fields in the UART_O_FBRD
  358. // register.
  359. //
  360. //*****************************************************************************
  361. #define UART_FBRD_DIVFRAC_MASK 0x0000003F // Fractional baud-rate divisor
  362. //*****************************************************************************
  363. //
  364. // The following are deprecated defines for the bit fields in the UART_O_LCR_H
  365. // register.
  366. //
  367. //*****************************************************************************
  368. #define UART_LCR_H_SPS 0x00000080 // Stick Parity Select
  369. #define UART_LCR_H_WLEN 0x00000060 // Word length
  370. #define UART_LCR_H_WLEN_5 0x00000000 // 5 bit data
  371. #define UART_LCR_H_WLEN_6 0x00000020 // 6 bit data
  372. #define UART_LCR_H_WLEN_7 0x00000040 // 7 bit data
  373. #define UART_LCR_H_WLEN_8 0x00000060 // 8 bit data
  374. #define UART_LCR_H_FEN 0x00000010 // Enable FIFO
  375. #define UART_LCR_H_STP2 0x00000008 // Two Stop Bits Select
  376. #define UART_LCR_H_EPS 0x00000004 // Even Parity Select
  377. #define UART_LCR_H_PEN 0x00000002 // Parity Enable
  378. #define UART_LCR_H_BRK 0x00000001 // Send Break
  379. //*****************************************************************************
  380. //
  381. // The following are deprecated defines for the bit fields in the UART_O_IFLS
  382. // register.
  383. //
  384. //*****************************************************************************
  385. #define UART_IFLS_RX_MASK 0x00000038 // RX FIFO level mask
  386. #define UART_IFLS_TX_MASK 0x00000007 // TX FIFO level mask
  387. //*****************************************************************************
  388. //
  389. // The following are deprecated defines for the bit fields in the UART_O_ICR
  390. // register.
  391. //
  392. //*****************************************************************************
  393. #define UART_RSR_ANY (UART_RSR_OE | UART_RSR_BE | UART_RSR_PE | \
  394. UART_RSR_FE)
  395. //*****************************************************************************
  396. //
  397. // The following are deprecated defines for the Reset Values for UART
  398. // Registers.
  399. //
  400. //*****************************************************************************
  401. #define UART_RV_CTL 0x00000300
  402. #define UART_RV_PCellID1 0x000000F0
  403. #define UART_RV_PCellID3 0x000000B1
  404. #define UART_RV_FR 0x00000090
  405. #define UART_RV_PeriphID2 0x00000018
  406. #define UART_RV_IFLS 0x00000012
  407. #define UART_RV_PeriphID0 0x00000011
  408. #define UART_RV_PCellID0 0x0000000D
  409. #define UART_RV_PCellID2 0x00000005
  410. #define UART_RV_PeriphID3 0x00000001
  411. #define UART_RV_PeriphID4 0x00000000
  412. #define UART_RV_LCR_H 0x00000000
  413. #define UART_RV_PeriphID6 0x00000000
  414. #define UART_RV_DR 0x00000000
  415. #define UART_RV_RSR 0x00000000
  416. #define UART_RV_ECR 0x00000000
  417. #define UART_RV_PeriphID5 0x00000000
  418. #define UART_RV_RIS 0x00000000
  419. #define UART_RV_FBRD 0x00000000
  420. #define UART_RV_IM 0x00000000
  421. #define UART_RV_MIS 0x00000000
  422. #define UART_RV_ICR 0x00000000
  423. #define UART_RV_PeriphID1 0x00000000
  424. #define UART_RV_PeriphID7 0x00000000
  425. #define UART_RV_IBRD 0x00000000
  426. #endif
  427. #endif // __HW_UART_H__