hw_epi.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. //*****************************************************************************
  2. //
  3. // hw_epi.h - Macros for use in accessing the EPI registers.
  4. //
  5. // Copyright (c) 2008-2009 Luminary Micro, Inc. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Luminary Micro, Inc. (LMI) is supplying this software for use solely and
  9. // exclusively on LMI's microcontroller products.
  10. //
  11. // The software is owned by LMI and/or its suppliers, and is protected under
  12. // applicable copyright laws. All rights are reserved. You may not combine
  13. // this software with "viral" open-source software in order to form a larger
  14. // program. Any use in violation of the foregoing restrictions may subject
  15. // the user to criminal sanctions under applicable laws, as well as to civil
  16. // liability for the breach of the terms and conditions of this license.
  17. //
  18. // THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
  19. // OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
  20. // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
  21. // LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
  22. // CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
  23. //
  24. // This is part of revision 4694 of the Stellaris Firmware Development Package.
  25. //
  26. //*****************************************************************************
  27. #ifndef __HW_EPI_H__
  28. #define __HW_EPI_H__
  29. //*****************************************************************************
  30. //
  31. // The following are defines for the External Peripheral Interface (EPI)
  32. //
  33. //*****************************************************************************
  34. #define EPI_O_CFG 0x00000000 // EPI Configuration
  35. #define EPI_O_BAUD 0x00000004 // EPI Main Baud Rate
  36. #define EPI_O_GPCFG 0x00000010 // EPI General Purpose
  37. // Configuration
  38. #define EPI_O_SDRAMCFG 0x00000010 // EPI SDRAM Mode Configuration
  39. #define EPI_O_HB8CFG 0x00000010 // EPI Host-Bus 8 Mode
  40. // Configuration
  41. #define EPI_O_HB8CFG2 0x00000014 // EPI Host-Bus 8 Configuration 2
  42. #define EPI_O_SDRAMCFG2 0x00000014 // EPI SDRAM Configuration 2
  43. #define EPI_O_GPCFG2 0x00000014 // EPI General-Purpose
  44. // Configuration 2
  45. #define EPI_O_ADDRMAP 0x0000001C // EPI Address Map
  46. #define EPI_O_RSIZE0 0x00000020 // EPI Read Size 0
  47. #define EPI_O_RADDR0 0x00000024 // EPI Read Address 0
  48. #define EPI_O_RPSTD0 0x00000028 // EPI Non-Blocking Read Data 0
  49. #define EPI_O_RSIZE1 0x00000030 // EPI Read Size 1
  50. #define EPI_O_RADDR1 0x00000034 // EPI Read Address 1
  51. #define EPI_O_RPSTD1 0x00000038 // EPI Non-Blocking Read Data 1
  52. #define EPI_O_STAT 0x00000060 // EPI Status
  53. #define EPI_O_RFIFOCNT 0x0000006C // EPI Read FIFO Count
  54. #define EPI_O_READFIFO 0x00000070 // EPI Read FIFO
  55. #define EPI_O_READFIFO1 0x00000074 // EPI Read FIFO Alias 1
  56. #define EPI_O_READFIFO2 0x00000078 // EPI Read FIFO Alias 2
  57. #define EPI_O_READFIFO3 0x0000007C // EPI Read FIFO Alias 3
  58. #define EPI_O_READFIFO4 0x00000080 // EPI Read FIFO Alias 4
  59. #define EPI_O_READFIFO5 0x00000084 // EPI Read FIFO Alias 5
  60. #define EPI_O_READFIFO6 0x00000088 // EPI Read FIFO Alias 6
  61. #define EPI_O_READFIFO7 0x0000008C // EPI Read FIFO Alias 7
  62. #define EPI_O_FIFOLVL 0x00000200 // EPI FIFO Level Selects
  63. #define EPI_O_WFIFOCNT 0x00000204 // EPI Write FIFO Count
  64. #define EPI_O_IM 0x00000210 // EPI Interrupt Mask
  65. #define EPI_O_RIS 0x00000214 // EPI Raw Interrupt Status
  66. #define EPI_O_MIS 0x00000218 // EPI Masked Interrupt Status
  67. #define EPI_O_EISC 0x0000021C // EPI Error Interrupt Status and
  68. // Clear
  69. //*****************************************************************************
  70. //
  71. // The following are defines for the bit fields in the EPI_O_CFG register.
  72. //
  73. //*****************************************************************************
  74. #define EPI_CFG_BLKEN 0x00000010 // Block Enable.
  75. #define EPI_CFG_MODE_M 0x0000000F // Mode Select.
  76. #define EPI_CFG_MODE_NONE 0x00000000 // None
  77. #define EPI_CFG_MODE_SDRAM 0x00000001 // SDRAM
  78. #define EPI_CFG_MODE_HB8 0x00000002 // 8-Bit Host-Bus (HB8)
  79. //*****************************************************************************
  80. //
  81. // The following are defines for the bit fields in the EPI_O_BAUD register.
  82. //
  83. //*****************************************************************************
  84. #define EPI_BAUD_COUNT_M 0x0000FFFF // Baud Rate Counter.
  85. #define EPI_BAUD_COUNT_S 0
  86. //*****************************************************************************
  87. //
  88. // The following are defines for the bit fields in the EPI_O_SDRAMCFG register.
  89. //
  90. //*****************************************************************************
  91. #define EPI_SDRAMCFG_FREQ_M 0xC0000000 // Frequency Range.
  92. #define EPI_SDRAMCFG_FREQ_NONE 0x00000000 // 0
  93. #define EPI_SDRAMCFG_FREQ_15MHZ 0x40000000 // 15
  94. #define EPI_SDRAMCFG_FREQ_30MHZ 0x80000000 // 30
  95. #define EPI_SDRAMCFG_FREQ_50MHZ 0xC0000000 // 50
  96. #define EPI_SDRAMCFG_RFSH_M 0x07FF0000 // Refresh Counter.
  97. #define EPI_SDRAMCFG_SLEEP 0x00000200 // Sleep Mode.
  98. #define EPI_SDRAMCFG_SIZE_M 0x00000003 // Size of SDRAM.
  99. #define EPI_SDRAMCFG_SIZE_8MB 0x00000000 // 64Mb (8MB)
  100. #define EPI_SDRAMCFG_SIZE_16MB 0x00000001 // 128Mb (16MB)
  101. #define EPI_SDRAMCFG_SIZE_32MB 0x00000002 // 256Mb (32MB)
  102. #define EPI_SDRAMCFG_SIZE_64MB 0x00000003 // 512Mb (64MB)
  103. #define EPI_SDRAMCFG_RFSH_S 16
  104. //*****************************************************************************
  105. //
  106. // The following are defines for the bit fields in the EPI_O_GPCFG register.
  107. //
  108. //*****************************************************************************
  109. #define EPI_GPCFG_CLKPIN 0x80000000 // Clock Pin.
  110. #define EPI_GPCFG_CLKGATE 0x40000000 // Clock Gated.
  111. #define EPI_GPCFG_RDYEN 0x10000000 // Ready Enable.
  112. #define EPI_GPCFG_FRMPIN 0x08000000 // Framing Pin.
  113. #define EPI_GPCFG_FRM50 0x04000000 // 50/50 Frame.
  114. #define EPI_GPCFG_FRMCNT_M 0x03C00000 // Frame Count.
  115. #define EPI_GPCFG_RW 0x00200000 // Read and Write.
  116. #define EPI_GPCFG_WR2CYC 0x00080000 // 2-Cycle Writes.
  117. #define EPI_GPCFG_RD2CYC 0x00040000 // 2-Cycle Reads.
  118. #define EPI_GPCFG_MAXWAIT_M 0x0000FF00 // Maximum Wait.
  119. #define EPI_GPCFG_ASIZE_M 0x00000030 // Address Bus Size.
  120. #define EPI_GPCFG_ASIZE_NONE 0x00000000 // No address
  121. #define EPI_GPCFG_ASIZE_4BIT 0x00000010 // 4 Bits Wide (EPI24 to EPI27)
  122. #define EPI_GPCFG_ASIZE_12BIT 0x00000020 // 12 Bits Wide (EPI16 to EPI27).
  123. // Cannot be used with 24-bit data
  124. #define EPI_GPCFG_ASIZE_20BIT 0x00000030 // 20 Bits Wide
  125. #define EPI_GPCFG_DSIZE_M 0x00000003 // Size of Data Bus.
  126. #define EPI_GPCFG_DSIZE_4BIT 0x00000000 // 4 Bits Wide (EPI0 to EPI7)
  127. #define EPI_GPCFG_DSIZE_16BIT 0x00000001 // 16 Bits Wide (EPI0 to EPI15)
  128. #define EPI_GPCFG_DSIZE_24BIT 0x00000002 // 24 Bits Wide (EPI0 to EPI23)
  129. #define EPI_GPCFG_DSIZE_32BIT 0x00000003 // 32 Bits Wide. May not be used
  130. // with clock (EPI0 to EPI31). This
  131. // value is normally used for
  132. // acquisition input and actuator
  133. // control as well as other general
  134. // purpose uses.
  135. #define EPI_GPCFG_FRMCNT_S 22
  136. #define EPI_GPCFG_MAXWAIT_S 8
  137. //*****************************************************************************
  138. //
  139. // The following are defines for the bit fields in the EPI_O_HB8CFG register.
  140. //
  141. //*****************************************************************************
  142. #define EPI_HB8CFG_XFFEN 0x00800000 // External FIFO FULL Enable.
  143. #define EPI_HB8CFG_XFEEN 0x00400000 // External FIFO EMPTY Enable.
  144. #define EPI_HB8CFG_WRHIGH 0x00200000 // WRITE Strobe Polarity.
  145. #define EPI_HB8CFG_RDHIGH 0x00100000 // READ Strobe Polarity.
  146. #define EPI_HB8CFG_MAXWAIT_M 0x0000FF00 // Maximum Wait.
  147. #define EPI_HB8CFG_WRWS_M 0x000000C0 // Write Wait States.
  148. #define EPI_HB8CFG_WRWS_0 0x00000000 // No wait states
  149. #define EPI_HB8CFG_WRWS_1 0x00000040 // 1 wait state
  150. #define EPI_HB8CFG_WRWS_2 0x00000080 // 2 wait states
  151. #define EPI_HB8CFG_WRWS_3 0x000000C0 // 3 wait states
  152. #define EPI_HB8CFG_RDWS_M 0x00000030 // Read Wait States.
  153. #define EPI_HB8CFG_RDWS_0 0x00000000 // No wait states
  154. #define EPI_HB8CFG_RDWS_1 0x00000010 // 1 wait state
  155. #define EPI_HB8CFG_RDWS_2 0x00000020 // 2 wait states
  156. #define EPI_HB8CFG_RDWS_3 0x00000030 // 3 wait states
  157. #define EPI_HB8CFG_MODE_M 0x00000003 // Host Bus Sub-Mode.
  158. #define EPI_HB8CFG_MODE_MUX 0x00000000 // ADMUX - AD[7:0]
  159. #define EPI_HB8CFG_MODE_NMUX 0x00000001 // ADNONMUX - D[7:0]
  160. #define EPI_HB8CFG_MODE_SRAM 0x00000002 // SRAM
  161. #define EPI_HB8CFG_MODE_FIFO 0x00000003 // FIFO - D[7:0]
  162. #define EPI_HB8CFG_MAXWAIT_S 8
  163. //*****************************************************************************
  164. //
  165. // The following are defines for the bit fields in the EPI_O_ADDRMAP register.
  166. //
  167. //*****************************************************************************
  168. #define EPI_ADDRMAP_EPSZ_M 0x000000C0 // External Peripheral Size.
  169. #define EPI_ADDRMAP_EPSZ_256B 0x00000000 // 0x100 (256)
  170. #define EPI_ADDRMAP_EPSZ_64KB 0x00000040 // 0x10000 (64 KB)
  171. #define EPI_ADDRMAP_EPSZ_16MB 0x00000080 // 0x1000000 (16 MB)
  172. #define EPI_ADDRMAP_EPSZ_512MB 0x000000C0 // 0x20000000 (512 MB)
  173. #define EPI_ADDRMAP_EPADR_M 0x00000030 // External Peripheral Address.
  174. #define EPI_ADDRMAP_EPADR_NONE 0x00000000 // Not mapped
  175. #define EPI_ADDRMAP_EPADR_A000 0x00000010 // At 0xA0000000
  176. #define EPI_ADDRMAP_EPADR_C000 0x00000020 // At 0xC0000000
  177. #define EPI_ADDRMAP_ERSZ_M 0x0000000C // External RAM Size.
  178. #define EPI_ADDRMAP_ERSZ_256B 0x00000000 // 0x100 (256)
  179. #define EPI_ADDRMAP_ERSZ_64KB 0x00000004 // 0x10000 (64KB)
  180. #define EPI_ADDRMAP_ERSZ_16MB 0x00000008 // 0x1000000 (16MB)
  181. #define EPI_ADDRMAP_ERSZ_512MB 0x0000000C // 0x20000000 (512MB)
  182. #define EPI_ADDRMAP_ERADR_M 0x00000003 // External RAM Address.
  183. #define EPI_ADDRMAP_ERADR_NONE 0x00000000 // Not mapped
  184. #define EPI_ADDRMAP_ERADR_6000 0x00000001 // At 0x60000000
  185. #define EPI_ADDRMAP_ERADR_8000 0x00000002 // At 0x80000000
  186. //*****************************************************************************
  187. //
  188. // The following are defines for the bit fields in the EPI_O_RSIZE0 register.
  189. //
  190. //*****************************************************************************
  191. #define EPI_RSIZE0_SIZE_M 0x00000003 // Current Size.
  192. #define EPI_RSIZE0_SIZE_8BIT 0x00000001 // Byte (8 bits)
  193. #define EPI_RSIZE0_SIZE_16BIT 0x00000002 // Half-word (16 bits)
  194. #define EPI_RSIZE0_SIZE_32BIT 0x00000003 // Word (32 bits)
  195. //*****************************************************************************
  196. //
  197. // The following are defines for the bit fields in the EPI_O_RADDR0 register.
  198. //
  199. //*****************************************************************************
  200. #define EPI_RADDR0_ADDR_M 0x1FFFFFFF // Current Address.
  201. #define EPI_RADDR0_ADDR_S 0
  202. //*****************************************************************************
  203. //
  204. // The following are defines for the bit fields in the EPI_O_RPSTD0 register.
  205. //
  206. //*****************************************************************************
  207. #define EPI_RPSTD0_POSTCNT_M 0x00001FFF // Post Count.
  208. #define EPI_RPSTD0_POSTCNT_S 0
  209. //*****************************************************************************
  210. //
  211. // The following are defines for the bit fields in the EPI_O_RSIZE1 register.
  212. //
  213. //*****************************************************************************
  214. #define EPI_RSIZE1_SIZE_M 0x00000003 // Current Size.
  215. #define EPI_RSIZE1_SIZE_8BIT 0x00000001 // Byte (8 bits)
  216. #define EPI_RSIZE1_SIZE_16BIT 0x00000002 // Half-word (16 bits)
  217. #define EPI_RSIZE1_SIZE_32BIT 0x00000003 // Word (32 bits)
  218. //*****************************************************************************
  219. //
  220. // The following are defines for the bit fields in the EPI_O_RADDR1 register.
  221. //
  222. //*****************************************************************************
  223. #define EPI_RADDR1_ADDR_M 0x1FFFFFFF // Current Address.
  224. #define EPI_RADDR1_ADDR_S 0
  225. //*****************************************************************************
  226. //
  227. // The following are defines for the bit fields in the EPI_O_RPSTD1 register.
  228. //
  229. //*****************************************************************************
  230. #define EPI_RPSTD1_POSTCNT_M 0x00001FFF // Post Count.
  231. #define EPI_RPSTD1_POSTCNT_S 0
  232. //*****************************************************************************
  233. //
  234. // The following are defines for the bit fields in the EPI_O_RFIFOCNT register.
  235. //
  236. //*****************************************************************************
  237. #define EPI_RFIFOCNT_COUNT_M 0x00000007 // FIFO Count.
  238. #define EPI_RFIFOCNT_COUNT_S 0
  239. //*****************************************************************************
  240. //
  241. // The following are defines for the bit fields in the EPI_O_READFIFO register.
  242. //
  243. //*****************************************************************************
  244. #define EPI_READFIFO_DATA_M 0xFFFFFFFF // Reads Data.
  245. #define EPI_READFIFO_DATA_S 0
  246. //*****************************************************************************
  247. //
  248. // The following are defines for the bit fields in the EPI_O_READFIFO1
  249. // register.
  250. //
  251. //*****************************************************************************
  252. #define EPI_READFIFO1_DATA_M 0xFFFFFFFF // Reads Data.
  253. #define EPI_READFIFO1_DATA_S 0
  254. //*****************************************************************************
  255. //
  256. // The following are defines for the bit fields in the EPI_O_READFIFO2
  257. // register.
  258. //
  259. //*****************************************************************************
  260. #define EPI_READFIFO2_DATA_M 0xFFFFFFFF // Reads Data.
  261. #define EPI_READFIFO2_DATA_S 0
  262. //*****************************************************************************
  263. //
  264. // The following are defines for the bit fields in the EPI_O_READFIFO3
  265. // register.
  266. //
  267. //*****************************************************************************
  268. #define EPI_READFIFO3_DATA_M 0xFFFFFFFF // Reads Data.
  269. #define EPI_READFIFO3_DATA_S 0
  270. //*****************************************************************************
  271. //
  272. // The following are defines for the bit fields in the EPI_O_READFIFO4
  273. // register.
  274. //
  275. //*****************************************************************************
  276. #define EPI_READFIFO4_DATA_M 0xFFFFFFFF // Reads Data.
  277. #define EPI_READFIFO4_DATA_S 0
  278. //*****************************************************************************
  279. //
  280. // The following are defines for the bit fields in the EPI_O_READFIFO5
  281. // register.
  282. //
  283. //*****************************************************************************
  284. #define EPI_READFIFO5_DATA_M 0xFFFFFFFF // Reads Data.
  285. #define EPI_READFIFO5_DATA_S 0
  286. //*****************************************************************************
  287. //
  288. // The following are defines for the bit fields in the EPI_O_READFIFO6
  289. // register.
  290. //
  291. //*****************************************************************************
  292. #define EPI_READFIFO6_DATA_M 0xFFFFFFFF // Reads Data.
  293. #define EPI_READFIFO6_DATA_S 0
  294. //*****************************************************************************
  295. //
  296. // The following are defines for the bit fields in the EPI_O_READFIFO7
  297. // register.
  298. //
  299. //*****************************************************************************
  300. #define EPI_READFIFO7_DATA_M 0xFFFFFFFF // Reads Data.
  301. #define EPI_READFIFO7_DATA_S 0
  302. //*****************************************************************************
  303. //
  304. // The following are defines for the bit fields in the EPI_O_FIFOLVL register.
  305. //
  306. //*****************************************************************************
  307. #define EPI_FIFOLVL_WFERR 0x00020000 // Write Full Error.
  308. #define EPI_FIFOLVL_RSERR 0x00010000 // Read Stall Error.
  309. #define EPI_FIFOLVL_WRFIFO_M 0x00000070 // Write FIFO.
  310. #define EPI_FIFOLVL_WRFIFO_EMPT 0x00000000 // Empty
  311. #define EPI_FIFOLVL_WRFIFO_1_4 0x00000020 // >= 1/4 full
  312. #define EPI_FIFOLVL_WRFIFO_1_2 0x00000030 // >= 1/2 full
  313. #define EPI_FIFOLVL_WRFIFO_3_4 0x00000040 // >= 3/4 full
  314. #define EPI_FIFOLVL_RDFIFO_M 0x00000007 // Read FIFO.
  315. #define EPI_FIFOLVL_RDFIFO_EMPT 0x00000000 // Empty
  316. #define EPI_FIFOLVL_RDFIFO_1_8 0x00000001 // <= 1/8 full
  317. #define EPI_FIFOLVL_RDFIFO_1_4 0x00000002 // <= 1/4 full
  318. #define EPI_FIFOLVL_RDFIFO_1_2 0x00000003 // <= 1/2 full
  319. #define EPI_FIFOLVL_RDFIFO_3_4 0x00000004 // <= 3/4 full
  320. #define EPI_FIFOLVL_RDFIFO_7_8 0x00000005 // <= 7/8 full
  321. #define EPI_FIFOLVL_RDFIFO_FULL 0x00000006 // Trigger when there are 8 entries
  322. // in the NBRFIFO.
  323. //*****************************************************************************
  324. //
  325. // The following are defines for the bit fields in the EPI_O_IM register.
  326. //
  327. //*****************************************************************************
  328. #define EPI_IM_WRIM 0x00000004 // Write Interrupt Mask.
  329. #define EPI_IM_RDIM 0x00000002 // Read Interrupt Mask.
  330. #define EPI_IM_ERRIM 0x00000001 // Error Interrupt Mask.
  331. //*****************************************************************************
  332. //
  333. // The following are defines for the bit fields in the EPI_O_RIS register.
  334. //
  335. //*****************************************************************************
  336. #define EPI_RIS_WRRIS 0x00000004 // Write Raw Interrupt Status.
  337. #define EPI_RIS_RDRIS 0x00000002 // Read Raw Interrupt Status.
  338. #define EPI_RIS_ERRRIS 0x00000001 // Error Raw Interrupt Status.
  339. //*****************************************************************************
  340. //
  341. // The following are defines for the bit fields in the EPI_O_MIS register.
  342. //
  343. //*****************************************************************************
  344. #define EPI_MIS_WRMIS 0x00000004 // Write Masked Interrupt Status.
  345. #define EPI_MIS_RDMIS 0x00000002 // Read Masked Interrupt Status.
  346. #define EPI_MIS_ERRMIS 0x00000001 // Error Masked Interrupt Status.
  347. //*****************************************************************************
  348. //
  349. // The following are defines for the bit fields in the EPI_O_SDRAMCFG2
  350. // register.
  351. //
  352. //*****************************************************************************
  353. #define EPI_SDRAMCFG2_RCM 0x80000000 // Read Capture Mode.
  354. //*****************************************************************************
  355. //
  356. // The following are defines for the bit fields in the EPI_O_HB8CFG2 register.
  357. //
  358. //*****************************************************************************
  359. #define EPI_HB8CFG2_WORD 0x80000000 // Word Access Mode.
  360. #define EPI_HB8CFG2_CSCFG 0x01000000 // Chip Select Configuration.
  361. //*****************************************************************************
  362. //
  363. // The following are defines for the bit fields in the EPI_O_GPCFG2 register.
  364. //
  365. //*****************************************************************************
  366. #define EPI_GPCFG2_WORD 0x80000000 // Word Access Mode.
  367. //*****************************************************************************
  368. //
  369. // The following are defines for the bit fields in the EPI_O_STAT register.
  370. //
  371. //*****************************************************************************
  372. #define EPI_STAT_CELOW 0x00000200 // Clock Enable Low.
  373. #define EPI_STAT_XFFULL 0x00000100 // External FIFO Full.
  374. #define EPI_STAT_XFEMPTY 0x00000080 // External FIFO Empty.
  375. #define EPI_STAT_INITSEQ 0x00000040 // Initialization Sequence.
  376. #define EPI_STAT_WBUSY 0x00000020 // Write Busy.
  377. #define EPI_STAT_NBRBUSY 0x00000010 // Non-Blocking Read Busy.
  378. #define EPI_STAT_ACTIVE 0x00000001 // Register Active.
  379. //*****************************************************************************
  380. //
  381. // The following are defines for the bit fields in the EPI_O_WFIFOCNT register.
  382. //
  383. //*****************************************************************************
  384. #define EPI_WFIFOCNT_WTAV_M 0x00000007 // Available Write Transactions.
  385. #define EPI_WFIFOCNT_WTAV_S 0
  386. //*****************************************************************************
  387. //
  388. // The following are defines for the bit fields in the EPI_O_EISC register.
  389. //
  390. //*****************************************************************************
  391. #define EPI_EISC_WTFULL 0x00000004 // Write FIFO Full Error.
  392. #define EPI_EISC_RSTALL 0x00000002 // Read Stalled Error.
  393. #define EPI_EISC_TOUT 0x00000001 // Timeout Error.
  394. #endif // __HW_EPI_H__