spc5_registry.h 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. /*
  2. SPC5 HAL - Copyright (C) 2013 STMicroelectronics
  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. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. /**
  14. * @file SPC56ECxx/spc5_registry.h
  15. * @brief SPC56ECxx capabilities registry.
  16. *
  17. * @addtogroup HAL
  18. * @{
  19. */
  20. #ifndef SPC5_REGISTRY_H
  21. #define SPC5_REGISTRY_H
  22. /*===========================================================================*/
  23. /* Derived constants and error checks. */
  24. /*===========================================================================*/
  25. #if defined(_SPC564B64L7_)
  26. #define SPC5_NUM_DSPI 8
  27. #define SPC5_NUM_LINFLEX 10
  28. #define SPC5_NUM_GPIO 147
  29. #elif defined(_SPC564B70L7_)
  30. #define SPC5_NUM_DSPI 8
  31. #define SPC5_NUM_LINFLEX 10
  32. #define SPC5_NUM_GPIO 147
  33. #elif defined(_SPC564B74L7_)
  34. #define SPC5_NUM_DSPI 8
  35. #define SPC5_NUM_LINFLEX 10
  36. #define SPC5_NUM_GPIO 147
  37. #elif defined(_SPC564B64L8_)
  38. #define SPC5_NUM_DSPI 8
  39. #define SPC5_NUM_LINFLEX 10
  40. #define SPC5_NUM_GPIO 177
  41. #elif defined(_SPC564B70L8_)
  42. #define SPC5_NUM_DSPI 8
  43. #define SPC5_NUM_LINFLEX 10
  44. #define SPC5_NUM_GPIO 177
  45. #elif defined(_SPC564B74L8_)
  46. #define SPC5_NUM_DSPI 8
  47. #define SPC5_NUM_LINFLEX 10
  48. #define SPC5_NUM_GPIO 177
  49. #elif defined(_SPC56EC64B3_)
  50. #define SPC5_NUM_DSPI 8
  51. #define SPC5_NUM_LINFLEX 10
  52. #define SPC5_NUM_GPIO 199
  53. #elif defined(_SPC56EC64L7_)
  54. #define SPC5_NUM_DSPI 8
  55. #define SPC5_NUM_LINFLEX 10
  56. #define SPC5_NUM_GPIO 147
  57. #elif defined(_SPC56EC64L8_)
  58. #define SPC5_NUM_DSPI 8
  59. #define SPC5_NUM_LINFLEX 10
  60. #define SPC5_NUM_GPIO 177
  61. #elif defined(_SPC56EC70B3_)
  62. #define SPC5_NUM_DSPI 8
  63. #define SPC5_NUM_LINFLEX 10
  64. #define SPC5_NUM_GPIO 199
  65. #elif defined(_SPC56EC70L7_)
  66. #define SPC5_NUM_DSPI 8
  67. #define SPC5_NUM_LINFLEX 10
  68. #define SPC5_NUM_GPIO 147
  69. #elif defined(_SPC56EC70L8_)
  70. #define SPC5_NUM_DSPI 8
  71. #define SPC5_NUM_LINFLEX 10
  72. #define SPC5_NUM_GPIO 177
  73. #elif defined(_SPC56EC74B3_)
  74. #define SPC5_NUM_DSPI 8
  75. #define SPC5_NUM_LINFLEX 10
  76. #define SPC5_NUM_GPIO 199
  77. #elif defined(_SPC56EC74L7_)
  78. #define SPC5_NUM_DSPI 8
  79. #define SPC5_NUM_LINFLEX 10
  80. #define SPC5_NUM_GPIO 147
  81. #elif defined(_SPC56EC74L8_)
  82. #define SPC5_NUM_DSPI 8
  83. #define SPC5_NUM_LINFLEX 10
  84. #define SPC5_NUM_GPIO 177
  85. #else
  86. #error "SPC56ECxx platform not defined"
  87. #endif
  88. /*===========================================================================*/
  89. /* Platform capabilities. */
  90. /*===========================================================================*/
  91. /**
  92. * @name SPC560Bxx capabilities
  93. * @{
  94. */
  95. /* DSPI attribures.*/
  96. #define SPC5_DSPI_FIFO_DEPTH 4
  97. #if SPC5_NUM_DSPI > 0
  98. #define SPC5_HAS_DSPI0 TRUE
  99. #define SPC5_DSPI0_PCTL 4
  100. #define SPC5_DSPI0_TX1_DMA_DEV_ID 1
  101. #define SPC5_DSPI0_TX2_DMA_DEV_ID 0
  102. #define SPC5_DSPI0_RX_DMA_DEV_ID 2
  103. #define SPC5_DSPI0_TFFF_HANDLER vector76
  104. #define SPC5_DSPI0_TFFF_NUMBER 76
  105. #define SPC5_DSPI0_RFDF_HANDLER vector78
  106. #define SPC5_DSPI0_RFDF_NUMBER 78
  107. #define SPC5_DSPI0_ENABLE_CLOCK() \
  108. halSPCSetPeripheralClockMode(SPC5_DSPI0_PCTL, SPC5_SPI_DSPI0_START_PCTL)
  109. #define SPC5_DSPI0_DISABLE_CLOCK() \
  110. halSPCSetPeripheralClockMode(SPC5_DSPI0_PCTL, SPC5_SPI_DSPI0_STOP_PCTL)
  111. #else
  112. #define SPC5_HAS_DSPI0 FALSE
  113. #endif
  114. #if SPC5_NUM_DSPI > 1
  115. #define SPC5_HAS_DSPI1 TRUE
  116. #define SPC5_DSPI1_PCTL 5
  117. #define SPC5_DSPI1_TX1_DMA_DEV_ID 3
  118. #define SPC5_DSPI1_TX2_DMA_DEV_ID 0
  119. #define SPC5_DSPI1_RX_DMA_DEV_ID 4
  120. #define SPC5_DSPI1_TFFF_HANDLER vector96
  121. #define SPC5_DSPI1_TFFF_NUMBER 96
  122. #define SPC5_DSPI1_RFDF_HANDLER vector98
  123. #define SPC5_DSPI1_RFDF_NUMBER 98
  124. #define SPC5_DSPI1_ENABLE_CLOCK() \
  125. halSPCSetPeripheralClockMode(SPC5_DSPI1_PCTL, SPC5_SPI_DSPI1_START_PCTL)
  126. #define SPC5_DSPI1_DISABLE_CLOCK() \
  127. halSPCSetPeripheralClockMode(SPC5_DSPI1_PCTL, SPC5_SPI_DSPI1_STOP_PCTL)
  128. #else
  129. #define SPC5_HAS_DSPI1 FALSE
  130. #endif
  131. #if SPC5_NUM_DSPI > 2
  132. #define SPC5_HAS_DSPI2 TRUE
  133. #define SPC5_DSPI2_PCTL 6
  134. #define SPC5_DSPI2_TX1_DMA_DEV_ID 5
  135. #define SPC5_DSPI2_TX2_DMA_DEV_ID 0
  136. #define SPC5_DSPI2_RX_DMA_DEV_ID 6
  137. #define SPC5_DSPI2_TFFF_HANDLER vector116
  138. #define SPC5_DSPI2_TFFF_NUMBER 116
  139. #define SPC5_DSPI2_RFDF_HANDLER vector118
  140. #define SPC5_DSPI2_RFDF_NUMBER 118
  141. #define SPC5_DSPI2_ENABLE_CLOCK() \
  142. halSPCSetPeripheralClockMode(SPC5_DSPI2_PCTL, SPC5_SPI_DSPI2_START_PCTL)
  143. #define SPC5_DSPI2_DISABLE_CLOCK() \
  144. halSPCSetPeripheralClockMode(SPC5_DSPI2_PCTL, SPC5_SPI_DSPI2_STOP_PCTL)
  145. #else
  146. #define SPC5_HAS_DSPI2 FALSE
  147. #endif
  148. #if SPC5_NUM_DSPI > 3
  149. #define SPC5_HAS_DSPI3 TRUE
  150. #define SPC5_DSPI3_PCTL 7
  151. #define SPC5_DSPI3_TX1_DMA_DEV_ID 7
  152. #define SPC5_DSPI3_TX2_DMA_DEV_ID 0
  153. #define SPC5_DSPI3_RX_DMA_DEV_ID 8
  154. #define SPC5_DSPI3_TFFF_HANDLER vector184
  155. #define SPC5_DSPI3_TFFF_NUMBER 184
  156. #define SPC5_DSPI3_RFDF_HANDLER vector186
  157. #define SPC5_DSPI3_RFDF_NUMBER 186
  158. #define SPC5_DSPI3_ENABLE_CLOCK() \
  159. halSPCSetPeripheralClockMode(SPC5_DSPI3_PCTL, SPC5_SPI_DSPI3_START_PCTL)
  160. #define SPC5_DSPI3_DISABLE_CLOCK() \
  161. halSPCSetPeripheralClockMode(SPC5_DSPI3_PCTL, SPC5_SPI_DSPI3_STOP_PCTL)
  162. #else
  163. #define SPC5_HAS_DSPI3 FALSE
  164. #endif
  165. #if SPC5_NUM_DSPI > 4
  166. #define SPC5_HAS_DSPI4 TRUE
  167. #define SPC5_DSPI4_PCTL 8
  168. #define SPC5_DSPI4_TX1_DMA_DEV_ID 9
  169. #define SPC5_DSPI4_TX2_DMA_DEV_ID 0
  170. #define SPC5_DSPI4_RX_DMA_DEV_ID 10
  171. #define SPC5_DSPI4_TFFF_HANDLER vector213
  172. #define SPC5_DSPI4_TFFF_NUMBER 213
  173. #define SPC5_DSPI4_RFDF_HANDLER vector215
  174. #define SPC5_DSPI4_RFDF_NUMBER 215
  175. #define SPC5_DSPI4_ENABLE_CLOCK() \
  176. halSPCSetPeripheralClockMode(SPC5_DSPI4_PCTL, SPC5_SPI_DSPI4_START_PCTL)
  177. #define SPC5_DSPI4_DISABLE_CLOCK() \
  178. halSPCSetPeripheralClockMode(SPC5_DSPI4_PCTL, SPC5_SPI_DSPI4_STOP_PCTL)
  179. #else
  180. #define SPC5_HAS_DSPI4 FALSE
  181. #endif
  182. #if SPC5_NUM_DSPI > 5
  183. #define SPC5_HAS_DSPI5 TRUE
  184. #define SPC5_DSPI5_PCTL 9
  185. #define SPC5_DSPI5_TX1_DMA_DEV_ID 11
  186. #define SPC5_DSPI5_TX2_DMA_DEV_ID 0
  187. #define SPC5_DSPI5_RX_DMA_DEV_ID 12
  188. #define SPC5_DSPI5_TFFF_HANDLER vector221
  189. #define SPC5_DSPI5_TFFF_NUMBER 221
  190. #define SPC5_DSPI5_RFDF_HANDLER vector223
  191. #define SPC5_DSPI5_RFDF_NUMBER 223
  192. #define SPC5_DSPI5_ENABLE_CLOCK() \
  193. halSPCSetPeripheralClockMode(SPC5_DSPI5_PCTL, SPC5_SPI_DSPI5_START_PCTL)
  194. #define SPC5_DSPI5_DISABLE_CLOCK() \
  195. halSPCSetPeripheralClockMode(SPC5_DSPI5_PCTL, SPC5_SPI_DSPI5_STOP_PCTL)
  196. #else
  197. #define SPC5_HAS_DSPI5 FALSE
  198. #endif
  199. #if SPC5_NUM_DSPI > 6
  200. #define SPC5_HAS_DSPI6 TRUE
  201. #define SPC5_DSPI6_PCTL 10
  202. #define SPC5_DSPI6_TX1_DMA_DEV_ID 13
  203. #define SPC5_DSPI6_TX2_DMA_DEV_ID 0
  204. #define SPC5_DSPI6_RX_DMA_DEV_ID 14
  205. #define SPC5_DSPI6_TFFF_HANDLER vector236
  206. #define SPC5_DSPI6_TFFF_NUMBER 236
  207. #define SPC5_DSPI6_RFDF_HANDLER vector238
  208. #define SPC5_DSPI6_RFDF_NUMBER 238
  209. #define SPC5_DSPI6_ENABLE_CLOCK() \
  210. halSPCSetPeripheralClockMode(SPC5_DSPI6_PCTL, SPC5_SPI_DSPI6_START_PCTL)
  211. #define SPC5_DSPI6_DISABLE_CLOCK() \
  212. halSPCSetPeripheralClockMode(SPC5_DSPI6_PCTL, SPC5_SPI_DSPI6_STOP_PCTL)
  213. #else
  214. #define SPC5_HAS_DSPI6 FALSE
  215. #endif
  216. #if SPC5_NUM_DSPI > 7
  217. #define SPC5_HAS_DSPI7 TRUE
  218. #define SPC5_DSPI7_PCTL 11
  219. #define SPC5_DSPI7_TX1_DMA_DEV_ID 15
  220. #define SPC5_DSPI7_TX2_DMA_DEV_ID 0
  221. #define SPC5_DSPI7_RX_DMA_DEV_ID 16
  222. #define SPC5_DSPI7_TFFF_HANDLER vector241
  223. #define SPC5_DSPI7_TFFF_NUMBER 241
  224. #define SPC5_DSPI7_RFDF_HANDLER vector243
  225. #define SPC5_DSPI7_RFDF_NUMBER 243
  226. #define SPC5_DSPI7_ENABLE_CLOCK() \
  227. halSPCSetPeripheralClockMode(SPC5_DSPI7_PCTL, SPC5_SPI_DSPI7_START_PCTL)
  228. #define SPC5_DSPI7_DISABLE_CLOCK() \
  229. halSPCSetPeripheralClockMode(SPC5_DSPI7_PCTL, SPC5_SPI_DSPI7_STOP_PCTL)
  230. #else
  231. #define SPC5_HAS_DSPI7 FALSE
  232. #endif
  233. /* eDMA attributes.*/
  234. #define SPC5_HAS_EDMA TRUE
  235. #define SPC5_EDMA_NCHANNELS 32
  236. #define SPC5_EDMA_HAS_MUX TRUE
  237. #define SPC5_EDMA_MUX_PCTL 23
  238. /* LINFlex attributes.*/
  239. #if SPC5_NUM_LINFLEX > 0
  240. #define SPC5_HAS_LINFLEX0 TRUE
  241. #define SPC5_LINFLEX0_PCTL 48
  242. #define SPC5_LINFLEX0_RXI_HANDLER vector79
  243. #define SPC5_LINFLEX0_TXI_HANDLER vector80
  244. #define SPC5_LINFLEX0_ERR_HANDLER vector81
  245. #define SPC5_LINFLEX0_RXI_NUMBER 79
  246. #define SPC5_LINFLEX0_TXI_NUMBER 80
  247. #define SPC5_LINFLEX0_ERR_NUMBER 81
  248. #define SPC5_LINFLEX0_CLK (halSPCGetSystemClock() / \
  249. SPC5_PERIPHERAL1_CLK_DIV_VALUE)
  250. #else
  251. #define SPC5_HAS_LINFLEX0 FALSE
  252. #endif
  253. #if SPC5_NUM_LINFLEX > 1
  254. #define SPC5_HAS_LINFLEX1 TRUE
  255. #define SPC5_LINFLEX1_PCTL 49
  256. #define SPC5_LINFLEX1_RXI_HANDLER vector99
  257. #define SPC5_LINFLEX1_TXI_HANDLER vector100
  258. #define SPC5_LINFLEX1_ERR_HANDLER vector101
  259. #define SPC5_LINFLEX1_RXI_NUMBER 99
  260. #define SPC5_LINFLEX1_TXI_NUMBER 100
  261. #define SPC5_LINFLEX1_ERR_NUMBER 101
  262. #define SPC5_LINFLEX1_CLK (halSPCGetSystemClock() / \
  263. SPC5_PERIPHERAL1_CLK_DIV_VALUE)
  264. #else
  265. #define SPC5_HAS_LINFLEX1 FALSE
  266. #endif
  267. #if SPC5_NUM_LINFLEX > 2
  268. #define SPC5_HAS_LINFLEX2 TRUE
  269. #define SPC5_LINFLEX2_PCTL 50
  270. #define SPC5_LINFLEX2_RXI_HANDLER vector119
  271. #define SPC5_LINFLEX2_TXI_HANDLER vector120
  272. #define SPC5_LINFLEX2_ERR_HANDLER vector121
  273. #define SPC5_LINFLEX2_RXI_NUMBER 119
  274. #define SPC5_LINFLEX2_TXI_NUMBER 120
  275. #define SPC5_LINFLEX2_ERR_NUMBER 121
  276. #define SPC5_LINFLEX2_CLK (halSPCGetSystemClock() / \
  277. SPC5_PERIPHERAL1_CLK_DIV_VALUE)
  278. #else
  279. #define SPC5_HAS_LINFLEX2 FALSE
  280. #endif
  281. #if SPC5_NUM_LINFLEX > 3
  282. #define SPC5_HAS_LINFLEX3 TRUE
  283. #define SPC5_LINFLEX3_PCTL 51
  284. #define SPC5_LINFLEX3_RXI_HANDLER vector122
  285. #define SPC5_LINFLEX3_TXI_HANDLER vector123
  286. #define SPC5_LINFLEX3_ERR_HANDLER vector124
  287. #define SPC5_LINFLEX3_RXI_NUMBER 122
  288. #define SPC5_LINFLEX3_TXI_NUMBER 123
  289. #define SPC5_LINFLEX3_ERR_NUMBER 124
  290. #define SPC5_LINFLEX3_CLK (halSPCGetSystemClock() / \
  291. SPC5_PERIPHERAL1_CLK_DIV_VALUE)
  292. #else
  293. #define SPC5_HAS_LINFLEX3 FALSE
  294. #endif
  295. #if SPC5_NUM_LINFLEX > 4
  296. #define SPC5_HAS_LINFLEX4 TRUE
  297. #define SPC5_LINFLEX4_PCTL 52
  298. #define SPC5_LINFLEX4_RXI_HANDLER vector187
  299. #define SPC5_LINFLEX4_TXI_HANDLER vector188
  300. #define SPC5_LINFLEX4_ERR_HANDLER vector189
  301. #define SPC5_LINFLEX4_RXI_NUMBER 187
  302. #define SPC5_LINFLEX4_TXI_NUMBER 188
  303. #define SPC5_LINFLEX4_ERR_NUMBER 189
  304. #define SPC5_LINFLEX4_CLK (halSPCGetSystemClock() / \
  305. SPC5_PERIPHERAL1_CLK_DIV_VALUE)
  306. #else
  307. #define SPC5_HAS_LINFLEX4 FALSE
  308. #endif
  309. #if SPC5_NUM_LINFLEX > 5
  310. #define SPC5_HAS_LINFLEX5 TRUE
  311. #define SPC5_LINFLEX5_PCTL 53
  312. #define SPC5_LINFLEX5_RXI_HANDLER vector199
  313. #define SPC5_LINFLEX5_TXI_HANDLER vector200
  314. #define SPC5_LINFLEX5_ERR_HANDLER vector201
  315. #define SPC5_LINFLEX5_RXI_NUMBER 199
  316. #define SPC5_LINFLEX5_TXI_NUMBER 200
  317. #define SPC5_LINFLEX5_ERR_NUMBER 201
  318. #define SPC5_LINFLEX5_CLK (halSPCGetSystemClock() / \
  319. SPC5_PERIPHERAL1_CLK_DIV_VALUE)
  320. #else
  321. #define SPC5_HAS_LINFLEX5 FALSE
  322. #endif
  323. #if SPC5_NUM_LINFLEX > 6
  324. #define SPC5_HAS_LINFLEX6 TRUE
  325. #define SPC5_LINFLEX6_PCTL 54
  326. #define SPC5_LINFLEX6_RXI_HANDLER vector216
  327. #define SPC5_LINFLEX6_TXI_HANDLER vector217
  328. #define SPC5_LINFLEX6_ERR_HANDLER vector218
  329. #define SPC5_LINFLEX6_RXI_NUMBER 216
  330. #define SPC5_LINFLEX6_TXI_NUMBER 217
  331. #define SPC5_LINFLEX6_ERR_NUMBER 218
  332. #define SPC5_LINFLEX6_CLK (halSPCGetSystemClock() / \
  333. SPC5_PERIPHERAL1_CLK_DIV_VALUE)
  334. #else
  335. #define SPC5_HAS_LINFLEX6 FALSE
  336. #endif
  337. #if SPC5_NUM_LINFLEX > 7
  338. #define SPC5_HAS_LINFLEX7 TRUE
  339. #define SPC5_LINFLEX7_PCTL 55
  340. #define SPC5_LINFLEX7_RXI_HANDLER vector224
  341. #define SPC5_LINFLEX7_TXI_HANDLER vector225
  342. #define SPC5_LINFLEX7_ERR_HANDLER vector226
  343. #define SPC5_LINFLEX7_RXI_NUMBER 224
  344. #define SPC5_LINFLEX7_TXI_NUMBER 225
  345. #define SPC5_LINFLEX7_ERR_NUMBER 226
  346. #define SPC5_LINFLEX7_CLK (halSPCGetSystemClock() / \
  347. SPC5_PERIPHERAL1_CLK_DIV_VALUE)
  348. #else
  349. #define SPC5_HAS_LINFLEX7 FALSE
  350. #endif
  351. #if SPC5_NUM_LINFLEX > 8
  352. #define SPC5_HAS_LINFLEX8 TRUE
  353. #define SPC5_LINFLEX8_PCTL 12
  354. #define SPC5_LINFLEX8_RXI_HANDLER vector227
  355. #define SPC5_LINFLEX8_TXI_HANDLER vector228
  356. #define SPC5_LINFLEX8_ERR_HANDLER vector229
  357. #define SPC5_LINFLEX8_RXI_NUMBER 227
  358. #define SPC5_LINFLEX8_TXI_NUMBER 228
  359. #define SPC5_LINFLEX8_ERR_NUMBER 229
  360. #define SPC5_LINFLEX8_CLK (halSPCGetSystemClock() / \
  361. SPC5_PERIPHERAL1_CLK_DIV_VALUE)
  362. #else
  363. #define SPC5_HAS_LINFLEX8 FALSE
  364. #endif
  365. #if SPC5_NUM_LINFLEX > 9
  366. #define SPC5_HAS_LINFLEX9 TRUE
  367. #define SPC5_LINFLEX9_PCTL 13
  368. #define SPC5_LINFLEX9_RXI_HANDLER vector230
  369. #define SPC5_LINFLEX9_TXI_HANDLER vector231
  370. #define SPC5_LINFLEX9_ERR_HANDLER vector232
  371. #define SPC5_LINFLEX9_RXI_NUMBER 230
  372. #define SPC5_LINFLEX9_TXI_NUMBER 231
  373. #define SPC5_LINFLEX9_ERR_NUMBER 232
  374. #define SPC5_LINFLEX9_CLK (halSPCGetSystemClock() / \
  375. SPC5_PERIPHERAL1_CLK_DIV_VALUE)
  376. #else
  377. #define SPC5_HAS_LINFLEX9 FALSE
  378. #endif
  379. /* SIUL attributes.*/
  380. #define SPC5_HAS_SIUL TRUE
  381. #define SPC5_SIUL_PCTL 68
  382. #define SPC5_SIUL_NUM_PORTS 13
  383. #define SPC5_SIUL_NUM_PCRS 199
  384. #define SPC5_SIUL_NUM_PADSELS 68
  385. #define SPC5_SIUL_SYSTEM_PINS 32,33,121,122
  386. /* eMIOS attributes.*/
  387. #define SPC5_HAS_EMIOS0 TRUE
  388. #define SPC5_EMIOS0_PCTL 72
  389. #define SPC5_EMIOS0_GFR_F0F1_HANDLER vector141
  390. #define SPC5_EMIOS0_GFR_F2F3_HANDLER vector142
  391. #define SPC5_EMIOS0_GFR_F4F5_HANDLER vector143
  392. #define SPC5_EMIOS0_GFR_F6F7_HANDLER vector144
  393. #define SPC5_EMIOS0_GFR_F8F9_HANDLER vector145
  394. #define SPC5_EMIOS0_GFR_F10F11_HANDLER vector146
  395. #define SPC5_EMIOS0_GFR_F12F13_HANDLER vector147
  396. #define SPC5_EMIOS0_GFR_F14F15_HANDLER vector148
  397. #define SPC5_EMIOS0_GFR_F16F17_HANDLER vector149
  398. #define SPC5_EMIOS0_GFR_F18F19_HANDLER vector150
  399. #define SPC5_EMIOS0_GFR_F20F21_HANDLER vector151
  400. #define SPC5_EMIOS0_GFR_F22F23_HANDLER vector152
  401. #define SPC5_EMIOS0_GFR_F24F25_HANDLER vector153
  402. #define SPC5_EMIOS0_GFR_F26F27_HANDLER vector154
  403. #define SPC5_EMIOS0_GFR_F28F29_HANDLER vector155
  404. #define SPC5_EMIOS0_GFR_F30F31_HANDLER vector156
  405. #define SPC5_EMIOS0_GFR_F0F1_NUMBER 141
  406. #define SPC5_EMIOS0_GFR_F2F3_NUMBER 142
  407. #define SPC5_EMIOS0_GFR_F4F5_NUMBER 143
  408. #define SPC5_EMIOS0_GFR_F6F7_NUMBER 144
  409. #define SPC5_EMIOS0_GFR_F8F9_NUMBER 145
  410. #define SPC5_EMIOS0_GFR_F10F11_NUMBER 146
  411. #define SPC5_EMIOS0_GFR_F12F13_NUMBER 147
  412. #define SPC5_EMIOS0_GFR_F14F15_NUMBER 148
  413. #define SPC5_EMIOS0_GFR_F16F17_NUMBER 149
  414. #define SPC5_EMIOS0_GFR_F18F19_NUMBER 150
  415. #define SPC5_EMIOS0_GFR_F20F21_NUMBER 151
  416. #define SPC5_EMIOS0_GFR_F22F23_NUMBER 152
  417. #define SPC5_EMIOS0_GFR_F24F25_NUMBER 153
  418. #define SPC5_EMIOS0_GFR_F26F27_NUMBER 154
  419. #define SPC5_EMIOS0_GFR_F28F29_NUMBER 155
  420. #define SPC5_EMIOS0_GFR_F30F31_NUMBER 156
  421. #define SPC5_EMIOS0_CLK (halSPCGetSystemClock() / \
  422. SPC5_PERIPHERAL3_CLK_DIV_VALUE / \
  423. SPC5_EMIOS0_GPRE_VALUE)
  424. #define SPC5_HAS_EMIOS1 TRUE
  425. #define SPC5_EMIOS1_PCTL 73
  426. #define SPC5_EMIOS1_GFR_F0F1_HANDLER vector157
  427. #define SPC5_EMIOS1_GFR_F2F3_HANDLER vector158
  428. #define SPC5_EMIOS1_GFR_F4F5_HANDLER vector159
  429. #define SPC5_EMIOS1_GFR_F6F7_HANDLER vector160
  430. #define SPC5_EMIOS1_GFR_F8F9_HANDLER vector161
  431. #define SPC5_EMIOS1_GFR_F10F11_HANDLER vector162
  432. #define SPC5_EMIOS1_GFR_F12F13_HANDLER vector163
  433. #define SPC5_EMIOS1_GFR_F14F15_HANDLER vector164
  434. #define SPC5_EMIOS1_GFR_F16F17_HANDLER vector165
  435. #define SPC5_EMIOS1_GFR_F18F19_HANDLER vector166
  436. #define SPC5_EMIOS1_GFR_F20F21_HANDLER vector167
  437. #define SPC5_EMIOS1_GFR_F22F23_HANDLER vector168
  438. #define SPC5_EMIOS1_GFR_F24F25_HANDLER vector169
  439. #define SPC5_EMIOS1_GFR_F26F27_HANDLER vector170
  440. #define SPC5_EMIOS1_GFR_F28F29_HANDLER vector171
  441. #define SPC5_EMIOS1_GFR_F30F31_HANDLER vector172
  442. #define SPC5_EMIOS1_GFR_F0F1_NUMBER 157
  443. #define SPC5_EMIOS1_GFR_F2F3_NUMBER 158
  444. #define SPC5_EMIOS1_GFR_F4F5_NUMBER 159
  445. #define SPC5_EMIOS1_GFR_F6F7_NUMBER 160
  446. #define SPC5_EMIOS1_GFR_F8F9_NUMBER 161
  447. #define SPC5_EMIOS1_GFR_F10F11_NUMBER 162
  448. #define SPC5_EMIOS1_GFR_F12F13_NUMBER 163
  449. #define SPC5_EMIOS1_GFR_F14F15_NUMBER 164
  450. #define SPC5_EMIOS1_GFR_F16F17_NUMBER 165
  451. #define SPC5_EMIOS1_GFR_F18F19_NUMBER 166
  452. #define SPC5_EMIOS1_GFR_F20F21_NUMBER 167
  453. #define SPC5_EMIOS1_GFR_F22F23_NUMBER 168
  454. #define SPC5_EMIOS1_GFR_F24F25_NUMBER 169
  455. #define SPC5_EMIOS1_GFR_F26F27_NUMBER 170
  456. #define SPC5_EMIOS1_GFR_F28F29_NUMBER 171
  457. #define SPC5_EMIOS1_GFR_F30F31_NUMBER 172
  458. #define SPC5_EMIOS1_CLK (halSPCGetSystemClock() / \
  459. SPC5_PERIPHERAL3_CLK_DIV_VALUE / \
  460. SPC5_EMIOS1_GPRE_VALUE)
  461. /* FlexCAN attributes.*/
  462. #define SPC5_HAS_FLEXCAN0 TRUE
  463. #define SPC5_FLEXCAN0_PCTL 16
  464. #define SPC5_FLEXCAN0_MB 64
  465. #define SPC5_FLEXCAN0_SHARED_IRQ TRUE
  466. #define SPC5_FLEXCAN0_FLEXCAN_ESR_ERR_INT_HANDLER vector65
  467. #define SPC5_FLEXCAN0_FLEXCAN_ESR_BOFF_HANDLER vector66
  468. #define SPC5_FLEXCAN0_FLEXCAN_BUF_00_03_HANDLER vector68
  469. #define SPC5_FLEXCAN0_FLEXCAN_BUF_04_07_HANDLER vector69
  470. #define SPC5_FLEXCAN0_FLEXCAN_BUF_08_11_HANDLER vector70
  471. #define SPC5_FLEXCAN0_FLEXCAN_BUF_12_15_HANDLER vector71
  472. #define SPC5_FLEXCAN0_FLEXCAN_BUF_16_31_HANDLER vector72
  473. #define SPC5_FLEXCAN0_FLEXCAN_BUF_32_63_HANDLER vector73
  474. #define SPC5_FLEXCAN0_FLEXCAN_ESR_ERR_INT_NUMBER 65
  475. #define SPC5_FLEXCAN0_FLEXCAN_ESR_BOFF_NUMBER 66
  476. #define SPC5_FLEXCAN0_FLEXCAN_BUF_00_03_NUMBER 68
  477. #define SPC5_FLEXCAN0_FLEXCAN_BUF_04_07_NUMBER 69
  478. #define SPC5_FLEXCAN0_FLEXCAN_BUF_08_11_NUMBER 70
  479. #define SPC5_FLEXCAN0_FLEXCAN_BUF_12_15_NUMBER 71
  480. #define SPC5_FLEXCAN0_FLEXCAN_BUF_16_31_NUMBER 72
  481. #define SPC5_FLEXCAN0_FLEXCAN_BUF_32_63_NUMBER 73
  482. #define SPC5_FLEXCAN0_ENABLE_CLOCK() halSPCSetPeripheralClockMode(SPC5_FLEXCAN0_PCTL, SPC5_CAN_FLEXCAN0_START_PCTL);
  483. #define SPC5_FLEXCAN0_DISABLE_CLOCK() halSPCSetPeripheralClockMode(SPC5_FLEXCAN0_PCTL, SPC5_CAN_FLEXCAN0_STOP_PCTL);
  484. #define SPC5_HAS_FLEXCAN1 TRUE
  485. #define SPC5_FLEXCAN1_PCTL 17
  486. #define SPC5_FLEXCAN1_MB 64
  487. #define SPC5_FLEXCAN1_SHARED_IRQ TRUE
  488. #define SPC5_FLEXCAN1_FLEXCAN_ESR_ERR_INT_HANDLER vector85
  489. #define SPC5_FLEXCAN1_FLEXCAN_ESR_BOFF_HANDLER vector86
  490. #define SPC5_FLEXCAN1_FLEXCAN_BUF_00_03_HANDLER vector88
  491. #define SPC5_FLEXCAN1_FLEXCAN_BUF_04_07_HANDLER vector89
  492. #define SPC5_FLEXCAN1_FLEXCAN_BUF_08_11_HANDLER vector90
  493. #define SPC5_FLEXCAN1_FLEXCAN_BUF_12_15_HANDLER vector91
  494. #define SPC5_FLEXCAN1_FLEXCAN_BUF_16_31_HANDLER vector92
  495. #define SPC5_FLEXCAN1_FLEXCAN_BUF_32_63_HANDLER vector93
  496. #define SPC5_FLEXCAN1_FLEXCAN_ESR_ERR_INT_NUMBER 85
  497. #define SPC5_FLEXCAN1_FLEXCAN_ESR_BOFF_NUMBER 86
  498. #define SPC5_FLEXCAN1_FLEXCAN_BUF_00_03_NUMBER 88
  499. #define SPC5_FLEXCAN1_FLEXCAN_BUF_04_07_NUMBER 89
  500. #define SPC5_FLEXCAN1_FLEXCAN_BUF_08_11_NUMBER 90
  501. #define SPC5_FLEXCAN1_FLEXCAN_BUF_12_15_NUMBER 91
  502. #define SPC5_FLEXCAN1_FLEXCAN_BUF_16_31_NUMBER 92
  503. #define SPC5_FLEXCAN1_FLEXCAN_BUF_32_63_NUMBER 93
  504. #define SPC5_FLEXCAN1_ENABLE_CLOCK() halSPCSetPeripheralClockMode(SPC5_FLEXCAN1_PCTL, SPC5_CAN_FLEXCAN1_START_PCTL);
  505. #define SPC5_FLEXCAN1_DISABLE_CLOCK() halSPCSetPeripheralClockMode(SPC5_FLEXCAN1_PCTL, SPC5_CAN_FLEXCAN1_STOP_PCTL);
  506. #define SPC5_HAS_FLEXCAN2 TRUE
  507. #define SPC5_FLEXCAN2_PCTL 18
  508. #define SPC5_FLEXCAN2_MB 64
  509. #define SPC5_FLEXCAN2_SHARED_IRQ TRUE
  510. #define SPC5_FLEXCAN2_FLEXCAN_ESR_ERR_INT_HANDLER vector105
  511. #define SPC5_FLEXCAN2_FLEXCAN_ESR_BOFF_HANDLER vector106
  512. #define SPC5_FLEXCAN2_FLEXCAN_BUF_00_03_HANDLER vector108
  513. #define SPC5_FLEXCAN2_FLEXCAN_BUF_04_07_HANDLER vector109
  514. #define SPC5_FLEXCAN2_FLEXCAN_BUF_08_11_HANDLER vector110
  515. #define SPC5_FLEXCAN2_FLEXCAN_BUF_12_15_HANDLER vector111
  516. #define SPC5_FLEXCAN2_FLEXCAN_BUF_16_31_HANDLER vector112
  517. #define SPC5_FLEXCAN2_FLEXCAN_BUF_32_63_HANDLER vector113
  518. #define SPC5_FLEXCAN2_FLEXCAN_ESR_ERR_INT_NUMBER 105
  519. #define SPC5_FLEXCAN2_FLEXCAN_ESR_BOFF_NUMBER 106
  520. #define SPC5_FLEXCAN2_FLEXCAN_BUF_00_03_NUMBER 108
  521. #define SPC5_FLEXCAN2_FLEXCAN_BUF_04_07_NUMBER 109
  522. #define SPC5_FLEXCAN2_FLEXCAN_BUF_08_11_NUMBER 110
  523. #define SPC5_FLEXCAN2_FLEXCAN_BUF_12_15_NUMBER 111
  524. #define SPC5_FLEXCAN2_FLEXCAN_BUF_16_31_NUMBER 112
  525. #define SPC5_FLEXCAN2_FLEXCAN_BUF_32_63_NUMBER 113
  526. #define SPC5_FLEXCAN2_ENABLE_CLOCK() halSPCSetPeripheralClockMode(SPC5_FLEXCAN2_PCTL, SPC5_CAN_FLEXCAN2_START_PCTL);
  527. #define SPC5_FLEXCAN2_DISABLE_CLOCK() halSPCSetPeripheralClockMode(SPC5_FLEXCAN2_PCTL, SPC5_CAN_FLEXCAN2_START_PCTL);
  528. #define SPC5_HAS_FLEXCAN3 TRUE
  529. #define SPC5_FLEXCAN3_PCTL 19
  530. #define SPC5_FLEXCAN3_MB 64
  531. #define SPC5_FLEXCAN3_SHARED_IRQ TRUE
  532. #define SPC5_FLEXCAN3_FLEXCAN_ESR_ERR_INT_HANDLER vector173
  533. #define SPC5_FLEXCAN3_FLEXCAN_ESR_BOFF_HANDLER vector174
  534. #define SPC5_FLEXCAN3_FLEXCAN_BUF_00_03_HANDLER vector176
  535. #define SPC5_FLEXCAN3_FLEXCAN_BUF_04_07_HANDLER vector177
  536. #define SPC5_FLEXCAN3_FLEXCAN_BUF_08_11_HANDLER vector178
  537. #define SPC5_FLEXCAN3_FLEXCAN_BUF_12_15_HANDLER vector179
  538. #define SPC5_FLEXCAN3_FLEXCAN_BUF_16_31_HANDLER vector180
  539. #define SPC5_FLEXCAN3_FLEXCAN_BUF_32_63_HANDLER vector181
  540. #define SPC5_FLEXCAN3_FLEXCAN_ESR_ERR_INT_NUMBER 173
  541. #define SPC5_FLEXCAN3_FLEXCAN_ESR_BOFF_NUMBER 174
  542. #define SPC5_FLEXCAN3_FLEXCAN_BUF_00_03_NUMBER 176
  543. #define SPC5_FLEXCAN3_FLEXCAN_BUF_04_07_NUMBER 177
  544. #define SPC5_FLEXCAN3_FLEXCAN_BUF_08_11_NUMBER 178
  545. #define SPC5_FLEXCAN3_FLEXCAN_BUF_12_15_NUMBER 179
  546. #define SPC5_FLEXCAN3_FLEXCAN_BUF_16_31_NUMBER 180
  547. #define SPC5_FLEXCAN3_FLEXCAN_BUF_32_63_NUMBER 181
  548. #define SPC5_FLEXCAN3_ENABLE_CLOCK() halSPCSetPeripheralClockMode(SPC5_FLEXCAN3_PCTL, SPC5_CAN_FLEXCAN3_START_PCTL);
  549. #define SPC5_FLEXCAN3_DISABLE_CLOCK() halSPCSetPeripheralClockMode(SPC5_FLEXCAN3_PCTL, SPC5_CAN_FLEXCAN3_STOP_PCTL);
  550. #define SPC5_HAS_FLEXCAN4 TRUE
  551. #define SPC5_FLEXCAN4_PCTL 20
  552. #define SPC5_FLEXCAN4_MB 64
  553. #define SPC5_FLEXCAN4_SHARED_IRQ TRUE
  554. #define SPC5_FLEXCAN4_FLEXCAN_ESR_ERR_INT_HANDLER vector190
  555. #define SPC5_FLEXCAN4_FLEXCAN_ESR_BOFF_HANDLER vector191
  556. #define SPC5_FLEXCAN4_FLEXCAN_BUF_00_03_HANDLER vector193
  557. #define SPC5_FLEXCAN4_FLEXCAN_BUF_04_07_HANDLER vector194
  558. #define SPC5_FLEXCAN4_FLEXCAN_BUF_08_11_HANDLER vector195
  559. #define SPC5_FLEXCAN4_FLEXCAN_BUF_12_15_HANDLER vector196
  560. #define SPC5_FLEXCAN4_FLEXCAN_BUF_16_31_HANDLER vector197
  561. #define SPC5_FLEXCAN4_FLEXCAN_BUF_32_63_HANDLER vector198
  562. #define SPC5_FLEXCAN4_FLEXCAN_ESR_ERR_INT_NUMBER 190
  563. #define SPC5_FLEXCAN4_FLEXCAN_ESR_BOFF_NUMBER 191
  564. #define SPC5_FLEXCAN4_FLEXCAN_BUF_00_03_NUMBER 193
  565. #define SPC5_FLEXCAN4_FLEXCAN_BUF_04_07_NUMBER 194
  566. #define SPC5_FLEXCAN4_FLEXCAN_BUF_08_11_NUMBER 195
  567. #define SPC5_FLEXCAN4_FLEXCAN_BUF_12_15_NUMBER 196
  568. #define SPC5_FLEXCAN4_FLEXCAN_BUF_16_31_NUMBER 197
  569. #define SPC5_FLEXCAN4_FLEXCAN_BUF_32_63_NUMBER 198
  570. #define SPC5_FLEXCAN4_ENABLE_CLOCK() halSPCSetPeripheralClockMode(SPC5_FLEXCAN4_PCTL, SPC5_CAN_FLEXCAN4_START_PCTL);
  571. #define SPC5_FLEXCAN4_DISABLE_CLOCK() halSPCSetPeripheralClockMode(SPC5_FLEXCAN4_PCTL, SPC5_CAN_FLEXCAN4_STOP_PCTL);
  572. #define SPC5_HAS_FLEXCAN5 TRUE
  573. #define SPC5_FLEXCAN5_PCTL 21
  574. #define SPC5_FLEXCAN5_MB 64
  575. #define SPC5_FLEXCAN5_SHARED_IRQ TRUE
  576. #define SPC5_FLEXCAN5_FLEXCAN_ESR_ERR_INT_HANDLER vector202
  577. #define SPC5_FLEXCAN5_FLEXCAN_ESR_BOFF_HANDLER vector203
  578. #define SPC5_FLEXCAN5_FLEXCAN_BUF_00_03_HANDLER vector205
  579. #define SPC5_FLEXCAN5_FLEXCAN_BUF_04_07_HANDLER vector206
  580. #define SPC5_FLEXCAN5_FLEXCAN_BUF_08_11_HANDLER vector207
  581. #define SPC5_FLEXCAN5_FLEXCAN_BUF_12_15_HANDLER vector208
  582. #define SPC5_FLEXCAN5_FLEXCAN_BUF_16_31_HANDLER vector209
  583. #define SPC5_FLEXCAN5_FLEXCAN_BUF_32_63_HANDLER vector210
  584. #define SPC5_FLEXCAN5_FLEXCAN_ESR_ERR_INT_NUMBER 202
  585. #define SPC5_FLEXCAN5_FLEXCAN_ESR_BOFF_NUMBER 203
  586. #define SPC5_FLEXCAN5_FLEXCAN_BUF_00_03_NUMBER 205
  587. #define SPC5_FLEXCAN5_FLEXCAN_BUF_04_07_NUMBER 206
  588. #define SPC5_FLEXCAN5_FLEXCAN_BUF_08_11_NUMBER 207
  589. #define SPC5_FLEXCAN5_FLEXCAN_BUF_12_15_NUMBER 208
  590. #define SPC5_FLEXCAN5_FLEXCAN_BUF_16_31_NUMBER 209
  591. #define SPC5_FLEXCAN5_FLEXCAN_BUF_32_63_NUMBER 210
  592. #define SPC5_FLEXCAN5_ENABLE_CLOCK() halSPCSetPeripheralClockMode(SPC5_FLEXCAN5_PCTL, SPC5_CAN_FLEXCAN5_START_PCTL);
  593. #define SPC5_FLEXCAN5_DISABLE_CLOCK() halSPCSetPeripheralClockMode(SPC5_FLEXCAN5_PCTL, SPC5_CAN_FLEXCAN5_STOP_PCTL);
  594. /* ADC attributes.*/
  595. #define SPC5_ADC_HAS_TRC FALSE
  596. #define SPC5_HAS_ADC0 TRUE
  597. #define SPC5_ADC_ADC0_HAS_CTR0 TRUE
  598. #define SPC5_ADC_ADC0_HAS_CTR1 TRUE
  599. #define SPC5_ADC_ADC0_HAS_CTR2 TRUE
  600. #define SPC5_ADC_ADC0_HAS_NCMR0 TRUE
  601. #define SPC5_ADC_ADC0_HAS_NCMR1 TRUE
  602. #define SPC5_ADC_ADC0_HAS_NCMR2 TRUE
  603. #define SPC5_ADC_ADC0_HAS_THRHLR0 TRUE
  604. #define SPC5_ADC_ADC0_HAS_THRHLR1 TRUE
  605. #define SPC5_ADC_ADC0_HAS_THRHLR2 TRUE
  606. #define SPC5_ADC_ADC0_HAS_THRHLR3 TRUE
  607. #define SPC5_ADC_ADC0_HAS_THRHLR4 TRUE
  608. #define SPC5_ADC_ADC0_HAS_THRHLR5 TRUE
  609. #define SPC5_ADC_ADC0_HAS_THRHLR6 FALSE
  610. #define SPC5_ADC_ADC0_HAS_THRHLR7 FALSE
  611. #define SPC5_ADC_ADC0_HAS_THRHLR8 FALSE
  612. #define SPC5_ADC_ADC0_HAS_THRHLR9 FALSE
  613. #define SPC5_ADC_ADC0_HAS_THRHLR10 FALSE
  614. #define SPC5_ADC_ADC0_HAS_THRHLR11 FALSE
  615. #define SPC5_ADC_ADC0_HAS_THRHLR12 FALSE
  616. #define SPC5_ADC_ADC0_HAS_THRHLR13 FALSE
  617. #define SPC5_ADC_ADC0_HAS_THRHLR14 FALSE
  618. #define SPC5_ADC_ADC0_HAS_THRHLR15 FALSE
  619. #define SPC5_ADC_ADC0_HAS_CWENR0 TRUE
  620. #define SPC5_ADC_ADC0_HAS_CWENR1 TRUE
  621. #define SPC5_ADC_ADC0_HAS_CWENR2 TRUE
  622. #define SPC5_ADC_ADC0_HAS_CWSEL0 TRUE
  623. #define SPC5_ADC_ADC0_HAS_CWSEL1 TRUE
  624. #define SPC5_ADC_ADC0_HAS_CWSEL2 FALSE
  625. #define SPC5_ADC_ADC0_HAS_CWSEL3 FALSE
  626. #define SPC5_ADC_ADC0_HAS_CWSEL4 TRUE
  627. #define SPC5_ADC_ADC0_HAS_CWSEL5 TRUE
  628. #define SPC5_ADC_ADC0_HAS_CWSEL6 TRUE
  629. #define SPC5_ADC_ADC0_HAS_CWSEL7 TRUE
  630. #define SPC5_ADC_ADC0_HAS_CWSEL8 TRUE
  631. #define SPC5_ADC_ADC0_HAS_CWSEL9 TRUE
  632. #define SPC5_ADC_ADC0_HAS_CWSEL10 TRUE
  633. #define SPC5_ADC_ADC0_HAS_CWSEL11 TRUE
  634. #define SPC5_ADC_ADC0_HAS_CIMR0 TRUE
  635. #define SPC5_ADC_ADC0_HAS_CIMR1 TRUE
  636. #define SPC5_ADC_ADC0_HAS_CIMR2 TRUE
  637. #define SPC5_ADC_ADC0_HAS_CEOCFR0 TRUE
  638. #define SPC5_ADC_ADC0_HAS_CEOCFR1 TRUE
  639. #define SPC5_ADC_ADC0_HAS_CEOCFR2 TRUE
  640. #define SPC5_ADC0_PCTL 32
  641. #define SPC5_ADC0_DMA_DEV_ID 29
  642. #define SPC5_ADC0_EOC_HANDLER vector62
  643. #define SPC5_ADC0_EOC_NUMBER 62
  644. #define SPC5_ADC0_WD_HANDLER vector64
  645. #define SPC5_ADC0_WD_NUMBER 64
  646. #define SPC5_HAS_ADC1 TRUE
  647. #define SPC5_ADC_ADC1_HAS_CTR0 TRUE
  648. #define SPC5_ADC_ADC1_HAS_CTR1 TRUE
  649. #define SPC5_ADC_ADC1_HAS_CTR2 FALSE
  650. #define SPC5_ADC_ADC1_HAS_NCMR0 TRUE
  651. #define SPC5_ADC_ADC1_HAS_NCMR1 TRUE
  652. #define SPC5_ADC_ADC1_HAS_NCMR2 FALSE
  653. #define SPC5_ADC_ADC1_HAS_THRHLR0 TRUE
  654. #define SPC5_ADC_ADC1_HAS_THRHLR1 TRUE
  655. #define SPC5_ADC_ADC1_HAS_THRHLR2 TRUE
  656. #define SPC5_ADC_ADC1_HAS_THRHLR3 FALSE
  657. #define SPC5_ADC_ADC1_HAS_THRHLR4 FALSE
  658. #define SPC5_ADC_ADC1_HAS_THRHLR5 FALSE
  659. #define SPC5_ADC_ADC1_HAS_THRHLR6 FALSE
  660. #define SPC5_ADC_ADC1_HAS_THRHLR7 FALSE
  661. #define SPC5_ADC_ADC1_HAS_THRHLR8 FALSE
  662. #define SPC5_ADC_ADC1_HAS_THRHLR9 FALSE
  663. #define SPC5_ADC_ADC1_HAS_THRHLR10 FALSE
  664. #define SPC5_ADC_ADC1_HAS_THRHLR11 FALSE
  665. #define SPC5_ADC_ADC1_HAS_THRHLR12 FALSE
  666. #define SPC5_ADC_ADC1_HAS_THRHLR13 FALSE
  667. #define SPC5_ADC_ADC1_HAS_THRHLR14 FALSE
  668. #define SPC5_ADC_ADC1_HAS_THRHLR15 FALSE
  669. #define SPC5_ADC_ADC1_HAS_CWENR0 TRUE
  670. #define SPC5_ADC_ADC1_HAS_CWENR1 TRUE
  671. #define SPC5_ADC_ADC1_HAS_CWENR2 FALSE
  672. #define SPC5_ADC_ADC1_HAS_CWSEL0 TRUE
  673. #define SPC5_ADC_ADC1_HAS_CWSEL1 TRUE
  674. #define SPC5_ADC_ADC1_HAS_CWSEL2 FALSE
  675. #define SPC5_ADC_ADC1_HAS_CWSEL3 FALSE
  676. #define SPC5_ADC_ADC1_HAS_CWSEL4 TRUE
  677. #define SPC5_ADC_ADC1_HAS_CWSEL5 TRUE
  678. #define SPC5_ADC_ADC1_HAS_CWSEL6 FALSE
  679. #define SPC5_ADC_ADC1_HAS_CWSEL7 FALSE
  680. #define SPC5_ADC_ADC1_HAS_CWSEL8 FALSE
  681. #define SPC5_ADC_ADC1_HAS_CWSEL9 FALSE
  682. #define SPC5_ADC_ADC1_HAS_CWSEL10 FALSE
  683. #define SPC5_ADC_ADC1_HAS_CWSEL11 FALSE
  684. #define SPC5_ADC_ADC1_HAS_CIMR0 TRUE
  685. #define SPC5_ADC_ADC1_HAS_CIMR1 TRUE
  686. #define SPC5_ADC_ADC1_HAS_CIMR2 TRUE
  687. #define SPC5_ADC_ADC1_HAS_CEOCFR0 TRUE
  688. #define SPC5_ADC_ADC1_HAS_CEOCFR1 TRUE
  689. #define SPC5_ADC_ADC1_HAS_CEOCFR2 TRUE
  690. #define SPC5_ADC1_PCTL 33
  691. #define SPC5_ADC1_DMA_DEV_ID 30
  692. #define SPC5_ADC1_EOC_HANDLER vector82
  693. #define SPC5_ADC1_EOC_NUMBER 82
  694. #define SPC5_ADC1_WD_HANDLER vector84
  695. #define SPC5_ADC1_WD_NUMBER 84
  696. /** @} */
  697. #endif /* SPC5_REGISTRY_H */
  698. /** @} */