hw_hibernate.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. //*****************************************************************************
  2. //
  3. // hw_hibernate.h - Defines and Macros for the Hibernation module.
  4. //
  5. // Copyright (c) 2007-2014 Texas Instruments Incorporated. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Redistribution and use in source and binary forms, with or without
  9. // modification, are permitted provided that the following conditions
  10. // are met:
  11. //
  12. // Redistributions of source code must retain the above copyright
  13. // notice, this list of conditions and the following disclaimer.
  14. //
  15. // Redistributions in binary form must reproduce the above copyright
  16. // notice, this list of conditions and the following disclaimer in the
  17. // documentation and/or other materials provided with the
  18. // distribution.
  19. //
  20. // Neither the name of Texas Instruments Incorporated nor the names of
  21. // its contributors may be used to endorse or promote products derived
  22. // from this software without specific prior written permission.
  23. //
  24. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  25. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  26. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  27. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  28. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  29. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  30. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  31. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  32. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  33. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  34. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. //
  36. // This is part of revision 2.1.0.12573 of the Tiva Firmware Development Package.
  37. //
  38. //*****************************************************************************
  39. #ifndef __HW_HIBERNATE_H__
  40. #define __HW_HIBERNATE_H__
  41. //*****************************************************************************
  42. //
  43. // The following are defines for the Hibernation module register addresses.
  44. //
  45. //*****************************************************************************
  46. #define HIB_RTCC 0x400FC000 // Hibernation RTC Counter
  47. #define HIB_RTCM0 0x400FC004 // Hibernation RTC Match 0
  48. #define HIB_RTCLD 0x400FC00C // Hibernation RTC Load
  49. #define HIB_CTL 0x400FC010 // Hibernation Control
  50. #define HIB_IM 0x400FC014 // Hibernation Interrupt Mask
  51. #define HIB_RIS 0x400FC018 // Hibernation Raw Interrupt Status
  52. #define HIB_MIS 0x400FC01C // Hibernation Masked Interrupt
  53. // Status
  54. #define HIB_IC 0x400FC020 // Hibernation Interrupt Clear
  55. #define HIB_RTCT 0x400FC024 // Hibernation RTC Trim
  56. #define HIB_RTCSS 0x400FC028 // Hibernation RTC Sub Seconds
  57. #define HIB_IO 0x400FC02C // Hibernation IO Configuration
  58. #define HIB_DATA 0x400FC030 // Hibernation Data
  59. #define HIB_CALCTL 0x400FC300 // Hibernation Calendar Control
  60. #define HIB_CAL0 0x400FC310 // Hibernation Calendar 0
  61. #define HIB_CAL1 0x400FC314 // Hibernation Calendar 1
  62. #define HIB_CALLD0 0x400FC320 // Hibernation Calendar Load 0
  63. #define HIB_CALLD1 0x400FC324 // Hibernation Calendar Load
  64. #define HIB_CALM0 0x400FC330 // Hibernation Calendar Match 0
  65. #define HIB_CALM1 0x400FC334 // Hibernation Calendar Match 1
  66. #define HIB_LOCK 0x400FC360 // Hibernation Lock
  67. #define HIB_TPCTL 0x400FC400 // HIB Tamper Control
  68. #define HIB_TPSTAT 0x400FC404 // HIB Tamper Status
  69. #define HIB_TPIO 0x400FC410 // HIB Tamper I/O Control
  70. #define HIB_TPLOG0 0x400FC4E0 // HIB Tamper Log 0
  71. #define HIB_TPLOG1 0x400FC4E4 // HIB Tamper Log 1
  72. #define HIB_TPLOG2 0x400FC4E8 // HIB Tamper Log 2
  73. #define HIB_TPLOG3 0x400FC4EC // HIB Tamper Log 3
  74. #define HIB_TPLOG4 0x400FC4F0 // HIB Tamper Log 4
  75. #define HIB_TPLOG5 0x400FC4F4 // HIB Tamper Log 5
  76. #define HIB_TPLOG6 0x400FC4F8 // HIB Tamper Log 6
  77. #define HIB_TPLOG7 0x400FC4FC // HIB Tamper Log 7
  78. #define HIB_PP 0x400FCFC0 // Hibernation Peripheral
  79. // Properties
  80. #define HIB_CC 0x400FCFC8 // Hibernation Clock Control
  81. //*****************************************************************************
  82. //
  83. // The following are defines for the bit fields in the HIB_RTCC register.
  84. //
  85. //*****************************************************************************
  86. #define HIB_RTCC_M 0xFFFFFFFF // RTC Counter
  87. #define HIB_RTCC_S 0
  88. //*****************************************************************************
  89. //
  90. // The following are defines for the bit fields in the HIB_RTCM0 register.
  91. //
  92. //*****************************************************************************
  93. #define HIB_RTCM0_M 0xFFFFFFFF // RTC Match 0
  94. #define HIB_RTCM0_S 0
  95. //*****************************************************************************
  96. //
  97. // The following are defines for the bit fields in the HIB_RTCLD register.
  98. //
  99. //*****************************************************************************
  100. #define HIB_RTCLD_M 0xFFFFFFFF // RTC Load
  101. #define HIB_RTCLD_S 0
  102. //*****************************************************************************
  103. //
  104. // The following are defines for the bit fields in the HIB_CTL register.
  105. //
  106. //*****************************************************************************
  107. #define HIB_CTL_WRC 0x80000000 // Write Complete/Capable
  108. #define HIB_CTL_RETCLR 0x40000000 // GPIO Retention/Clear
  109. #define HIB_CTL_OSCSEL 0x00080000 // Oscillator Select
  110. #define HIB_CTL_OSCDRV 0x00020000 // Oscillator Drive Capability
  111. #define HIB_CTL_OSCBYP 0x00010000 // Oscillator Bypass
  112. #define HIB_CTL_VBATSEL_M 0x00006000 // Select for Low-Battery
  113. // Comparator
  114. #define HIB_CTL_VBATSEL_1_9V 0x00000000 // 1.9 Volts
  115. #define HIB_CTL_VBATSEL_2_1V 0x00002000 // 2.1 Volts (default)
  116. #define HIB_CTL_VBATSEL_2_3V 0x00004000 // 2.3 Volts
  117. #define HIB_CTL_VBATSEL_2_5V 0x00006000 // 2.5 Volts
  118. #define HIB_CTL_BATCHK 0x00000400 // Check Battery Status
  119. #define HIB_CTL_BATWKEN 0x00000200 // Wake on Low Battery
  120. #define HIB_CTL_VDD3ON 0x00000100 // VDD Powered
  121. #define HIB_CTL_VABORT 0x00000080 // Power Cut Abort Enable
  122. #define HIB_CTL_CLK32EN 0x00000040 // Clocking Enable
  123. #define HIB_CTL_PINWEN 0x00000010 // External Wake Pin Enable
  124. #define HIB_CTL_RTCWEN 0x00000008 // RTC Wake-up Enable
  125. #define HIB_CTL_HIBREQ 0x00000002 // Hibernation Request
  126. #define HIB_CTL_RTCEN 0x00000001 // RTC Timer Enable
  127. //*****************************************************************************
  128. //
  129. // The following are defines for the bit fields in the HIB_IM register.
  130. //
  131. //*****************************************************************************
  132. #define HIB_IM_VDDFAIL 0x00000080 // VDD Fail Interrupt Mask
  133. #define HIB_IM_RSTWK 0x00000040 // Reset Pad I/O Wake-Up Interrupt
  134. // Mask
  135. #define HIB_IM_PADIOWK 0x00000020 // Pad I/O Wake-Up Interrupt Mask
  136. #define HIB_IM_WC 0x00000010 // External Write Complete/Capable
  137. // Interrupt Mask
  138. #define HIB_IM_EXTW 0x00000008 // External Wake-Up Interrupt Mask
  139. #define HIB_IM_LOWBAT 0x00000004 // Low Battery Voltage Interrupt
  140. // Mask
  141. #define HIB_IM_RTCALT0 0x00000001 // RTC Alert 0 Interrupt Mask
  142. //*****************************************************************************
  143. //
  144. // The following are defines for the bit fields in the HIB_RIS register.
  145. //
  146. //*****************************************************************************
  147. #define HIB_RIS_VDDFAIL 0x00000080 // VDD Fail Raw Interrupt Status
  148. #define HIB_RIS_RSTWK 0x00000040 // Reset Pad I/O Wake-Up Raw
  149. // Interrupt Status
  150. #define HIB_RIS_PADIOWK 0x00000020 // Pad I/O Wake-Up Raw Interrupt
  151. // Status
  152. #define HIB_RIS_WC 0x00000010 // Write Complete/Capable Raw
  153. // Interrupt Status
  154. #define HIB_RIS_EXTW 0x00000008 // External Wake-Up Raw Interrupt
  155. // Status
  156. #define HIB_RIS_LOWBAT 0x00000004 // Low Battery Voltage Raw
  157. // Interrupt Status
  158. #define HIB_RIS_RTCALT0 0x00000001 // RTC Alert 0 Raw Interrupt Status
  159. //*****************************************************************************
  160. //
  161. // The following are defines for the bit fields in the HIB_MIS register.
  162. //
  163. //*****************************************************************************
  164. #define HIB_MIS_VDDFAIL 0x00000080 // VDD Fail Interrupt Mask
  165. #define HIB_MIS_RSTWK 0x00000040 // Reset Pad I/O Wake-Up Interrupt
  166. // Mask
  167. #define HIB_MIS_PADIOWK 0x00000020 // Pad I/O Wake-Up Interrupt Mask
  168. #define HIB_MIS_WC 0x00000010 // Write Complete/Capable Masked
  169. // Interrupt Status
  170. #define HIB_MIS_EXTW 0x00000008 // External Wake-Up Masked
  171. // Interrupt Status
  172. #define HIB_MIS_LOWBAT 0x00000004 // Low Battery Voltage Masked
  173. // Interrupt Status
  174. #define HIB_MIS_RTCALT0 0x00000001 // RTC Alert 0 Masked Interrupt
  175. // Status
  176. //*****************************************************************************
  177. //
  178. // The following are defines for the bit fields in the HIB_IC register.
  179. //
  180. //*****************************************************************************
  181. #define HIB_IC_VDDFAIL 0x00000080 // VDD Fail Interrupt Clear
  182. #define HIB_IC_RSTWK 0x00000040 // Reset Pad I/O Wake-Up Interrupt
  183. // Clear
  184. #define HIB_IC_PADIOWK 0x00000020 // Pad I/O Wake-Up Interrupt Clear
  185. #define HIB_IC_WC 0x00000010 // Write Complete/Capable Interrupt
  186. // Clear
  187. #define HIB_IC_EXTW 0x00000008 // External Wake-Up Interrupt Clear
  188. #define HIB_IC_LOWBAT 0x00000004 // Low Battery Voltage Interrupt
  189. // Clear
  190. #define HIB_IC_RTCALT0 0x00000001 // RTC Alert0 Masked Interrupt
  191. // Clear
  192. //*****************************************************************************
  193. //
  194. // The following are defines for the bit fields in the HIB_RTCT register.
  195. //
  196. //*****************************************************************************
  197. #define HIB_RTCT_TRIM_M 0x0000FFFF // RTC Trim Value
  198. #define HIB_RTCT_TRIM_S 0
  199. //*****************************************************************************
  200. //
  201. // The following are defines for the bit fields in the HIB_RTCSS register.
  202. //
  203. //*****************************************************************************
  204. #define HIB_RTCSS_RTCSSM_M 0x7FFF0000 // RTC Sub Seconds Match
  205. #define HIB_RTCSS_RTCSSC_M 0x00007FFF // RTC Sub Seconds Count
  206. #define HIB_RTCSS_RTCSSM_S 16
  207. #define HIB_RTCSS_RTCSSC_S 0
  208. //*****************************************************************************
  209. //
  210. // The following are defines for the bit fields in the HIB_IO register.
  211. //
  212. //*****************************************************************************
  213. #define HIB_IO_IOWRC 0x80000000 // I/O Write Complete
  214. #define HIB_IO_WURSTEN 0x00000010 // Reset Wake Source Enable
  215. #define HIB_IO_WUUNLK 0x00000001 // I/O Wake Pad Configuration
  216. // Enable
  217. //*****************************************************************************
  218. //
  219. // The following are defines for the bit fields in the HIB_DATA register.
  220. //
  221. //*****************************************************************************
  222. #define HIB_DATA_RTD_M 0xFFFFFFFF // Hibernation Module NV Data
  223. #define HIB_DATA_RTD_S 0
  224. //*****************************************************************************
  225. //
  226. // The following are defines for the bit fields in the HIB_CALCTL register.
  227. //
  228. //*****************************************************************************
  229. #define HIB_CALCTL_CAL24 0x00000004 // Calendar Mode
  230. #define HIB_CALCTL_CALEN 0x00000001 // RTC Calendar/Counter Mode Select
  231. //*****************************************************************************
  232. //
  233. // The following are defines for the bit fields in the HIB_CAL0 register.
  234. //
  235. //*****************************************************************************
  236. #define HIB_CAL0_VALID 0x80000000 // Valid Calendar Load
  237. #define HIB_CAL0_AMPM 0x00400000 // AM/PM Designation
  238. #define HIB_CAL0_HR_M 0x001F0000 // Hours
  239. #define HIB_CAL0_MIN_M 0x00003F00 // Minutes
  240. #define HIB_CAL0_SEC_M 0x0000003F // Seconds
  241. #define HIB_CAL0_HR_S 16
  242. #define HIB_CAL0_MIN_S 8
  243. #define HIB_CAL0_SEC_S 0
  244. //*****************************************************************************
  245. //
  246. // The following are defines for the bit fields in the HIB_CAL1 register.
  247. //
  248. //*****************************************************************************
  249. #define HIB_CAL1_VALID 0x80000000 // Valid Calendar Load
  250. #define HIB_CAL1_DOW_M 0x07000000 // Day of Week
  251. #define HIB_CAL1_YEAR_M 0x007F0000 // Year Value
  252. #define HIB_CAL1_MON_M 0x00000F00 // Month
  253. #define HIB_CAL1_DOM_M 0x0000001F // Day of Month
  254. #define HIB_CAL1_DOW_S 24
  255. #define HIB_CAL1_YEAR_S 16
  256. #define HIB_CAL1_MON_S 8
  257. #define HIB_CAL1_DOM_S 0
  258. //*****************************************************************************
  259. //
  260. // The following are defines for the bit fields in the HIB_CALLD0 register.
  261. //
  262. //*****************************************************************************
  263. #define HIB_CALLD0_AMPM 0x00400000 // AM/PM Designation
  264. #define HIB_CALLD0_HR_M 0x001F0000 // Hours
  265. #define HIB_CALLD0_MIN_M 0x00003F00 // Minutes
  266. #define HIB_CALLD0_SEC_M 0x0000003F // Seconds
  267. #define HIB_CALLD0_HR_S 16
  268. #define HIB_CALLD0_MIN_S 8
  269. #define HIB_CALLD0_SEC_S 0
  270. //*****************************************************************************
  271. //
  272. // The following are defines for the bit fields in the HIB_CALLD1 register.
  273. //
  274. //*****************************************************************************
  275. #define HIB_CALLD1_DOW_M 0x07000000 // Day of Week
  276. #define HIB_CALLD1_YEAR_M 0x007F0000 // Year Value
  277. #define HIB_CALLD1_MON_M 0x00000F00 // Month
  278. #define HIB_CALLD1_DOM_M 0x0000001F // Day of Month
  279. #define HIB_CALLD1_DOW_S 24
  280. #define HIB_CALLD1_YEAR_S 16
  281. #define HIB_CALLD1_MON_S 8
  282. #define HIB_CALLD1_DOM_S 0
  283. //*****************************************************************************
  284. //
  285. // The following are defines for the bit fields in the HIB_CALM0 register.
  286. //
  287. //*****************************************************************************
  288. #define HIB_CALM0_AMPM 0x00400000 // AM/PM Designation
  289. #define HIB_CALM0_HR_M 0x001F0000 // Hours
  290. #define HIB_CALM0_MIN_M 0x00003F00 // Minutes
  291. #define HIB_CALM0_SEC_M 0x0000003F // Seconds
  292. #define HIB_CALM0_HR_S 16
  293. #define HIB_CALM0_MIN_S 8
  294. #define HIB_CALM0_SEC_S 0
  295. //*****************************************************************************
  296. //
  297. // The following are defines for the bit fields in the HIB_CALM1 register.
  298. //
  299. //*****************************************************************************
  300. #define HIB_CALM1_DOM_M 0x0000001F // Day of Month
  301. #define HIB_CALM1_DOM_S 0
  302. //*****************************************************************************
  303. //
  304. // The following are defines for the bit fields in the HIB_LOCK register.
  305. //
  306. //*****************************************************************************
  307. #define HIB_LOCK_HIBLOCK_M 0xFFFFFFFF // HIbernate Lock
  308. #define HIB_LOCK_HIBLOCK_KEY 0xA3359554 // Hibernate Lock Key
  309. #define HIB_LOCK_HIBLOCK_S 0
  310. //*****************************************************************************
  311. //
  312. // The following are defines for the bit fields in the HIB_TPCTL register.
  313. //
  314. //*****************************************************************************
  315. #define HIB_TPCTL_WAKE 0x00000800 // Wake from Hibernate on a Tamper
  316. // Event
  317. #define HIB_TPCTL_MEMCLR_M 0x00000300 // HIB Memory Clear on Tamper Event
  318. #define HIB_TPCTL_MEMCLR_NONE 0x00000000 // Do not Clear HIB memory on
  319. // tamper event
  320. #define HIB_TPCTL_MEMCLR_LOW32 0x00000100 // Clear Lower 32 Bytes of HIB
  321. // memory on tamper event
  322. #define HIB_TPCTL_MEMCLR_HIGH32 0x00000200 // Clear upper 32 Bytes of HIB
  323. // memory on tamper event
  324. #define HIB_TPCTL_MEMCLR_ALL 0x00000300 // Clear all HIB memory on tamper
  325. // event
  326. #define HIB_TPCTL_TPCLR 0x00000010 // Tamper Event Clear
  327. #define HIB_TPCTL_TPEN 0x00000001 // Tamper Module Enable
  328. //*****************************************************************************
  329. //
  330. // The following are defines for the bit fields in the HIB_TPSTAT register.
  331. //
  332. //*****************************************************************************
  333. #define HIB_TPSTAT_STATE_M 0x0000000C // Tamper Module Status
  334. #define HIB_TPSTAT_STATE_DISABLED \
  335. 0x00000000 // Tamper disabled
  336. #define HIB_TPSTAT_STATE_CONFIGED \
  337. 0x00000004 // Tamper configured
  338. #define HIB_TPSTAT_STATE_ERROR 0x00000008 // Tamper pin event occurred
  339. #define HIB_TPSTAT_XOSCST 0x00000002 // External Oscillator Status
  340. #define HIB_TPSTAT_XOSCFAIL 0x00000001 // External Oscillator Failure
  341. //*****************************************************************************
  342. //
  343. // The following are defines for the bit fields in the HIB_TPIO register.
  344. //
  345. //*****************************************************************************
  346. #define HIB_TPIO_GFLTR3 0x08000000 // TMPR3 Glitch Filtering
  347. #define HIB_TPIO_PUEN3 0x04000000 // TMPR3 Internal Weak Pull-up
  348. // Enable
  349. #define HIB_TPIO_LEV3 0x02000000 // TMPR3 Trigger Level
  350. #define HIB_TPIO_EN3 0x01000000 // TMPR3 Enable
  351. #define HIB_TPIO_GFLTR2 0x00080000 // TMPR2 Glitch Filtering
  352. #define HIB_TPIO_PUEN2 0x00040000 // TMPR2 Internal Weak Pull-up
  353. // Enable
  354. #define HIB_TPIO_LEV2 0x00020000 // TMPR2 Trigger Level
  355. #define HIB_TPIO_EN2 0x00010000 // TMPR2 Enable
  356. #define HIB_TPIO_GFLTR1 0x00000800 // TMPR1 Glitch Filtering
  357. #define HIB_TPIO_PUEN1 0x00000400 // TMPR1 Internal Weak Pull-up
  358. // Enable
  359. #define HIB_TPIO_LEV1 0x00000200 // TMPR1 Trigger Level
  360. #define HIB_TPIO_EN1 0x00000100 // TMPR1Enable
  361. #define HIB_TPIO_GFLTR0 0x00000008 // TMPR0 Glitch Filtering
  362. #define HIB_TPIO_PUEN0 0x00000004 // TMPR0 Internal Weak Pull-up
  363. // Enable
  364. #define HIB_TPIO_LEV0 0x00000002 // TMPR0 Trigger Level
  365. #define HIB_TPIO_EN0 0x00000001 // TMPR0 Enable
  366. //*****************************************************************************
  367. //
  368. // The following are defines for the bit fields in the HIB_TPLOG0 register.
  369. //
  370. //*****************************************************************************
  371. #define HIB_TPLOG0_TIME_M 0xFFFFFFFF // Tamper Log Calendar Information
  372. #define HIB_TPLOG0_TIME_S 0
  373. //*****************************************************************************
  374. //
  375. // The following are defines for the bit fields in the HIB_TPLOG1 register.
  376. //
  377. //*****************************************************************************
  378. #define HIB_TPLOG1_XOSC 0x00010000 // Status of external 32
  379. #define HIB_TPLOG1_TRIG3 0x00000008 // Status of TMPR[3] Trigger
  380. #define HIB_TPLOG1_TRIG2 0x00000004 // Status of TMPR[2] Trigger
  381. #define HIB_TPLOG1_TRIG1 0x00000002 // Status of TMPR[1] Trigger
  382. #define HIB_TPLOG1_TRIG0 0x00000001 // Status of TMPR[0] Trigger
  383. //*****************************************************************************
  384. //
  385. // The following are defines for the bit fields in the HIB_TPLOG2 register.
  386. //
  387. //*****************************************************************************
  388. #define HIB_TPLOG2_TIME_M 0xFFFFFFFF // Tamper Log Calendar Information
  389. #define HIB_TPLOG2_TIME_S 0
  390. //*****************************************************************************
  391. //
  392. // The following are defines for the bit fields in the HIB_TPLOG3 register.
  393. //
  394. //*****************************************************************************
  395. #define HIB_TPLOG3_XOSC 0x00010000 // Status of external 32
  396. #define HIB_TPLOG3_TRIG3 0x00000008 // Status of TMPR[3] Trigger
  397. #define HIB_TPLOG3_TRIG2 0x00000004 // Status of TMPR[2] Trigger
  398. #define HIB_TPLOG3_TRIG1 0x00000002 // Status of TMPR[1] Trigger
  399. #define HIB_TPLOG3_TRIG0 0x00000001 // Status of TMPR[0] Trigger
  400. //*****************************************************************************
  401. //
  402. // The following are defines for the bit fields in the HIB_TPLOG4 register.
  403. //
  404. //*****************************************************************************
  405. #define HIB_TPLOG4_TIME_M 0xFFFFFFFF // Tamper Log Calendar Information
  406. #define HIB_TPLOG4_TIME_S 0
  407. //*****************************************************************************
  408. //
  409. // The following are defines for the bit fields in the HIB_TPLOG5 register.
  410. //
  411. //*****************************************************************************
  412. #define HIB_TPLOG5_XOSC 0x00010000 // Status of external 32
  413. #define HIB_TPLOG5_TRIG3 0x00000008 // Status of TMPR[3] Trigger
  414. #define HIB_TPLOG5_TRIG2 0x00000004 // Status of TMPR[2] Trigger
  415. #define HIB_TPLOG5_TRIG1 0x00000002 // Status of TMPR[1] Trigger
  416. #define HIB_TPLOG5_TRIG0 0x00000001 // Status of TMPR[0] Trigger
  417. //*****************************************************************************
  418. //
  419. // The following are defines for the bit fields in the HIB_TPLOG6 register.
  420. //
  421. //*****************************************************************************
  422. #define HIB_TPLOG6_TIME_M 0xFFFFFFFF // Tamper Log Calendar Information
  423. #define HIB_TPLOG6_TIME_S 0
  424. //*****************************************************************************
  425. //
  426. // The following are defines for the bit fields in the HIB_TPLOG7 register.
  427. //
  428. //*****************************************************************************
  429. #define HIB_TPLOG7_XOSC 0x00010000 // Status of external 32
  430. #define HIB_TPLOG7_TRIG3 0x00000008 // Status of TMPR[3] Trigger
  431. #define HIB_TPLOG7_TRIG2 0x00000004 // Status of TMPR[2] Trigger
  432. #define HIB_TPLOG7_TRIG1 0x00000002 // Status of TMPR[1] Trigger
  433. #define HIB_TPLOG7_TRIG0 0x00000001 // Status of TMPR[0] Trigger
  434. //*****************************************************************************
  435. //
  436. // The following are defines for the bit fields in the HIB_PP register.
  437. //
  438. //*****************************************************************************
  439. #define HIB_PP_TAMPER 0x00000002 // Tamper Pin Presence
  440. #define HIB_PP_WAKENC 0x00000001 // Wake Pin Presence
  441. //*****************************************************************************
  442. //
  443. // The following are defines for the bit fields in the HIB_CC register.
  444. //
  445. //*****************************************************************************
  446. #define HIB_CC_SYSCLKEN 0x00000001 // RTCOSC to System Clock Enable
  447. #endif // __HW_HIBERNATE_H__