DSP2803x_GlobalVariableDefs.c 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. //###########################################################################
  2. //
  3. // FILE: DSP2803x_GlobalVariableDefs.c
  4. //
  5. // TITLE: DSP2803x Global Variables and Data Section Pragmas.
  6. //
  7. //###########################################################################
  8. // $TI Release: F2803x C/C++ Header Files and Peripheral Examples V130 $
  9. // $Release Date: May 8, 2015 $
  10. // $Copyright: Copyright (C) 2009-2015 Texas Instruments Incorporated -
  11. // http://www.ti.com/ ALL RIGHTS RESERVED $
  12. //###########################################################################
  13. #include "DSP2803x_Device.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("HRCap1RegsFile")
  230. #else
  231. //#pragma DATA_SECTION(HRCap1Regs,"HRCap1RegsFile");
  232. #endif
  233. //volatile struct HRCAP_REGS HRCap1Regs;
  234. //----------------------------------------
  235. #ifdef __cplusplus
  236. #pragma DATA_SECTION("HRCap2RegsFile")
  237. #else
  238. //#pragma DATA_SECTION(HRCap2Regs,"HRCap2RegsFile");
  239. #endif
  240. //volatile struct HRCAP_REGS HRCap2Regs;
  241. //----------------------------------------
  242. #ifdef __cplusplus
  243. #pragma DATA_SECTION("I2caRegsFile")
  244. #else
  245. //#pragma DATA_SECTION(I2caRegs,"I2caRegsFile");
  246. #endif
  247. //volatile struct I2C_REGS I2caRegs;
  248. //----------------------------------------
  249. #ifdef __cplusplus
  250. #pragma DATA_SECTION("NmiIntruptRegsFile")
  251. #else
  252. //#pragma DATA_SECTION(NmiIntruptRegs,"NmiIntruptRegsFile");
  253. #endif
  254. //volatile struct NMIINTRUPT_REGS NmiIntruptRegs;
  255. //----------------------------------------
  256. #ifdef __cplusplus
  257. #pragma DATA_SECTION("PartIdRegsFile")
  258. #else
  259. //#pragma DATA_SECTION(PartIdRegs,"PartIdRegsFile");
  260. #endif
  261. //volatile struct PARTID_REGS PartIdRegs;
  262. //----------------------------------------
  263. #ifdef __cplusplus
  264. #pragma DATA_SECTION("PieCtrlRegsFile")
  265. #else
  266. //#pragma DATA_SECTION(PieCtrlRegs,"PieCtrlRegsFile");
  267. #endif
  268. //volatile struct PIE_CTRL_REGS PieCtrlRegs;
  269. //----------------------------------------
  270. #ifdef __cplusplus
  271. #pragma DATA_SECTION("PieVectTableFile")
  272. #else
  273. //#pragma DATA_SECTION(PieVectTable,"PieVectTableFile");
  274. #endif
  275. //volatile struct PIE_VECT_TABLE PieVectTable;
  276. //----------------------------------------
  277. #ifdef __cplusplus
  278. #pragma DATA_SECTION("SciaRegsFile")
  279. #else
  280. //#pragma DATA_SECTION(SciaRegs,"SciaRegsFile");
  281. #endif
  282. //volatile struct SCI_REGS SciaRegs;
  283. //----------------------------------------
  284. #ifdef __cplusplus
  285. #pragma DATA_SECTION("SpiaRegsFile")
  286. #else
  287. //#pragma DATA_SECTION(SpiaRegs,"SpiaRegsFile");
  288. #endif
  289. //volatile struct SPI_REGS SpiaRegs;
  290. //----------------------------------------
  291. #ifdef __cplusplus
  292. #pragma DATA_SECTION("SpibRegsFile")
  293. #else
  294. //#pragma DATA_SECTION(SpibRegs,"SpibRegsFile");
  295. #endif
  296. //volatile struct SPI_REGS SpibRegs;
  297. //----------------------------------------
  298. #ifdef __cplusplus
  299. #pragma DATA_SECTION("SysCtrlRegsFile")
  300. #else
  301. #pragma DATA_SECTION(SysCtrlRegs,"SysCtrlRegsFile");
  302. #endif
  303. volatile struct SYS_CTRL_REGS SysCtrlRegs;
  304. //----------------------------------------
  305. #ifdef __cplusplus
  306. #pragma DATA_SECTION("SysPwrCtrlRegsFile")
  307. #else
  308. #pragma DATA_SECTION(SysPwrCtrlRegs,"SysPwrCtrlRegsFile");
  309. #endif
  310. volatile struct SYS_PWR_CTRL_REGS SysPwrCtrlRegs;
  311. //----------------------------------------
  312. #ifdef __cplusplus
  313. #pragma DATA_SECTION("FlashRegsFile")
  314. #else
  315. #pragma DATA_SECTION(FlashRegs,"FlashRegsFile");
  316. #endif
  317. volatile struct FLASH_REGS FlashRegs;
  318. //----------------------------------------
  319. #ifdef __cplusplus
  320. #pragma DATA_SECTION("XIntruptRegsFile")
  321. #else
  322. //#pragma DATA_SECTION(XIntruptRegs,"XIntruptRegsFile");
  323. #endif
  324. //volatile struct XINTRUPT_REGS XIntruptRegs;
  325. //----------------------------------------
  326. #ifdef __cplusplus
  327. #pragma DATA_SECTION("EmuKeyVar");
  328. #else
  329. #pragma DATA_SECTION(EmuKey,"EmuKeyVar");
  330. #endif
  331. Uint16 EmuKey;
  332. //----------------------------------------
  333. #ifdef __cplusplus
  334. #pragma DATA_SECTION("EmuBModeVar");
  335. #else
  336. #pragma DATA_SECTION(EmuBMode,"EmuBModeVar");
  337. #endif
  338. Uint16 EmuBMode;
  339. //----------------------------------------
  340. #ifdef __cplusplus
  341. #pragma DATA_SECTION("FlashScalingVar");
  342. #else
  343. #pragma DATA_SECTION(Flash_CPUScaleFactor, "FlashScalingVar");
  344. #endif
  345. Uint32 Flash_CPUScaleFactor;
  346. //----------------------------------------
  347. #ifdef __cplusplus
  348. #pragma DATA_SECTION("FlashCallbackVar");
  349. #else
  350. #pragma DATA_SECTION(Flash_CallbackPtr, "FlashCallbackVar");
  351. #endif
  352. void (*Flash_CallbackPtr) (void);
  353. //===========================================================================
  354. // End of file.
  355. //===========================================================================