DSP2803x_GlobalVariableDefs.c 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. // TI File $Revision: /main/1 $
  2. // Checkin $Date: December 5, 2008 18:05:12 $
  3. //###########################################################################
  4. //
  5. // FILE: DSP2803x_GlobalVariableDefs.c
  6. //
  7. // TITLE: DSP2803x Global Variables and Data Section Pragmas.
  8. //
  9. //###########################################################################
  10. // $TI Release: 2803x Internal Release 2 $
  11. // $Release Date: November 11, 2008 $
  12. //###########################################################################
  13. #include "PeripheralHeaderIncludes.h" // DSP2803x Headerfile Include File
  14. //---------------------------------------------------------------------------
  15. // Define Global Peripheral Variables:
  16. //
  17. //----------------------------------------
  18. #ifdef __cplusplus
  19. #pragma DATA_SECTION("AdcRegsFile")
  20. #else
  21. #pragma DATA_SECTION(AdcRegs,"AdcRegsFile");
  22. #endif
  23. volatile struct ADC_REGS AdcRegs;
  24. //----------------------------------------
  25. #ifdef __cplusplus
  26. #pragma DATA_SECTION("AdcResultFile")
  27. #else
  28. #pragma DATA_SECTION(AdcResult,"AdcResultFile");
  29. #endif
  30. volatile struct ADC_RESULT_REGS AdcResult;
  31. //----------------------------------------
  32. #ifdef __cplusplus
  33. #pragma DATA_SECTION("Comp1RegsFile")
  34. #else
  35. #pragma DATA_SECTION(Comp1Regs,"Comp1RegsFile");
  36. #endif
  37. volatile struct COMP_REGS Comp1Regs;
  38. //----------------------------------------
  39. #ifdef __cplusplus
  40. #pragma DATA_SECTION("Comp2RegsFile")
  41. #else
  42. #pragma DATA_SECTION(Comp2Regs,"Comp2RegsFile");
  43. #endif
  44. volatile struct COMP_REGS Comp2Regs;
  45. //----------------------------------------
  46. #ifdef __cplusplus
  47. #pragma DATA_SECTION("Comp3RegsFile")
  48. #else
  49. #pragma DATA_SECTION(Comp3Regs,"Comp3RegsFile");
  50. #endif
  51. volatile struct COMP_REGS Comp3Regs;
  52. //----------------------------------------
  53. #ifdef __cplusplus
  54. #pragma DATA_SECTION("CpuTimer0RegsFile")
  55. #else
  56. #pragma DATA_SECTION(CpuTimer0Regs,"CpuTimer0RegsFile");
  57. #endif
  58. volatile struct CPUTIMER_REGS CpuTimer0Regs;
  59. //----------------------------------------
  60. #ifdef __cplusplus
  61. #pragma DATA_SECTION("CpuTimer1RegsFile")
  62. #else
  63. #pragma DATA_SECTION(CpuTimer1Regs,"CpuTimer1RegsFile");
  64. #endif
  65. volatile struct CPUTIMER_REGS CpuTimer1Regs;
  66. //----------------------------------------
  67. #ifdef __cplusplus
  68. #pragma DATA_SECTION("CpuTimer2RegsFile")
  69. #else
  70. #pragma DATA_SECTION(CpuTimer2Regs,"CpuTimer2RegsFile");
  71. #endif
  72. volatile struct CPUTIMER_REGS CpuTimer2Regs;
  73. //----------------------------------------
  74. #ifdef __cplusplus
  75. #pragma DATA_SECTION("CsmPwlFile")
  76. #else
  77. #pragma DATA_SECTION(CsmPwl,"CsmPwlFile");
  78. #endif
  79. volatile struct CSM_PWL CsmPwl;
  80. //----------------------------------------
  81. #ifdef __cplusplus
  82. #pragma DATA_SECTION("CsmRegsFile")
  83. #else
  84. #pragma DATA_SECTION(CsmRegs,"CsmRegsFile");
  85. #endif
  86. volatile struct CSM_REGS CsmRegs;
  87. //----------------------------------------
  88. #ifdef __cplusplus
  89. #pragma DATA_SECTION("DevEmuRegsFile")
  90. #else
  91. #pragma DATA_SECTION(DevEmuRegs,"DevEmuRegsFile");
  92. #endif
  93. volatile struct DEV_EMU_REGS DevEmuRegs;
  94. //----------------------------------------
  95. #ifdef __cplusplus
  96. #pragma DATA_SECTION("ECanaRegsFile")
  97. #else
  98. #pragma DATA_SECTION(ECanaRegs,"ECanaRegsFile");
  99. #endif
  100. volatile struct ECAN_REGS ECanaRegs;
  101. //----------------------------------------
  102. #ifdef __cplusplus
  103. #pragma DATA_SECTION("ECanaMboxesFile")
  104. #else
  105. #pragma DATA_SECTION(ECanaMboxes,"ECanaMboxesFile");
  106. #endif
  107. volatile struct ECAN_MBOXES ECanaMboxes;
  108. //----------------------------------------
  109. #ifdef __cplusplus
  110. #pragma DATA_SECTION("ECanaLAMRegsFile")
  111. #else
  112. #pragma DATA_SECTION(ECanaLAMRegs,"ECanaLAMRegsFile");
  113. #endif
  114. volatile struct LAM_REGS ECanaLAMRegs;
  115. //----------------------------------------
  116. #ifdef __cplusplus
  117. #pragma DATA_SECTION("ECanaMOTSRegsFile")
  118. #else
  119. #pragma DATA_SECTION(ECanaMOTSRegs,"ECanaMOTSRegsFile");
  120. #endif
  121. volatile struct MOTS_REGS ECanaMOTSRegs;
  122. //----------------------------------------
  123. #ifdef __cplusplus
  124. #pragma DATA_SECTION("ECanaMOTORegsFile")
  125. #else
  126. #pragma DATA_SECTION(ECanaMOTORegs,"ECanaMOTORegsFile");
  127. #endif
  128. volatile struct MOTO_REGS ECanaMOTORegs;
  129. //----------------------------------------
  130. #ifdef __cplusplus
  131. #pragma DATA_SECTION("Cla1RegsFile")
  132. #else
  133. #pragma DATA_SECTION(Cla1Regs,"Cla1RegsFile");
  134. #endif
  135. volatile struct CLA_REGS Cla1Regs;
  136. //----------------------------------------
  137. #ifdef __cplusplus
  138. #pragma DATA_SECTION("EPwm1RegsFile")
  139. #else
  140. #pragma DATA_SECTION(EPwm1Regs,"EPwm1RegsFile");
  141. #endif
  142. volatile struct EPWM_REGS EPwm1Regs;
  143. //----------------------------------------
  144. #ifdef __cplusplus
  145. #pragma DATA_SECTION("EPwm2RegsFile")
  146. #else
  147. #pragma DATA_SECTION(EPwm2Regs,"EPwm2RegsFile");
  148. #endif
  149. volatile struct EPWM_REGS EPwm2Regs;
  150. //----------------------------------------
  151. #ifdef __cplusplus
  152. #pragma DATA_SECTION("EPwm3RegsFile")
  153. #else
  154. #pragma DATA_SECTION(EPwm3Regs,"EPwm3RegsFile");
  155. #endif
  156. volatile struct EPWM_REGS EPwm3Regs;
  157. //----------------------------------------
  158. #ifdef __cplusplus
  159. #pragma DATA_SECTION("EPwm4RegsFile")
  160. #else
  161. #pragma DATA_SECTION(EPwm4Regs,"EPwm4RegsFile");
  162. #endif
  163. volatile struct EPWM_REGS EPwm4Regs;
  164. //----------------------------------------
  165. #ifdef __cplusplus
  166. #pragma DATA_SECTION("EPwm5RegsFile")
  167. #else
  168. #pragma DATA_SECTION(EPwm5Regs,"EPwm5RegsFile");
  169. #endif
  170. volatile struct EPWM_REGS EPwm5Regs;
  171. //----------------------------------------
  172. #ifdef __cplusplus
  173. #pragma DATA_SECTION("EPwm6RegsFile")
  174. #else
  175. #pragma DATA_SECTION(EPwm6Regs,"EPwm6RegsFile");
  176. #endif
  177. volatile struct EPWM_REGS EPwm6Regs;
  178. //----------------------------------------
  179. #ifdef __cplusplus
  180. #pragma DATA_SECTION("EPwm7RegsFile")
  181. #else
  182. #pragma DATA_SECTION(EPwm7Regs,"EPwm7RegsFile");
  183. #endif
  184. volatile struct EPWM_REGS EPwm7Regs;
  185. //----------------------------------------
  186. #ifdef __cplusplus
  187. #pragma DATA_SECTION("ECap1RegsFile")
  188. #else
  189. #pragma DATA_SECTION(ECap1Regs,"ECap1RegsFile");
  190. #endif
  191. volatile struct ECAP_REGS ECap1Regs;
  192. //----------------------------------------
  193. #ifdef __cplusplus
  194. #pragma DATA_SECTION("EQep1RegsFile")
  195. #else
  196. #pragma DATA_SECTION(EQep1Regs,"EQep1RegsFile");
  197. #endif
  198. volatile struct EQEP_REGS EQep1Regs;
  199. //----------------------------------------
  200. #ifdef __cplusplus
  201. #pragma DATA_SECTION("LinaRegsFile")
  202. #else
  203. #pragma DATA_SECTION(LinaRegs,"LinaRegsFile");
  204. #endif
  205. volatile struct LIN_REGS LinaRegs;
  206. //----------------------------------------
  207. #ifdef __cplusplus
  208. #pragma DATA_SECTION("GpioCtrlRegsFile")
  209. #else
  210. #pragma DATA_SECTION(GpioCtrlRegs,"GpioCtrlRegsFile");
  211. #endif
  212. volatile struct GPIO_CTRL_REGS GpioCtrlRegs;
  213. //----------------------------------------
  214. #ifdef __cplusplus
  215. #pragma DATA_SECTION("GpioDataRegsFile")
  216. #else
  217. #pragma DATA_SECTION(GpioDataRegs,"GpioDataRegsFile");
  218. #endif
  219. volatile struct GPIO_DATA_REGS GpioDataRegs;
  220. //----------------------------------------
  221. #ifdef __cplusplus
  222. #pragma DATA_SECTION("GpioIntRegsFile")
  223. #else
  224. #pragma DATA_SECTION(GpioIntRegs,"GpioIntRegsFile");
  225. #endif
  226. volatile struct GPIO_INT_REGS GpioIntRegs;
  227. //----------------------------------------
  228. #ifdef __cplusplus
  229. #pragma DATA_SECTION("I2caRegsFile")
  230. #else
  231. #pragma DATA_SECTION(I2caRegs,"I2caRegsFile");
  232. #endif
  233. volatile struct I2C_REGS I2caRegs;
  234. //----------------------------------------
  235. #ifdef __cplusplus
  236. #pragma DATA_SECTION("NmiIntruptRegsFile")
  237. #else
  238. #pragma DATA_SECTION(NmiIntruptRegs,"NmiIntruptRegsFile");
  239. #endif
  240. volatile struct NMIINTRUPT_REGS NmiIntruptRegs;
  241. //----------------------------------------
  242. #ifdef __cplusplus
  243. #pragma DATA_SECTION("PartIdRegsFile")
  244. #else
  245. #pragma DATA_SECTION(PartIdRegs,"PartIdRegsFile");
  246. #endif
  247. volatile struct PARTID_REGS PartIdRegs;
  248. //----------------------------------------
  249. #ifdef __cplusplus
  250. #pragma DATA_SECTION("PieCtrlRegsFile")
  251. #else
  252. #pragma DATA_SECTION(PieCtrlRegs,"PieCtrlRegsFile");
  253. #endif
  254. volatile struct PIE_CTRL_REGS PieCtrlRegs;
  255. //----------------------------------------
  256. #ifdef __cplusplus
  257. #pragma DATA_SECTION("PieVectTableFile")
  258. #else
  259. #pragma DATA_SECTION(PieVectTable,"PieVectTableFile");
  260. #endif
  261. struct PIE_VECT_TABLE PieVectTable;
  262. //----------------------------------------
  263. #ifdef __cplusplus
  264. #pragma DATA_SECTION("SciaRegsFile")
  265. #else
  266. #pragma DATA_SECTION(SciaRegs,"SciaRegsFile");
  267. #endif
  268. volatile struct SCI_REGS SciaRegs;
  269. //----------------------------------------
  270. #ifdef __cplusplus
  271. #pragma DATA_SECTION("SpiaRegsFile")
  272. #else
  273. #pragma DATA_SECTION(SpiaRegs,"SpiaRegsFile");
  274. #endif
  275. volatile struct SPI_REGS SpiaRegs;
  276. //----------------------------------------
  277. #ifdef __cplusplus
  278. #pragma DATA_SECTION("SpibRegsFile")
  279. #else
  280. #pragma DATA_SECTION(SpibRegs,"SpibRegsFile");
  281. #endif
  282. volatile struct SPI_REGS SpibRegs;
  283. //----------------------------------------
  284. #ifdef __cplusplus
  285. #pragma DATA_SECTION("SysCtrlRegsFile")
  286. #else
  287. #pragma DATA_SECTION(SysCtrlRegs,"SysCtrlRegsFile");
  288. #endif
  289. volatile struct SYS_CTRL_REGS SysCtrlRegs;
  290. //----------------------------------------
  291. #ifdef __cplusplus
  292. #pragma DATA_SECTION("FlashRegsFile")
  293. #else
  294. #pragma DATA_SECTION(FlashRegs,"FlashRegsFile");
  295. #endif
  296. volatile struct FLASH_REGS FlashRegs;
  297. //----------------------------------------
  298. #ifdef __cplusplus
  299. #pragma DATA_SECTION("XIntruptRegsFile")
  300. #else
  301. #pragma DATA_SECTION(XIntruptRegs,"XIntruptRegsFile");
  302. #endif
  303. volatile struct XINTRUPT_REGS XIntruptRegs;
  304. //----------------------------------------
  305. #ifdef __cplusplus
  306. #pragma DATA_SECTION("EmuKeyVar");
  307. #else
  308. #pragma DATA_SECTION(EmuKey,"EmuKeyVar");
  309. #endif
  310. Uint16 EmuKey;
  311. //----------------------------------------
  312. #ifdef __cplusplus
  313. #pragma DATA_SECTION("EmuBModeVar");
  314. #else
  315. #pragma DATA_SECTION(EmuBMode,"EmuBModeVar");
  316. #endif
  317. Uint16 EmuBMode;
  318. //----------------------------------------
  319. #ifdef __cplusplus
  320. #pragma DATA_SECTION("FlashScalingVar");
  321. #else
  322. #pragma DATA_SECTION(Flash_CPUScaleFactor, "FlashScalingVar");
  323. #endif
  324. Uint32 Flash_CPUScaleFactor;
  325. //----------------------------------------
  326. #ifdef __cplusplus
  327. #pragma DATA_SECTION("FlashCallbackVar");
  328. #else
  329. #pragma DATA_SECTION(Flash_CallbackPtr, "FlashCallbackVar");
  330. #endif
  331. void (*Flash_CallbackPtr) (void);
  332. //===========================================================================
  333. // End of file.
  334. //===========================================================================