hw_timer.h 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. //*****************************************************************************
  2. //
  3. // hw_timer.h - Defines and macros used when accessing the timer.
  4. //
  5. // Copyright (c) 2005-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_TIMER_H__
  28. #define __HW_TIMER_H__
  29. //*****************************************************************************
  30. //
  31. // The following are defines for the timer register offsets.
  32. //
  33. //*****************************************************************************
  34. #define TIMER_O_CFG 0x00000000 // Configuration register
  35. #define TIMER_O_TAMR 0x00000004 // TimerA mode register
  36. #define TIMER_O_TBMR 0x00000008 // TimerB mode register
  37. #define TIMER_O_CTL 0x0000000C // Control register
  38. #define TIMER_O_IMR 0x00000018 // Interrupt mask register
  39. #define TIMER_O_RIS 0x0000001C // Interrupt status register
  40. #define TIMER_O_MIS 0x00000020 // Masked interrupt status reg.
  41. #define TIMER_O_ICR 0x00000024 // Interrupt clear register
  42. #define TIMER_O_TAILR 0x00000028 // TimerA interval load register
  43. #define TIMER_O_TBILR 0x0000002C // TimerB interval load register
  44. #define TIMER_O_TAMATCHR 0x00000030 // TimerA match register
  45. #define TIMER_O_TBMATCHR 0x00000034 // TimerB match register
  46. #define TIMER_O_TAPR 0x00000038 // TimerA prescale register
  47. #define TIMER_O_TBPR 0x0000003C // TimerB prescale register
  48. #define TIMER_O_TAPMR 0x00000040 // TimerA prescale match register
  49. #define TIMER_O_TBPMR 0x00000044 // TimerB prescale match register
  50. #define TIMER_O_TAR 0x00000048 // TimerA register
  51. #define TIMER_O_TBR 0x0000004C // TimerB register
  52. #define TIMER_O_TAV 0x00000050 // GPTM Timer A Value
  53. #define TIMER_O_TBV 0x00000054 // GPTM Timer B Value
  54. //*****************************************************************************
  55. //
  56. // The following are defines for the bit fields in the TIMER_CFG register.
  57. //
  58. //*****************************************************************************
  59. #define TIMER_CFG_M 0x00000007 // GPTM Configuration.
  60. #define TIMER_CFG_16_BIT 0x00000004 // Two 16 bit timers
  61. #define TIMER_CFG_32_BIT_RTC 0x00000001 // 32 bit RTC
  62. #define TIMER_CFG_32_BIT_TIMER 0x00000000 // 32 bit timer
  63. //*****************************************************************************
  64. //
  65. // The following are defines for the bit fields in the TIMER_CTL register.
  66. //
  67. //*****************************************************************************
  68. #define TIMER_CTL_TBPWML 0x00004000 // TimerB PWM output level invert
  69. #define TIMER_CTL_TBOTE 0x00002000 // TimerB output trigger enable
  70. #define TIMER_CTL_TBEVENT_POS 0x00000000 // TimerB event mode - pos edge
  71. #define TIMER_CTL_TBEVENT_NEG 0x00000400 // TimerB event mode - neg edge
  72. #define TIMER_CTL_TBEVENT_BOTH 0x00000C00 // TimerB event mode - both edges
  73. #define TIMER_CTL_TBEVENT_M 0x00000C00 // GPTM TimerB Event Mode.
  74. #define TIMER_CTL_TBSTALL 0x00000200 // TimerB stall enable
  75. #define TIMER_CTL_TBEN 0x00000100 // TimerB enable
  76. #define TIMER_CTL_TAPWML 0x00000040 // TimerA PWM output level invert
  77. #define TIMER_CTL_TAOTE 0x00000020 // TimerA output trigger enable
  78. #define TIMER_CTL_RTCEN 0x00000010 // RTC counter enable
  79. #define TIMER_CTL_TAEVENT_M 0x0000000C // GPTM TimerA Event Mode.
  80. #define TIMER_CTL_TAEVENT_POS 0x00000000 // TimerA event mode - pos edge
  81. #define TIMER_CTL_TAEVENT_NEG 0x00000004 // TimerA event mode - neg edge
  82. #define TIMER_CTL_TAEVENT_BOTH 0x0000000C // TimerA event mode - both edges
  83. #define TIMER_CTL_TASTALL 0x00000002 // TimerA stall enable
  84. #define TIMER_CTL_TAEN 0x00000001 // TimerA enable
  85. //*****************************************************************************
  86. //
  87. // The following are defines for the bit fields in the TIMER_IMR register.
  88. //
  89. //*****************************************************************************
  90. #define TIMER_IMR_TBMIM 0x00000800 // GPTM Timer B Mode Match
  91. // Interrupt Mask.
  92. #define TIMER_IMR_CBEIM 0x00000400 // CaptureB event interrupt mask
  93. #define TIMER_IMR_CBMIM 0x00000200 // CaptureB match interrupt mask
  94. #define TIMER_IMR_TBTOIM 0x00000100 // TimerB time out interrupt mask
  95. #define TIMER_IMR_TAMIM 0x00000010 // GPTM Timer A Mode Match
  96. // Interrupt Mask.
  97. #define TIMER_IMR_RTCIM 0x00000008 // RTC interrupt mask
  98. #define TIMER_IMR_CAEIM 0x00000004 // CaptureA event interrupt mask
  99. #define TIMER_IMR_CAMIM 0x00000002 // CaptureA match interrupt mask
  100. #define TIMER_IMR_TATOIM 0x00000001 // TimerA time out interrupt mask
  101. //*****************************************************************************
  102. //
  103. // The following are defines for the bit fields in the TIMER_RIS register.
  104. //
  105. //*****************************************************************************
  106. #define TIMER_RIS_TBMRIS 0x00000800 // GPTM Timer B Mode Match Raw
  107. // Interrupt.
  108. #define TIMER_RIS_CBERIS 0x00000400 // CaptureB event raw int status
  109. #define TIMER_RIS_CBMRIS 0x00000200 // CaptureB match raw int status
  110. #define TIMER_RIS_TBTORIS 0x00000100 // TimerB time out raw int status
  111. #define TIMER_RIS_TAMRIS 0x00000010 // GPTM Timer A Mode Match Raw
  112. // Interrupt.
  113. #define TIMER_RIS_RTCRIS 0x00000008 // RTC raw int status
  114. #define TIMER_RIS_CAERIS 0x00000004 // CaptureA event raw int status
  115. #define TIMER_RIS_CAMRIS 0x00000002 // CaptureA match raw int status
  116. #define TIMER_RIS_TATORIS 0x00000001 // TimerA time out raw int status
  117. //*****************************************************************************
  118. //
  119. // The following are defines for the bit fields in the TIMER_ICR register.
  120. //
  121. //*****************************************************************************
  122. #define TIMER_ICR_TBMCINT 0x00000800 // GPTM Timer B Mode Match
  123. // Interrupt Clear.
  124. #define TIMER_ICR_CBECINT 0x00000400 // CaptureB event interrupt clear
  125. #define TIMER_ICR_CBMCINT 0x00000200 // CaptureB match interrupt clear
  126. #define TIMER_ICR_TBTOCINT 0x00000100 // TimerB time out interrupt clear
  127. #define TIMER_ICR_TAMCINT 0x00000010 // GPTM Timer A Mode Match
  128. // Interrupt Clear.
  129. #define TIMER_ICR_RTCCINT 0x00000008 // RTC interrupt clear
  130. #define TIMER_ICR_CAECINT 0x00000004 // CaptureA event interrupt clear
  131. #define TIMER_ICR_CAMCINT 0x00000002 // CaptureA match interrupt clear
  132. #define TIMER_ICR_TATOCINT 0x00000001 // TimerA time out interrupt clear
  133. //*****************************************************************************
  134. //
  135. // The following are defines for the bit fields in the TIMER_TAILR register.
  136. //
  137. //*****************************************************************************
  138. #define TIMER_TAILR_TAILRH_M 0xFFFF0000 // GPTM TimerA Interval Load
  139. // Register High.
  140. #define TIMER_TAILR_TAILRL_M 0x0000FFFF // GPTM TimerA Interval Load
  141. // Register Low.
  142. #define TIMER_TAILR_TAILRH_S 16
  143. #define TIMER_TAILR_TAILRL_S 0
  144. //*****************************************************************************
  145. //
  146. // The following are defines for the bit fields in the TIMER_TBILR register.
  147. //
  148. //*****************************************************************************
  149. #define TIMER_TBILR_TBILRL_M 0x0000FFFF // GPTM TimerB Interval Load
  150. // Register.
  151. #define TIMER_TBILR_TBILRL_S 0
  152. //*****************************************************************************
  153. //
  154. // The following are defines for the bit fields in the TIMER_TAMATCHR register.
  155. //
  156. //*****************************************************************************
  157. #define TIMER_TAMATCHR_TAMRH_M 0xFFFF0000 // GPTM TimerA Match Register High.
  158. #define TIMER_TAMATCHR_TAMRL_M 0x0000FFFF // GPTM TimerA Match Register Low.
  159. #define TIMER_TAMATCHR_TAMRH_S 16
  160. #define TIMER_TAMATCHR_TAMRL_S 0
  161. //*****************************************************************************
  162. //
  163. // The following are defines for the bit fields in the TIMER_TBMATCHR register.
  164. //
  165. //*****************************************************************************
  166. #define TIMER_TBMATCHR_TBMRL_M 0x0000FFFF // GPTM TimerB Match Register Low.
  167. #define TIMER_TBMATCHR_TBMRL_S 0
  168. //*****************************************************************************
  169. //
  170. // The following are defines for the bit fields in the TIMER_TAR register.
  171. //
  172. //*****************************************************************************
  173. #define TIMER_TAR_TARH_M 0xFFFF0000 // GPTM TimerA Register High.
  174. #define TIMER_TAR_TARL_M 0x0000FFFF // GPTM TimerA Register Low.
  175. #define TIMER_TAR_TARH_S 16
  176. #define TIMER_TAR_TARL_S 0
  177. //*****************************************************************************
  178. //
  179. // The following are defines for the bit fields in the TIMER_TBR register.
  180. //
  181. //*****************************************************************************
  182. #define TIMER_TBR_TBRL_M 0x0000FFFF // GPTM TimerB.
  183. #define TIMER_TBR_TBRL_S 0
  184. //*****************************************************************************
  185. //
  186. // The following are defines for the bit fields in the TIMER_O_TAMR register.
  187. //
  188. //*****************************************************************************
  189. #define TIMER_TAMR_TASNAPS 0x00000080 // GPTM Timer A Snap-Shot Mode.
  190. #define TIMER_TAMR_TAWOT 0x00000040 // GPTM Timer A Wait-on-Trigger.
  191. #define TIMER_TAMR_TAMIE 0x00000020 // GPTM Timer A Match Interrupt
  192. // Enable.
  193. #define TIMER_TAMR_TACDIR 0x00000010 // GPTM Timer A Count Direction.
  194. #define TIMER_TAMR_TAAMS 0x00000008 // GPTM TimerA Alternate Mode
  195. // Select.
  196. #define TIMER_TAMR_TACMR 0x00000004 // GPTM TimerA Capture Mode.
  197. #define TIMER_TAMR_TAMR_M 0x00000003 // GPTM TimerA Mode.
  198. #define TIMER_TAMR_TAMR_1_SHOT 0x00000001 // One-Shot Timer mode.
  199. #define TIMER_TAMR_TAMR_PERIOD 0x00000002 // Periodic Timer mode.
  200. #define TIMER_TAMR_TAMR_CAP 0x00000003 // Capture mode.
  201. //*****************************************************************************
  202. //
  203. // The following are defines for the bit fields in the TIMER_O_TBMR register.
  204. //
  205. //*****************************************************************************
  206. #define TIMER_TBMR_TBSNAPS 0x00000080 // GPTM Timer B Snap-Shot Mode.
  207. #define TIMER_TBMR_TBWOT 0x00000040 // GPTM Timer B Wait-on-Trigger.
  208. #define TIMER_TBMR_TBMIE 0x00000020 // GPTM Timer B Match Interrupt
  209. // Enable.
  210. #define TIMER_TBMR_TBCDIR 0x00000010 // GPTM Timer B Count Direction.
  211. #define TIMER_TBMR_TBAMS 0x00000008 // GPTM TimerB Alternate Mode
  212. // Select.
  213. #define TIMER_TBMR_TBCMR 0x00000004 // GPTM TimerB Capture Mode.
  214. #define TIMER_TBMR_TBMR_M 0x00000003 // GPTM TimerB Mode.
  215. #define TIMER_TBMR_TBMR_1_SHOT 0x00000001 // One-Shot Timer mode.
  216. #define TIMER_TBMR_TBMR_PERIOD 0x00000002 // Periodic Timer mode.
  217. #define TIMER_TBMR_TBMR_CAP 0x00000003 // Capture mode.
  218. //*****************************************************************************
  219. //
  220. // The following are defines for the bit fields in the TIMER_O_MIS register.
  221. //
  222. //*****************************************************************************
  223. #define TIMER_MIS_TBMMIS 0x00000800 // GPTM Timer B Mode Match Masked
  224. // Interrupt.
  225. #define TIMER_MIS_CBEMIS 0x00000400 // GPTM CaptureB Event Masked
  226. // Interrupt.
  227. #define TIMER_MIS_CBMMIS 0x00000200 // GPTM CaptureB Match Masked
  228. // Interrupt.
  229. #define TIMER_MIS_TBTOMIS 0x00000100 // GPTM TimerB Time-Out Masked
  230. // Interrupt.
  231. #define TIMER_MIS_TAMMIS 0x00000010 // GPTM Timer A Mode Match Masked
  232. // Interrupt.
  233. #define TIMER_MIS_RTCMIS 0x00000008 // GPTM RTC Masked Interrupt.
  234. #define TIMER_MIS_CAEMIS 0x00000004 // GPTM CaptureA Event Masked
  235. // Interrupt.
  236. #define TIMER_MIS_CAMMIS 0x00000002 // GPTM CaptureA Match Masked
  237. // Interrupt.
  238. #define TIMER_MIS_TATOMIS 0x00000001 // GPTM TimerA Time-Out Masked
  239. // Interrupt.
  240. //*****************************************************************************
  241. //
  242. // The following are defines for the bit fields in the TIMER_O_TAPR register.
  243. //
  244. //*****************************************************************************
  245. #define TIMER_TAPR_TAPSR_M 0x000000FF // GPTM TimerA Prescale.
  246. #define TIMER_TAPR_TAPSR_S 0
  247. //*****************************************************************************
  248. //
  249. // The following are defines for the bit fields in the TIMER_O_TBPR register.
  250. //
  251. //*****************************************************************************
  252. #define TIMER_TBPR_TBPSR_M 0x000000FF // GPTM TimerB Prescale.
  253. #define TIMER_TBPR_TBPSR_S 0
  254. //*****************************************************************************
  255. //
  256. // The following are defines for the bit fields in the TIMER_O_TAPMR register.
  257. //
  258. //*****************************************************************************
  259. #define TIMER_TAPMR_TAPSMR_M 0x000000FF // GPTM TimerA Prescale Match.
  260. #define TIMER_TAPMR_TAPSMR_S 0
  261. //*****************************************************************************
  262. //
  263. // The following are defines for the bit fields in the TIMER_O_TBPMR register.
  264. //
  265. //*****************************************************************************
  266. #define TIMER_TBPMR_TBPSMR_M 0x000000FF // GPTM TimerB Prescale Match.
  267. #define TIMER_TBPMR_TBPSMR_S 0
  268. //*****************************************************************************
  269. //
  270. // The following are defines for the bit fields in the TIMER_O_TAV register.
  271. //
  272. //*****************************************************************************
  273. #define TIMER_TAV_TAVH_M 0xFFFF0000 // GPTM Timer A Value High.
  274. #define TIMER_TAV_TAVL_M 0x0000FFFF // GPTM Timer A Register Low.
  275. #define TIMER_TAV_TAVH_S 16
  276. #define TIMER_TAV_TAVL_S 0
  277. //*****************************************************************************
  278. //
  279. // The following are defines for the bit fields in the TIMER_O_TBV register.
  280. //
  281. //*****************************************************************************
  282. #define TIMER_TBV_TBVL_M 0x0000FFFF // GPTM Timer B Register.
  283. #define TIMER_TBV_TBVL_S 0
  284. //*****************************************************************************
  285. //
  286. // The following definitions are deprecated.
  287. //
  288. //*****************************************************************************
  289. #ifndef DEPRECATED
  290. //*****************************************************************************
  291. //
  292. // The following are deprecated defines for the reset values of the timer
  293. // registers.
  294. //
  295. //*****************************************************************************
  296. #define TIMER_RV_TAILR 0xFFFFFFFF // TimerA interval load reg RV
  297. #define TIMER_RV_TAR 0xFFFFFFFF // TimerA register RV
  298. #define TIMER_RV_TAMATCHR 0xFFFFFFFF // TimerA match register RV
  299. #define TIMER_RV_TBILR 0x0000FFFF // TimerB interval load reg RV
  300. #define TIMER_RV_TBMATCHR 0x0000FFFF // TimerB match register RV
  301. #define TIMER_RV_TBR 0x0000FFFF // TimerB register RV
  302. #define TIMER_RV_TAPR 0x00000000 // TimerA prescale register RV
  303. #define TIMER_RV_CFG 0x00000000 // Configuration register RV
  304. #define TIMER_RV_TBPMR 0x00000000 // TimerB prescale match regi RV
  305. #define TIMER_RV_TAPMR 0x00000000 // TimerA prescale match reg RV
  306. #define TIMER_RV_CTL 0x00000000 // Control register RV
  307. #define TIMER_RV_ICR 0x00000000 // Interrupt clear register RV
  308. #define TIMER_RV_TBMR 0x00000000 // TimerB mode register RV
  309. #define TIMER_RV_MIS 0x00000000 // Masked interrupt status reg RV
  310. #define TIMER_RV_RIS 0x00000000 // Interrupt status register RV
  311. #define TIMER_RV_TBPR 0x00000000 // TimerB prescale register RV
  312. #define TIMER_RV_IMR 0x00000000 // Interrupt mask register RV
  313. #define TIMER_RV_TAMR 0x00000000 // TimerA mode register RV
  314. //*****************************************************************************
  315. //
  316. // The following are deprecated defines for the bit fields in the TIMER_CFG
  317. // register.
  318. //
  319. //*****************************************************************************
  320. #define TIMER_CFG_CFG_MSK 0x00000007 // Configuration options mask
  321. //*****************************************************************************
  322. //
  323. // The following are deprecated defines for the bit fields in the TIMER_TnMR
  324. // register.
  325. //
  326. //*****************************************************************************
  327. #define TIMER_TNMR_TNAMS 0x00000008 // Alternate mode select
  328. #define TIMER_TNMR_TNCMR 0x00000004 // Capture mode - count or time
  329. #define TIMER_TNMR_TNTMR_MSK 0x00000003 // Timer mode mask
  330. #define TIMER_TNMR_TNTMR_1_SHOT 0x00000001 // Mode - one shot
  331. #define TIMER_TNMR_TNTMR_PERIOD 0x00000002 // Mode - periodic
  332. #define TIMER_TNMR_TNTMR_CAP 0x00000003 // Mode - capture
  333. //*****************************************************************************
  334. //
  335. // The following are deprecated defines for the bit fields in the TIMER_CTL
  336. // register.
  337. //
  338. //*****************************************************************************
  339. #define TIMER_CTL_TBEVENT_MSK 0x00000C00 // TimerB event mode mask
  340. #define TIMER_CTL_TAEVENT_MSK 0x0000000C // TimerA event mode mask
  341. //*****************************************************************************
  342. //
  343. // The following are deprecated defines for the bit fields in the TIMER_MIS
  344. // register.
  345. //
  346. //*****************************************************************************
  347. #define TIMER_RIS_CBEMIS 0x00000400 // CaptureB event masked int status
  348. #define TIMER_RIS_CBMMIS 0x00000200 // CaptureB match masked int status
  349. #define TIMER_RIS_TBTOMIS 0x00000100 // TimerB time out masked int stat
  350. #define TIMER_RIS_RTCMIS 0x00000008 // RTC masked int status
  351. #define TIMER_RIS_CAEMIS 0x00000004 // CaptureA event masked int status
  352. #define TIMER_RIS_CAMMIS 0x00000002 // CaptureA match masked int status
  353. #define TIMER_RIS_TATOMIS 0x00000001 // TimerA time out masked int stat
  354. //*****************************************************************************
  355. //
  356. // The following are deprecated defines for the bit fields in the TIMER_TAILR
  357. // register.
  358. //
  359. //*****************************************************************************
  360. #define TIMER_TAILR_TAILRH 0xFFFF0000 // TimerB load val in 32 bit mode
  361. #define TIMER_TAILR_TAILRL 0x0000FFFF // TimerA interval load value
  362. //*****************************************************************************
  363. //
  364. // The following are deprecated defines for the bit fields in the TIMER_TBILR
  365. // register.
  366. //
  367. //*****************************************************************************
  368. #define TIMER_TBILR_TBILRL 0x0000FFFF // TimerB interval load value
  369. //*****************************************************************************
  370. //
  371. // The following are deprecated defines for the bit fields in the
  372. // TIMER_TAMATCHR register.
  373. //
  374. //*****************************************************************************
  375. #define TIMER_TAMATCHR_TAMRH 0xFFFF0000 // TimerB match val in 32 bit mode
  376. #define TIMER_TAMATCHR_TAMRL 0x0000FFFF // TimerA match value
  377. //*****************************************************************************
  378. //
  379. // The following are deprecated defines for the bit fields in the
  380. // TIMER_TBMATCHR register.
  381. //
  382. //*****************************************************************************
  383. #define TIMER_TBMATCHR_TBMRL 0x0000FFFF // TimerB match load value
  384. //*****************************************************************************
  385. //
  386. // The following are deprecated defines for the bit fields in the TIMER_TnPR
  387. // register.
  388. //
  389. //*****************************************************************************
  390. #define TIMER_TNPR_TNPSR 0x000000FF // TimerN prescale value
  391. //*****************************************************************************
  392. //
  393. // The following are deprecated defines for the bit fields in the TIMER_TnPMR
  394. // register.
  395. //
  396. //*****************************************************************************
  397. #define TIMER_TNPMR_TNPSMR 0x000000FF // TimerN prescale match value
  398. //*****************************************************************************
  399. //
  400. // The following are deprecated defines for the bit fields in the TIMER_TAR
  401. // register.
  402. //
  403. //*****************************************************************************
  404. #define TIMER_TAR_TARH 0xFFFF0000 // TimerB val in 32 bit mode
  405. #define TIMER_TAR_TARL 0x0000FFFF // TimerA value
  406. //*****************************************************************************
  407. //
  408. // The following are deprecated defines for the bit fields in the TIMER_TBR
  409. // register.
  410. //
  411. //*****************************************************************************
  412. #define TIMER_TBR_TBRL 0x0000FFFF // TimerB value
  413. #endif
  414. #endif // __HW_TIMER_H__