PeripheralAddress_ASM.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. ;----------------------------------------------------------------------------------
  2. ; FILE: PeripheralAddress_ASM.H
  3. ;
  4. ; Description: Generic Header file for 280x "EPeripheral" register addresses.
  5. ;
  6. ; Version: 1.01
  7. ;
  8. ; Target: TMS320F280x
  9. ;
  10. ; Type: Device dependent
  11. ;
  12. ;----------------------------------------------------------------------------------
  13. ; Copyright Texas Instruments © 2007
  14. ;----------------------------------------------------------------------------------
  15. ; Revision History:
  16. ;----------------------------------------------------------------------------------
  17. ; Date | Description
  18. ;----------------------------------------------------------------------------------
  19. ; 06/30/05 | Release 1.0 New release.
  20. ; 07/21/05 | Release 1.01 Added more ADC registers.
  21. ; 09/18/08 | Release 1.02 Added more ADC registers.
  22. ;----------------------------------------------------------------------------------
  23. _DSP_DEVICE .set 28035
  24. ; EPWM
  25. EPWM1_BASE .set 0x6800
  26. TBSTS1 .set EPWM1_BASE+0x1
  27. TBPHSHR1 .set EPWM1_BASE+0x2
  28. TBPHS1 .set EPWM1_BASE+0x3
  29. TBCTR1 .set EPWM1_BASE+0x4
  30. TBPRD1 .set EPWM1_BASE+0x5
  31. CMPAHR1 .set EPWM1_BASE+0x8
  32. CMPA1 .set EPWM1_BASE+0x9
  33. CMPB1 .set EPWM1_BASE+0xA
  34. DBRED1 .set EPWM1_BASE+0x10
  35. DBFED1 .set EPWM1_BASE+0x11
  36. TZSEL1 .set EPWM1_BASE+0x12
  37. TZCTL1 .set EPWM1_BASE+0x14
  38. TZEINT1 .set EPWM1_BASE+0x15
  39. TZFLG1 .set EPWM1_BASE+0x16
  40. TZCLR1 .set EPWM1_BASE+0x17
  41. TZFRC1 .set EPWM1_BASE+0x18
  42. ETSEL1 .set EPWM1_BASE+0x19
  43. ETPS1 .set EPWM1_BASE+0x1A
  44. ETFLG1 .set EPWM1_BASE+0x1B
  45. ETCLR1 .set EPWM1_BASE+0x1C
  46. ETFRC1 .set EPWM1_BASE+0x1D
  47. EPWM2_BASE .set 0x6840
  48. TBSTS2 .set EPWM2_BASE+0x1
  49. TBPHSHR2 .set EPWM2_BASE+0x2
  50. TBPHS2 .set EPWM2_BASE+0x3
  51. TBCTR2 .set EPWM2_BASE+0x4
  52. TBPRD2 .set EPWM2_BASE+0x5
  53. CMPAHR2 .set EPWM2_BASE+0x8
  54. CMPA2 .set EPWM2_BASE+0x9
  55. CMPB2 .set EPWM2_BASE+0xA
  56. DBRED2 .set EPWM2_BASE+0x10
  57. DBFED2 .set EPWM2_BASE+0x11
  58. TZSEL2 .set EPWM2_BASE+0x12
  59. TZCTL2 .set EPWM2_BASE+0x14
  60. TZEINT2 .set EPWM2_BASE+0x15
  61. TZFLG2 .set EPWM2_BASE+0x16
  62. TZCLR2 .set EPWM2_BASE+0x17
  63. TZFRC2 .set EPWM2_BASE+0x18
  64. ETSEL2 .set EPWM2_BASE+0x19
  65. ETPS2 .set EPWM2_BASE+0x1A
  66. ETFLG2 .set EPWM2_BASE+0x1B
  67. ETCLR2 .set EPWM2_BASE+0x1C
  68. ETFRC2 .set EPWM2_BASE+0x1D
  69. EPWM3_BASE .set 0x6880
  70. TBSTS3 .set EPWM3_BASE+0x1
  71. TBPHSHR3 .set EPWM3_BASE+0x2
  72. TBPHS3 .set EPWM3_BASE+0x3
  73. TBCTR3 .set EPWM3_BASE+0x4
  74. TBPRD3 .set EPWM3_BASE+0x5
  75. CMPAHR3 .set EPWM3_BASE+0x8
  76. CMPA3 .set EPWM3_BASE+0x9
  77. CMPB3 .set EPWM3_BASE+0xA
  78. DBRED3 .set EPWM3_BASE+0x10
  79. DBFED3 .set EPWM3_BASE+0x11
  80. TZSEL3 .set EPWM3_BASE+0x12
  81. TZCTL3 .set EPWM3_BASE+0x14
  82. TZEINT3 .set EPWM3_BASE+0x15
  83. TZFLG3 .set EPWM3_BASE+0x16
  84. TZCLR3 .set EPWM3_BASE+0x17
  85. TZFRC3 .set EPWM3_BASE+0x18
  86. ETSEL3 .set EPWM3_BASE+0x19
  87. ETPS3 .set EPWM3_BASE+0x1A
  88. ETFLG3 .set EPWM3_BASE+0x1B
  89. ETCLR3 .set EPWM3_BASE+0x1C
  90. ETFRC3 .set EPWM3_BASE+0x1D
  91. EPWM4_BASE .set 0x68C0
  92. TBSTS4 .set EPWM4_BASE+0x1
  93. TBPHSHR4 .set EPWM4_BASE+0x2
  94. TBPHS4 .set EPWM4_BASE+0x3
  95. TBCTR4 .set EPWM4_BASE+0x4
  96. TBPRD4 .set EPWM4_BASE+0x5
  97. CMPAHR4 .set EPWM4_BASE+0x8
  98. CMPA4 .set EPWM4_BASE+0x9
  99. CMPB4 .set EPWM4_BASE+0xA
  100. DBRED4 .set EPWM4_BASE+0x10
  101. DBFED4 .set EPWM4_BASE+0x11
  102. TZSEL4 .set EPWM4_BASE+0x12
  103. TZCTL4 .set EPWM4_BASE+0x14
  104. TZEINT4 .set EPWM4_BASE+0x15
  105. TZFLG4 .set EPWM4_BASE+0x16
  106. TZCLR4 .set EPWM4_BASE+0x17
  107. TZFRC4 .set EPWM4_BASE+0x18
  108. ETSEL4 .set EPWM4_BASE+0x19
  109. ETPS4 .set EPWM4_BASE+0x1A
  110. ETFLG4 .set EPWM4_BASE+0x1B
  111. ETCLR4 .set EPWM4_BASE+0x1C
  112. ETFRC4 .set EPWM4_BASE+0x1D
  113. EPWM5_BASE .set 0x6900
  114. TBSTS5 .set EPWM5_BASE+0x1
  115. TBPHSHR5 .set EPWM5_BASE+0x2
  116. TBPHS5 .set EPWM5_BASE+0x3
  117. TBCTR5 .set EPWM5_BASE+0x4
  118. TBPRD5 .set EPWM5_BASE+0x5
  119. CMPAHR5 .set EPWM5_BASE+0x8
  120. CMPA5 .set EPWM5_BASE+0x9
  121. CMPB5 .set EPWM5_BASE+0xA
  122. DBRED5 .set EPWM5_BASE+0x10
  123. DBFED5 .set EPWM5_BASE+0x11
  124. TZSEL5 .set EPWM5_BASE+0x12
  125. TZCTL5 .set EPWM5_BASE+0x14
  126. TZEINT5 .set EPWM5_BASE+0x15
  127. TZFLG5 .set EPWM5_BASE+0x16
  128. TZCLR5 .set EPWM5_BASE+0x17
  129. TZFRC5 .set EPWM5_BASE+0x18
  130. ETSEL5 .set EPWM5_BASE+0x19
  131. ETPS5 .set EPWM5_BASE+0x1A
  132. ETFLG5 .set EPWM5_BASE+0x1B
  133. ETCLR5 .set EPWM5_BASE+0x1C
  134. ETFRC5 .set EPWM5_BASE+0x1D
  135. EPWM6_BASE .set 0x6940
  136. TBPHS6 .set EPWM6_BASE+0x3
  137. TBCTR6 .set EPWM6_BASE+0x4
  138. TBPRD6 .set EPWM6_BASE+0x5
  139. CMPA6 .set EPWM6_BASE+0x9
  140. CMPB6 .set EPWM6_BASE+0xA
  141. DBRED6 .set EPWM6_BASE+0x10
  142. DBFED6 .set EPWM6_BASE+0x11
  143. TZSEL6 .set EPWM6_BASE+0x12
  144. TZCTL6 .set EPWM6_BASE+0x14
  145. TZEINT6 .set EPWM6_BASE+0x15
  146. TZFLG6 .set EPWM6_BASE+0x16
  147. TZCLR6 .set EPWM6_BASE+0x17
  148. TZFRC6 .set EPWM6_BASE+0x18
  149. ETSEL6 .set EPWM6_BASE+0x19
  150. ETPS6 .set EPWM6_BASE+0x1A
  151. ETFLG6 .set EPWM6_BASE+0x1B
  152. ETCLR6 .set EPWM6_BASE+0x1C
  153. ETFRC6 .set EPWM6_BASE+0x1D
  154. EPWM7_BASE .set 0x6980
  155. TBPHSHR7 .set EPWM7_BASE+0x2
  156. TBPHS7 .set EPWM7_BASE+0x3
  157. TBCTR7 .set EPWM7_BASE+0x4
  158. TBPRD7 .set EPWM7_BASE+0x5
  159. CMPAHR7 .set EPWM7_BASE+0x8
  160. CMPA7 .set EPWM7_BASE+0x9
  161. CMPB7 .set EPWM7_BASE+0xA
  162. DBRED7 .set EPWM7_BASE+0x10
  163. DBFED7 .set EPWM7_BASE+0x11
  164. TZSEL7 .set EPWM7_BASE+0x12
  165. TZCTL7 .set EPWM7_BASE+0x14
  166. TZEINT7 .set EPWM7_BASE+0x15
  167. TZFLG7 .set EPWM7_BASE+0x16
  168. TZCLR7 .set EPWM7_BASE+0x17
  169. TZFRC7 .set EPWM7_BASE+0x18
  170. ETSEL7 .set EPWM7_BASE+0x19
  171. ETPS7 .set EPWM7_BASE+0x1A
  172. ETFLG7 .set EPWM7_BASE+0x1B
  173. ETCLR7 .set EPWM7_BASE+0x1C
  174. ETFRC7 .set EPWM7_BASE+0x1D
  175. EPWM8_BASE .set 0x69C0
  176. TBPHSHR8 .set EPWM8_BASE+0x2
  177. TBPHS8 .set EPWM8_BASE+0x3
  178. TBCTR8 .set EPWM8_BASE+0x4
  179. TBPRD8 .set EPWM8_BASE+0x5
  180. CMPAHR8 .set EPWM8_BASE+0x8
  181. CMPA8 .set EPWM8_BASE+0x9
  182. CMPB8 .set EPWM8_BASE+0xA
  183. DBRED8 .set EPWM8_BASE+0x10
  184. DBFED8 .set EPWM8_BASE+0x11
  185. TZSEL8 .set EPWM8_BASE+0x12
  186. TZCTL8 .set EPWM8_BASE+0x14
  187. TZEINT8 .set EPWM8_BASE+0x15
  188. TZFLG8 .set EPWM8_BASE+0x16
  189. TZCLR8 .set EPWM8_BASE+0x17
  190. TZFRC8 .set EPWM8_BASE+0x18
  191. ETSEL8 .set EPWM8_BASE+0x19
  192. ETPS8 .set EPWM8_BASE+0x1A
  193. ETFLG8 .set EPWM8_BASE+0x1B
  194. ETCLR8 .set EPWM8_BASE+0x1C
  195. ETFRC8 .set EPWM8_BASE+0x1D
  196. EPWM9_BASE .set 0x6600
  197. TBPHSHR9 .set EPWM9_BASE+0x2
  198. TBPHS9 .set EPWM9_BASE+0x3
  199. TBCTR9 .set EPWM9_BASE+0x4
  200. TBPRD9 .set EPWM9_BASE+0x5
  201. CMPAHR9 .set EPWM9_BASE+0x8
  202. CMPA9 .set EPWM9_BASE+0x9
  203. CMPB9 .set EPWM9_BASE+0xA
  204. DBRED9 .set EPWM9_BASE+0x10
  205. DBFED9 .set EPWM9_BASE+0x11
  206. TZSEL9 .set EPWM9_BASE+0x12
  207. TZCTL9 .set EPWM9_BASE+0x14
  208. TZEINT9 .set EPWM9_BASE+0x15
  209. TZFLG9 .set EPWM9_BASE+0x16
  210. TZCLR9 .set EPWM9_BASE+0x17
  211. TZFRC9 .set EPWM9_BASE+0x18
  212. ETSEL9 .set EPWM9_BASE+0x19
  213. ETPS9 .set EPWM9_BASE+0x1A
  214. ETFLG9 .set EPWM9_BASE+0x1B
  215. ETCLR9 .set EPWM9_BASE+0x1C
  216. ETFRC9 .set EPWM9_BASE+0x1D
  217. ; EPWM7 : origin = 0x006980, length = 0x000022 /* Enhanced PWM 7 registers */
  218. ; EPWM8 : origin = 0x0069C0, length = 0x000022 /* Enhanced PWM 8 registers */
  219. ; EPWM9 : origin = 0x006600, length = 0x000022 /* Enhanced PWM 9 registers */
  220. ; EPWM10 : origin = 0x006640, length = 0x000022 /* Enhanced PWM 10 registers */
  221. ; EPWM11 : origin = 0x006680, length = 0x000022 /* Enhanced PWM 11 registers */
  222. ; EPWM12 : origin = 0x0066C0, length = 0x000022 /* Enhanced PWM 12 registers */
  223. ; EPWM13 : origin = 0x006700, length = 0x000022 /* Enhanced PWM 13 registers */
  224. ; EPWM14 : origin = 0x006740, length = 0x000022 /* Enhanced PWM 14 registers */
  225. ; EPWM15 : origin = 0x006780, length = 0x000022 /* Enhanced PWM 15 registers */
  226. ; EPWM16 : origin = 0x0067C0, length = 0x000022 /* Enhanced PWM 16 registers */
  227. ; ECAP
  228. ;=======================================
  229. ECAP1_BASE .set 0x6A00
  230. TSCTR1 .set ECAP1_BASE+0x0
  231. CTRPHS1 .set ECAP1_BASE+0x2
  232. CAP11 .set ECAP1_BASE+0x4
  233. CAP21 .set ECAP1_BASE+0x6
  234. CAP31 .set ECAP1_BASE+0x8
  235. CAP41 .set ECAP1_BASE+0xA
  236. ECCTL11 .set ECAP1_BASE+0x14
  237. ECCTL21 .set ECAP1_BASE+0x15
  238. ECFLG1 .set ECAP1_BASE+0x17
  239. ECCLR1 .set ECAP1_BASE+0x18
  240. ;---------------------------------------
  241. ECAP2_BASE .set 0x6A20
  242. TSCTR2 .set ECAP2_BASE+0x0
  243. CTRPHS2 .set ECAP2_BASE+0x2
  244. CAP12 .set ECAP2_BASE+0x4
  245. CAP22 .set ECAP2_BASE+0x6
  246. CAP32 .set ECAP2_BASE+0x8
  247. CAP42 .set ECAP2_BASE+0xA
  248. ECCTL12 .set ECAP2_BASE+0x14
  249. ECCTL22 .set ECAP2_BASE+0x15
  250. ECFLG2 .set ECAP2_BASE+0x17
  251. ECCLR2 .set ECAP2_BASE+0x18
  252. ;---------------------------------------
  253. ECAP3_BASE .set 0x6A40
  254. TSCTR3 .set ECAP3_BASE+0x0
  255. CTRPHS3 .set ECAP3_BASE+0x2
  256. CAP13 .set ECAP3_BASE+0x4
  257. CAP23 .set ECAP3_BASE+0x6
  258. CAP33 .set ECAP3_BASE+0x8
  259. CAP43 .set ECAP3_BASE+0xA
  260. ECCTL13 .set ECAP3_BASE+0x14
  261. ECCTL23 .set ECAP3_BASE+0x15
  262. ECFLG3 .set ECAP3_BASE+0x17
  263. ECCLR3 .set ECAP3_BASE+0x18
  264. ;---------------------------------------
  265. ECAP4_BASE .set 0x6A60
  266. TSCTR4 .set ECAP4_BASE+0x0
  267. CTRPHS4 .set ECAP4_BASE+0x2
  268. CAP14 .set ECAP4_BASE+0x4
  269. CAP24 .set ECAP4_BASE+0x6
  270. CAP34 .set ECAP4_BASE+0x8
  271. CAP44 .set ECAP4_BASE+0xA
  272. ECCTL14 .set ECAP4_BASE+0x14
  273. ECCTL24 .set ECAP4_BASE+0x15
  274. ECFLG4 .set ECAP4_BASE+0x17
  275. ECCLR4 .set ECAP4_BASE+0x18
  276. ;---------------------------------------
  277. ECAP5_BASE .set 0x6A80
  278. TSCTR5 .set ECAP5_BASE+0x0
  279. CTRPHS5 .set ECAP5_BASE+0x2
  280. CAP15 .set ECAP5_BASE+0x4
  281. CAP25 .set ECAP5_BASE+0x6
  282. CAP35 .set ECAP5_BASE+0x8
  283. CAP45 .set ECAP5_BASE+0xA
  284. ECCTL15 .set ECAP5_BASE+0x14
  285. ECCTL25 .set ECAP5_BASE+0x15
  286. ECFLG5 .set ECAP5_BASE+0x17
  287. ECCLR5 .set ECAP5_BASE+0x18
  288. ;---------------------------------------
  289. ECAP6_BASE .set 0x6AA0
  290. TSCTR6 .set ECAP6_BASE+0x0
  291. CTRPHS6 .set ECAP6_BASE+0x2
  292. CAP16 .set ECAP6_BASE+0x4
  293. CAP26 .set ECAP6_BASE+0x6
  294. CAP36 .set ECAP6_BASE+0x8
  295. CAP46 .set ECAP6_BASE+0xA
  296. ECCTL16 .set ECAP6_BASE+0x14
  297. ECCTL26 .set ECAP6_BASE+0x15
  298. ECFLG6 .set ECAP6_BASE+0x17
  299. ECCLR6 .set ECAP6_BASE+0x18
  300. ;---------------------------------------
  301. ; ADC
  302. ADCCTL1 .set 0x7100
  303. ;ADCMAXCONV .set 0x7102
  304. ;ADCASEQSR .set 0x7107
  305. ;ADCREFSEL .set 0x711C
  306. ;ADCOFFTRIM .set 0x711D
  307. ;ADCCHSELSEQ1 .set 0x7103
  308. ;ADCCHSELSEQ2 .set 0x7104
  309. ;ADCCHSELSEQ3 .set 0x7105
  310. ;ADCCHSELSEQ4 .set 0x7106
  311. ;ADCST .set 0x7119
  312. ;INT_SEQ1_CLR .set 0x0010
  313. ADCRESULT0 .set 0x7108
  314. ADCRESULT1 .set 0x7109
  315. ADCRESULT2 .set 0x710A
  316. ADCRESULT3 .set 0x710B
  317. ADCRESULT4 .set 0x710C
  318. ADCRESULT5 .set 0x710D
  319. ADCRESULT6 .set 0x710E
  320. ADCRESULT7 .set 0x710F
  321. ADCRESULT8 .set 0x7110
  322. ADCRESULT9 .set 0x7111
  323. ADCRESULT10 .set 0x7112
  324. ADCRESULT11 .set 0x7113
  325. ADCRESULT12 .set 0x7114
  326. ADCRESULT13 .set 0x7115
  327. ADCRESULT14 .set 0x7116
  328. ADCRESULT15 .set 0x7117
  329. ADCPF0R0 .set 0x0B00
  330. ADCPF0R1 .set 0x0B01
  331. ADCPF0R2 .set 0x0B02
  332. ADCPF0R3 .set 0x0B03
  333. ADCPF0R4 .set 0x0B04
  334. ADCPF0R5 .set 0x0B05
  335. ADCPF0R6 .set 0x0B06
  336. ADCPF0R7 .set 0x0B07
  337. ADCPF0R8 .set 0x0B08
  338. ADCPF0R9 .set 0x0B09
  339. ADCPF0R10 .set 0x0B0A
  340. ADCPF0R11 .set 0x0B0B
  341. ADCPF0R12 .set 0x0B0C
  342. ADCPF0R13 .set 0x0B0D
  343. ADCPF0R14 .set 0x0B0E
  344. ADCPF0R15 .set 0x0B0F
  345. ;SPI
  346. ;=======================================
  347. SPIA_BASE .set 0x7740
  348. SPIACCR .set SPIA_BASE+0x0
  349. SPIACTL .set SPIA_BASE+0x1
  350. SPIAST .set SPIA_BASE+0x2
  351. SPIARXBUF .set SPIA_BASE+0x7
  352. SPIATXBUF .set SPIA_BASE+0x8
  353. SPIADAT .set SPIA_BASE+0x9
  354. ;---------------------------------------
  355. SPIB_BASE .set 0x7750
  356. SPIBCCR .set SPIB_BASE+0x0
  357. SPIBCTL .set SPIB_BASE+0x1
  358. SPIBST .set SPIB_BASE+0x2
  359. SPIBRXBUF .set SPIB_BASE+0x7
  360. SPIBTXBUF .set SPIB_BASE+0x8
  361. SPIBDAT .set SPIB_BASE+0x9
  362. ;---------------------------------------
  363. SPIC_BASE .set 0x7760
  364. SPICCCR .set SPIC_BASE+0x0
  365. SPICCTL .set SPIC_BASE+0x1
  366. SPICST .set SPIC_BASE+0x2
  367. SPICRXBUF .set SPIC_BASE+0x7
  368. SPICTXBUF .set SPIC_BASE+0x8
  369. SPICDAT .set SPIC_BASE+0x9
  370. ;---------------------------------------
  371. SPID_BASE .set 0x7780
  372. SPIDCCR .set SPID_BASE+0x0
  373. SPIDCTL .set SPID_BASE+0x1
  374. SPIDST .set SPID_BASE+0x2
  375. SPIDRXBUF .set SPID_BASE+0x7
  376. SPIDTXBUF .set SPID_BASE+0x8
  377. SPIDDAT .set SPID_BASE+0x9
  378. ;---------------------------------------
  379. ;McBSP
  380. ;=======================================
  381. McBSPA_BASE .set 0x5000
  382. DRR2A .set McBSPA_BASE+0x0
  383. DRR1A .set McBSPA_BASE+0x1
  384. DXR2A .set McBSPA_BASE+0x2
  385. DXR1A .set McBSPA_BASE+0x3
  386. SPCR2A .set McBSPA_BASE+0x4
  387. SPCR1A .set McBSPA_BASE+0x5
  388. RCR2A .set McBSPA_BASE+0x6
  389. RCR1A .set McBSPA_BASE+0x7
  390. XCR2A .set McBSPA_BASE+0x8
  391. XCR1A .set McBSPA_BASE+0x9
  392. SRGR2A .set McBSPA_BASE+0xA
  393. SRGR1A .set McBSPA_BASE+0xB
  394. ;---------------------------------------
  395. McBSPB_BASE .set 0x5040
  396. DRR2B .set McBSPB_BASE+0x0
  397. DRR1B .set McBSPB_BASE+0x1
  398. DXR2B .set McBSPB_BASE+0x2
  399. DXR1B .set McBSPB_BASE+0x3
  400. SPCR2B .set McBSPB_BASE+0x4
  401. SPCR1B .set McBSPB_BASE+0x5
  402. RCR2B .set McBSPB_BASE+0x6
  403. RCR1B .set McBSPB_BASE+0x7
  404. XCR2B .set McBSPB_BASE+0x8
  405. XCR1B .set McBSPB_BASE+0x9
  406. SRGR2B .set McBSPB_BASE+0xA
  407. SRGR1B .set McBSPB_BASE+0xB
  408. ;---------------------------------------
  409. ; Interrupts
  410. PIEACK .set 0x0CE1
  411. PIEACK_GROUP1 .set 0x0001
  412. PIEACK_GROUP2 .set 0x0002
  413. PIEACK_GROUP3 .set 0x0004
  414. PIEACK_GROUP4 .set 0x0008
  415. PIEACK_GROUP5 .set 0x0010
  416. PIEACK_GROUP6 .set 0x0020
  417. PIEACK_GROUP7 .set 0x0040
  418. PIEACK_GROUP8 .set 0x0080
  419. PIEACK_GROUP9 .set 0x0100
  420. PIEACK_GROUP10 .set 0x0200
  421. PIEACK_GROUP11 .set 0x0400
  422. PIEACK_GROUP12 .set 0x0800
  423. ; GPIO Port B
  424. GPBMUX1 .set 0x6F96
  425. GPBDIR .set 0x6F9A
  426. GPBDAT .set 0x6FC8
  427. GPBSET .set 0x6FCA
  428. GPBCLEAR .set 0x6FCC
  429. GPBTOGGLE .set 0x6FCE
  430. CONTEXT_SAVE .macro
  431. PUSH AR1H:AR0H ; 32-bit
  432. PUSH XAR2 ; 32-bit
  433. PUSH XAR3 ; 32-bit
  434. PUSH XAR4 ; 32-bit
  435. PUSH XAR5 ; 32-bit
  436. PUSH XAR6 ; 32-bit
  437. PUSH XAR7 ; 32-bit
  438. PUSH XT ; 32-bit
  439. .endm
  440. CONTEXT_REST .macro
  441. POP XT
  442. POP XAR7
  443. POP XAR6
  444. POP XAR5
  445. POP XAR4
  446. POP XAR3
  447. POP XAR2
  448. POP AR1H:AR0H
  449. .endm