hw_sys_ctrl.h 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961
  1. /******************************************************************************
  2. * Filename: hw_sys_ctrl.h
  3. * Revised: $Date: 2013-04-12 15:10:54 +0200 (Fri, 12 Apr 2013) $
  4. * Revision: $Revision: 9735 $
  5. *
  6. * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
  7. *
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions
  11. * are met:
  12. *
  13. * Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions and the following disclaimer.
  15. *
  16. * Redistributions in binary form must reproduce the above copyright
  17. * notice, this list of conditions and the following disclaimer in the
  18. * documentation and/or other materials provided with the 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. ******************************************************************************/
  37. #ifndef __HW_SYS_CTRL_H__
  38. #define __HW_SYS_CTRL_H__
  39. //*****************************************************************************
  40. //
  41. // The following are defines for the SYS_CTRL register offsets.
  42. //
  43. //*****************************************************************************
  44. #define SYS_CTRL_CLOCK_CTRL 0x400D2000 // The clock control register
  45. // handels clock settings in the
  46. // CC2538. The settings in
  47. // CLOCK_CTRL do not always reflect
  48. // the current chip status which is
  49. // found in CLOCK_STA register.
  50. #define SYS_CTRL_CLOCK_STA 0x400D2004 // Clock status register This
  51. // register reflects the current
  52. // chip status.
  53. #define SYS_CTRL_RCGCGPT 0x400D2008 // This register defines the
  54. // module clocks for GPT[3:0] when
  55. // the CPU is in active (run) mode.
  56. // This register setting is don't
  57. // care for PM1-3, because the
  58. // system clock is powered down in
  59. // these modes.
  60. #define SYS_CTRL_SCGCGPT 0x400D200C // This register defines the
  61. // module clocks for GPT[3:0] when
  62. // the CPU is in sleep mode. This
  63. // register setting is don't care
  64. // for PM1-3, because the system
  65. // clock is powered down in these
  66. // modes.
  67. #define SYS_CTRL_DCGCGPT 0x400D2010 // This register defines the
  68. // module clocks for GPT[3:0] when
  69. // the CPU is in PM0. This register
  70. // setting is don't care for PM1-3,
  71. // because the system clock is
  72. // powered down in these modes.
  73. #define SYS_CTRL_SRGPT 0x400D2014 // This register controls the
  74. // reset for GPT[3:0].
  75. #define SYS_CTRL_RCGCSSI 0x400D2018 // This register defines the
  76. // module clocks for SSI[1:0] when
  77. // the CPU is in active (run) mode.
  78. // This register setting is don't
  79. // care for PM1-3, because the
  80. // system clock is powered down in
  81. // these modes.
  82. #define SYS_CTRL_SCGCSSI 0x400D201C // This register defines the
  83. // module clocks for SSI[1:0] when
  84. // the CPU is insSleep mode. This
  85. // register setting is don't care
  86. // for PM1-3, because the system
  87. // clock is powered down in these
  88. // modes.
  89. #define SYS_CTRL_DCGCSSI 0x400D2020 // This register defines the
  90. // module clocks for SSI[1:0] when
  91. // the CPU is in PM0. This register
  92. // setting is don't care for PM1-3,
  93. // because the system clock is
  94. // powered down in these modes.
  95. #define SYS_CTRL_SRSSI 0x400D2024 // This register controls the
  96. // reset for SSI[1:0].
  97. #define SYS_CTRL_RCGCUART 0x400D2028 // This register defines the
  98. // module clocks for UART[1:0] when
  99. // the CPU is in active (run) mode.
  100. // This register setting is don't
  101. // care for PM1-3, because the
  102. // system clock is powered down in
  103. // these modes.
  104. #define SYS_CTRL_SCGCUART 0x400D202C // This register defines the
  105. // module clocks for UART[1:0] when
  106. // the CPU is in sleep mode. This
  107. // register setting is don't care
  108. // for PM1-3, because the system
  109. // clock is powered down in these
  110. // modes.
  111. #define SYS_CTRL_DCGCUART 0x400D2030 // This register defines the
  112. // module clocks for UART[1:0] when
  113. // the CPU is in PM0. This register
  114. // setting is don't care for PM1-3,
  115. // because the system clock is
  116. // powered down in these modes.
  117. #define SYS_CTRL_SRUART 0x400D2034 // This register controls the
  118. // reset for UART[1:0].
  119. #define SYS_CTRL_RCGCI2C 0x400D2038 // This register defines the
  120. // module clocks for I2C when the
  121. // CPU is in active (run) mode.
  122. // This register setting is don't
  123. // care for PM1-3, because the
  124. // system clock is powered down in
  125. // these modes.
  126. #define SYS_CTRL_SCGCI2C 0x400D203C // This register defines the
  127. // module clocks for I2C when the
  128. // CPU is in sleep mode. This
  129. // register setting is don't care
  130. // for PM1-3, because the system
  131. // clock is powered down in these
  132. // modes.
  133. #define SYS_CTRL_DCGCI2C 0x400D2040 // This register defines the
  134. // module clocks for I2C when the
  135. // CPU is in PM0. This register
  136. // setting is don't care for PM1-3,
  137. // because the system clock is
  138. // powered down in these modes.
  139. #define SYS_CTRL_SRI2C 0x400D2044 // This register controls the
  140. // reset for I2C.
  141. #define SYS_CTRL_RCGCSEC 0x400D2048 // This register defines the
  142. // module clocks for the security
  143. // module when the CPU is in active
  144. // (run) mode. This register
  145. // setting is don't care for PM1-3,
  146. // because the system clock is
  147. // powered down in these modes.
  148. #define SYS_CTRL_SCGCSEC 0x400D204C // This register defines the
  149. // module clocks for the security
  150. // module when the CPU is in sleep
  151. // mode. This register setting is
  152. // don't care for PM1-3, because
  153. // the system clock is powered down
  154. // in these modes.
  155. #define SYS_CTRL_DCGCSEC 0x400D2050 // This register defines the
  156. // module clocks for the security
  157. // module when the CPU is in PM0.
  158. // This register setting is don't
  159. // care for PM1-3, because the
  160. // system clock is powered down in
  161. // these modes.
  162. #define SYS_CTRL_SRSEC 0x400D2054 // This register controls the
  163. // reset for the security module.
  164. #define SYS_CTRL_PMCTL 0x400D2058 // This register controls the
  165. // power mode. Note: The
  166. // Corresponding PM is not entered
  167. // before the WFI instruction is
  168. // asserted. To enter PM1-3 the
  169. // DEEPSLEEP bit in SYSCTRL must be
  170. // 1.
  171. #define SYS_CTRL_SRCRC 0x400D205C // This register controls CRC on
  172. // state retention.
  173. #define SYS_CTRL_PWRDBG 0x400D2074 // Power debug register
  174. #define SYS_CTRL_CLD 0x400D2080 // This register controls the
  175. // clock loss detection feature.
  176. #define SYS_CTRL_IWE 0x400D2094 // This register controls
  177. // interrupt wake-up.
  178. #define SYS_CTRL_I_MAP 0x400D2098 // This register selects which
  179. // interrupt map to be used.
  180. #define SYS_CTRL_RCGCRFC 0x400D20A8 // This register defines the
  181. // module clocks for RF CORE when
  182. // the CPU is in active (run) mode.
  183. // This register setting is don't
  184. // care for PM1-3, because the
  185. // system clock is powered down in
  186. // these modes.
  187. #define SYS_CTRL_SCGCRFC 0x400D20AC // This register defines the
  188. // module clocks for RF CORE when
  189. // the CPU is in sleep mode. This
  190. // register setting is don't care
  191. // for PM1-3, because the system
  192. // clock is powered down in these
  193. // modes.
  194. #define SYS_CTRL_DCGCRFC 0x400D20B0 // This register defines the
  195. // module clocks for RF CORE when
  196. // the CPU is in PM0. This register
  197. // setting is don't care for PM1-3,
  198. // because the system clock is
  199. // powered down in these modes.
  200. #define SYS_CTRL_EMUOVR 0x400D20B4 // This register defines the
  201. // emulator override controls for
  202. // power mode and peripheral clock
  203. // gate.
  204. //*****************************************************************************
  205. //
  206. // The following are defines for the bit fields in the
  207. // SYS_CTRL_CLOCK_CTRL register.
  208. //
  209. //*****************************************************************************
  210. #define SYS_CTRL_CLOCK_CTRL_OSC32K_CALDIS \
  211. 0x02000000 // Disable calibration 32-kHz RC
  212. // oscillator. 0: Enable
  213. // calibration 1: Disable
  214. // calibration
  215. #define SYS_CTRL_CLOCK_CTRL_OSC32K_CALDIS_M \
  216. 0x02000000
  217. #define SYS_CTRL_CLOCK_CTRL_OSC32K_CALDIS_S 25
  218. #define SYS_CTRL_CLOCK_CTRL_OSC32K \
  219. 0x01000000 // 32-kHz clock oscillator
  220. // selection 0: 32-kHz crystal
  221. // oscillator 1: 32-kHz RC
  222. // oscillator
  223. #define SYS_CTRL_CLOCK_CTRL_OSC32K_M \
  224. 0x01000000
  225. #define SYS_CTRL_CLOCK_CTRL_OSC32K_S 24
  226. #define SYS_CTRL_CLOCK_CTRL_AMP_DET \
  227. 0x00200000 // Amplitude detector of XOSC
  228. // during power up 0: No action 1:
  229. // Delay qualification of XOSC
  230. // until amplitude is greater than
  231. // the threshold.
  232. #define SYS_CTRL_CLOCK_CTRL_AMP_DET_M \
  233. 0x00200000
  234. #define SYS_CTRL_CLOCK_CTRL_AMP_DET_S 21
  235. #define SYS_CTRL_CLOCK_CTRL_OSC_PD \
  236. 0x00020000 // 0: Power up both oscillators 1:
  237. // Power down oscillator not
  238. // selected by OSC bit
  239. // (hardware-controlled when
  240. // selected).
  241. #define SYS_CTRL_CLOCK_CTRL_OSC_PD_M \
  242. 0x00020000
  243. #define SYS_CTRL_CLOCK_CTRL_OSC_PD_S 17
  244. #define SYS_CTRL_CLOCK_CTRL_OSC 0x00010000 // System clock oscillator
  245. // selection 0: 32-MHz crystal
  246. // oscillator 1: 16-MHz HF-RC
  247. // oscillator
  248. #define SYS_CTRL_CLOCK_CTRL_OSC_M \
  249. 0x00010000
  250. #define SYS_CTRL_CLOCK_CTRL_OSC_S 16
  251. #define SYS_CTRL_CLOCK_CTRL_IO_DIV_M \
  252. 0x00000700 // I/O clock rate setting Cannot
  253. // be higher than OSC setting 000:
  254. // 32 MHz 001: 16 MHz 010: 8 MHz
  255. // 011: 4 MHz 100: 2 MHz 101: 1 MHz
  256. // 110: 0.5 MHz 111: 0.25 MHz
  257. #define SYS_CTRL_CLOCK_CTRL_IO_DIV_S 8
  258. #define SYS_CTRL_CLOCK_CTRL_SYS_DIV_M \
  259. 0x00000007 // System clock rate setting
  260. // Cannot be higher than OSC
  261. // setting 000: 32 MHz 001: 16 MHz
  262. // 010: 8 MHz 011: 4 MHz 100: 2 MHz
  263. // 101: 1 MHz 110: 0.5 MHz 111:
  264. // 0.25 MHz
  265. #define SYS_CTRL_CLOCK_CTRL_SYS_DIV_S 0
  266. //*****************************************************************************
  267. //
  268. // The following are defines for the bit fields in the
  269. // SYS_CTRL_CLOCK_STA register.
  270. //
  271. //*****************************************************************************
  272. #define SYS_CTRL_CLOCK_STA_SYNC_32K \
  273. 0x04000000 // 32-kHz clock source synced to
  274. // undivided system clock (16 or 32
  275. // MHz).
  276. #define SYS_CTRL_CLOCK_STA_SYNC_32K_M \
  277. 0x04000000
  278. #define SYS_CTRL_CLOCK_STA_SYNC_32K_S 26
  279. #define SYS_CTRL_CLOCK_STA_OSC32K_CALDIS \
  280. 0x02000000 // Disable calibration 32-kHz RC
  281. // oscillator. 0: Calibration
  282. // enabled 1: Calibration disabled
  283. #define SYS_CTRL_CLOCK_STA_OSC32K_CALDIS_M \
  284. 0x02000000
  285. #define SYS_CTRL_CLOCK_STA_OSC32K_CALDIS_S 25
  286. #define SYS_CTRL_CLOCK_STA_OSC32K \
  287. 0x01000000 // Current 32-kHz clock oscillator
  288. // selected. 0: 32-kHz crystal
  289. // oscillator 1: 32-kHz RC
  290. // oscillator
  291. #define SYS_CTRL_CLOCK_STA_OSC32K_M \
  292. 0x01000000
  293. #define SYS_CTRL_CLOCK_STA_OSC32K_S 24
  294. #define SYS_CTRL_CLOCK_STA_RST_M \
  295. 0x00C00000 // Returns last source of reset
  296. // 00: POR 01: External reset 10:
  297. // WDT 11: CLD or software reset
  298. #define SYS_CTRL_CLOCK_STA_RST_S 22
  299. #define SYS_CTRL_CLOCK_STA_SOURCE_CHANGE \
  300. 0x00100000 // 0: System clock is not
  301. // requested to change. 1: A change
  302. // of system clock source has been
  303. // initiated and is not finished.
  304. // Same as when OSC bit in
  305. // CLOCK_STA and CLOCK_CTRL
  306. // register are not equal
  307. #define SYS_CTRL_CLOCK_STA_SOURCE_CHANGE_M \
  308. 0x00100000
  309. #define SYS_CTRL_CLOCK_STA_SOURCE_CHANGE_S 20
  310. #define SYS_CTRL_CLOCK_STA_XOSC_STB \
  311. 0x00080000 // XOSC stable status 0: XOSC is
  312. // not powered up or not yet
  313. // stable. 1: XOSC is powered up
  314. // and stable.
  315. #define SYS_CTRL_CLOCK_STA_XOSC_STB_M \
  316. 0x00080000
  317. #define SYS_CTRL_CLOCK_STA_XOSC_STB_S 19
  318. #define SYS_CTRL_CLOCK_STA_HSOSC_STB \
  319. 0x00040000 // HSOSC stable status 0: HSOSC is
  320. // not powered up or not yet
  321. // stable. 1: HSOSC is powered up
  322. // and stable.
  323. #define SYS_CTRL_CLOCK_STA_HSOSC_STB_M \
  324. 0x00040000
  325. #define SYS_CTRL_CLOCK_STA_HSOSC_STB_S 18
  326. #define SYS_CTRL_CLOCK_STA_OSC_PD \
  327. 0x00020000 // 0: Both oscillators powered up
  328. // and stable and OSC_PD_CMD = 0.
  329. // 1: Oscillator not selected by
  330. // CLOCK_CTRL.OSC bit is powered
  331. // down.
  332. #define SYS_CTRL_CLOCK_STA_OSC_PD_M \
  333. 0x00020000
  334. #define SYS_CTRL_CLOCK_STA_OSC_PD_S 17
  335. #define SYS_CTRL_CLOCK_STA_OSC 0x00010000 // Current clock source selected
  336. // 0: 32-MHz crystal oscillator 1:
  337. // 16-MHz HF-RC oscillator
  338. #define SYS_CTRL_CLOCK_STA_OSC_M \
  339. 0x00010000
  340. #define SYS_CTRL_CLOCK_STA_OSC_S 16
  341. #define SYS_CTRL_CLOCK_STA_IO_DIV_M \
  342. 0x00000700 // Returns current functional
  343. // frequency for IO_CLK (may differ
  344. // from setting in the CLOCK_CTRL
  345. // register) 000: 32 MHz 001: 16
  346. // MHz 010: 8 MHz 011: 4 MHz 100: 2
  347. // MHz 101: 1 MHz 110: 0.5 MHz 111:
  348. // 0.25 MHz
  349. #define SYS_CTRL_CLOCK_STA_IO_DIV_S 8
  350. #define SYS_CTRL_CLOCK_STA_RTCLK_FREQ_M \
  351. 0x00000018 // Returns current functional
  352. // frequency for real-time clock.
  353. // (may differ from setting in the
  354. // CLOCK_CTRL register) 1x : 8 MHz
  355. // 01: 2 MHz 00: 62.5 kHz
  356. #define SYS_CTRL_CLOCK_STA_RTCLK_FREQ_S 3
  357. #define SYS_CTRL_CLOCK_STA_SYS_DIV_M \
  358. 0x00000007 // Returns current functional
  359. // frequency for system clock (may
  360. // differ from setting in the
  361. // CLOCK_CTRL register) 000: 32 MHz
  362. // 001: 16 MHz 010: 8 MHz 011: 4
  363. // MHz 100: 2 MHz 101: 1 MHz 110:
  364. // 0.5 MHz 111: 0.25 MHz
  365. #define SYS_CTRL_CLOCK_STA_SYS_DIV_S 0
  366. //*****************************************************************************
  367. //
  368. // The following are defines for the bit fields in the
  369. // SYS_CTRL_RCGCGPT register.
  370. //
  371. //*****************************************************************************
  372. #define SYS_CTRL_RCGCGPT_GPT3 0x00000008 // 0: Clock for GPT3 is gated. 1:
  373. // Clock for GPT3 is enabled.
  374. #define SYS_CTRL_RCGCGPT_GPT3_M 0x00000008
  375. #define SYS_CTRL_RCGCGPT_GPT3_S 3
  376. #define SYS_CTRL_RCGCGPT_GPT2 0x00000004 // 0: Clock for GPT2 is gated. 1:
  377. // Clock for GPT2 is enabled.
  378. #define SYS_CTRL_RCGCGPT_GPT2_M 0x00000004
  379. #define SYS_CTRL_RCGCGPT_GPT2_S 2
  380. #define SYS_CTRL_RCGCGPT_GPT1 0x00000002 // 0: Clock for GPT1 is gated. 1:
  381. // Clock for GPT1 is enabled.
  382. #define SYS_CTRL_RCGCGPT_GPT1_M 0x00000002
  383. #define SYS_CTRL_RCGCGPT_GPT1_S 1
  384. #define SYS_CTRL_RCGCGPT_GPT0 0x00000001 // 0: Clock for GPT0 is gated. 1:
  385. // Clock for GPT0 is enabled.
  386. #define SYS_CTRL_RCGCGPT_GPT0_M 0x00000001
  387. #define SYS_CTRL_RCGCGPT_GPT0_S 0
  388. //*****************************************************************************
  389. //
  390. // The following are defines for the bit fields in the
  391. // SYS_CTRL_SCGCGPT register.
  392. //
  393. //*****************************************************************************
  394. #define SYS_CTRL_SCGCGPT_GPT3 0x00000008 // 0: Clock for GPT3 is gated. 1:
  395. // Clock for GPT3 is enabled.
  396. #define SYS_CTRL_SCGCGPT_GPT3_M 0x00000008
  397. #define SYS_CTRL_SCGCGPT_GPT3_S 3
  398. #define SYS_CTRL_SCGCGPT_GPT2 0x00000004 // 0: Clock for GPT2 is gated. 1:
  399. // Clock for GPT2 is enabled.
  400. #define SYS_CTRL_SCGCGPT_GPT2_M 0x00000004
  401. #define SYS_CTRL_SCGCGPT_GPT2_S 2
  402. #define SYS_CTRL_SCGCGPT_GPT1 0x00000002 // 0: Clock for GPT1 is gated. 1:
  403. // Clock for GPT1 is enabled.
  404. #define SYS_CTRL_SCGCGPT_GPT1_M 0x00000002
  405. #define SYS_CTRL_SCGCGPT_GPT1_S 1
  406. #define SYS_CTRL_SCGCGPT_GPT0 0x00000001 // 0: Clock for GPT0 is gated. 1:
  407. // Clock for GPT0 is enabled.
  408. #define SYS_CTRL_SCGCGPT_GPT0_M 0x00000001
  409. #define SYS_CTRL_SCGCGPT_GPT0_S 0
  410. //*****************************************************************************
  411. //
  412. // The following are defines for the bit fields in the
  413. // SYS_CTRL_DCGCGPT register.
  414. //
  415. //*****************************************************************************
  416. #define SYS_CTRL_DCGCGPT_GPT3 0x00000008 // 0: Clock for GPT3 is gated. 1:
  417. // Clock for GPT3 is enabled.
  418. #define SYS_CTRL_DCGCGPT_GPT3_M 0x00000008
  419. #define SYS_CTRL_DCGCGPT_GPT3_S 3
  420. #define SYS_CTRL_DCGCGPT_GPT2 0x00000004 // 0: Clock for GPT2 is gated. 1:
  421. // Clock for GPT2 is enabled.
  422. #define SYS_CTRL_DCGCGPT_GPT2_M 0x00000004
  423. #define SYS_CTRL_DCGCGPT_GPT2_S 2
  424. #define SYS_CTRL_DCGCGPT_GPT1 0x00000002 // 0: Clock for GPT1 is gated. 1:
  425. // Clock for GPT1 is enabled.
  426. #define SYS_CTRL_DCGCGPT_GPT1_M 0x00000002
  427. #define SYS_CTRL_DCGCGPT_GPT1_S 1
  428. #define SYS_CTRL_DCGCGPT_GPT0 0x00000001 // 0: Clock for GPT0 is gated. 1:
  429. // Clock for GPT0 is enabled.
  430. #define SYS_CTRL_DCGCGPT_GPT0_M 0x00000001
  431. #define SYS_CTRL_DCGCGPT_GPT0_S 0
  432. //*****************************************************************************
  433. //
  434. // The following are defines for the bit fields in the
  435. // SYS_CTRL_SRGPT register.
  436. //
  437. //*****************************************************************************
  438. #define SYS_CTRL_SRGPT_GPT3 0x00000008 // 0: GPT3 module is not reset 1:
  439. // GPT3 module is reset
  440. #define SYS_CTRL_SRGPT_GPT3_M 0x00000008
  441. #define SYS_CTRL_SRGPT_GPT3_S 3
  442. #define SYS_CTRL_SRGPT_GPT2 0x00000004 // 0: GPT2 module is not reset 1:
  443. // GPT2 module is reset
  444. #define SYS_CTRL_SRGPT_GPT2_M 0x00000004
  445. #define SYS_CTRL_SRGPT_GPT2_S 2
  446. #define SYS_CTRL_SRGPT_GPT1 0x00000002 // 0: GPT1 module is not reset 1:
  447. // GPT1 module is reset
  448. #define SYS_CTRL_SRGPT_GPT1_M 0x00000002
  449. #define SYS_CTRL_SRGPT_GPT1_S 1
  450. #define SYS_CTRL_SRGPT_GPT0 0x00000001 // 0: GPT0 module is not reset 1:
  451. // GPT0 module is reset
  452. #define SYS_CTRL_SRGPT_GPT0_M 0x00000001
  453. #define SYS_CTRL_SRGPT_GPT0_S 0
  454. //*****************************************************************************
  455. //
  456. // The following are defines for the bit fields in the
  457. // SYS_CTRL_RCGCSSI register.
  458. //
  459. //*****************************************************************************
  460. #define SYS_CTRL_RCGCSSI_SSI1 0x00000002 // 0: Clock for SSI1 is gated. 1:
  461. // Clock for SSI1 is enabled.
  462. #define SYS_CTRL_RCGCSSI_SSI1_M 0x00000002
  463. #define SYS_CTRL_RCGCSSI_SSI1_S 1
  464. #define SYS_CTRL_RCGCSSI_SSI0 0x00000001 // 0: Clock for SSI0 is gated. 1:
  465. // Clock for SSI0 is enabled.
  466. #define SYS_CTRL_RCGCSSI_SSI0_M 0x00000001
  467. #define SYS_CTRL_RCGCSSI_SSI0_S 0
  468. //*****************************************************************************
  469. //
  470. // The following are defines for the bit fields in the
  471. // SYS_CTRL_SCGCSSI register.
  472. //
  473. //*****************************************************************************
  474. #define SYS_CTRL_SCGCSSI_SSI1 0x00000002 // 0: Clock for SSI1 is gated. 1:
  475. // Clock for SSI1 is enabled.
  476. #define SYS_CTRL_SCGCSSI_SSI1_M 0x00000002
  477. #define SYS_CTRL_SCGCSSI_SSI1_S 1
  478. #define SYS_CTRL_SCGCSSI_SSI0 0x00000001 // 0: Clock for SSI0 is gated. 1:
  479. // Clock for SSI0 is enabled.
  480. #define SYS_CTRL_SCGCSSI_SSI0_M 0x00000001
  481. #define SYS_CTRL_SCGCSSI_SSI0_S 0
  482. //*****************************************************************************
  483. //
  484. // The following are defines for the bit fields in the
  485. // SYS_CTRL_DCGCSSI register.
  486. //
  487. //*****************************************************************************
  488. #define SYS_CTRL_DCGCSSI_SSI1 0x00000002 // 0: Clock for SSI1 is gated. 1:
  489. // Clock for SSI1 is enabled.
  490. #define SYS_CTRL_DCGCSSI_SSI1_M 0x00000002
  491. #define SYS_CTRL_DCGCSSI_SSI1_S 1
  492. #define SYS_CTRL_DCGCSSI_SSI0 0x00000001 // 0: Clock for SSI0 is gated. 1:
  493. // Clock for SSI0 is enabled.
  494. #define SYS_CTRL_DCGCSSI_SSI0_M 0x00000001
  495. #define SYS_CTRL_DCGCSSI_SSI0_S 0
  496. //*****************************************************************************
  497. //
  498. // The following are defines for the bit fields in the
  499. // SYS_CTRL_SRSSI register.
  500. //
  501. //*****************************************************************************
  502. #define SYS_CTRL_SRSSI_SSI1 0x00000002 // 0: SSI1 module is not reset 1:
  503. // SSI1 module is reset
  504. #define SYS_CTRL_SRSSI_SSI1_M 0x00000002
  505. #define SYS_CTRL_SRSSI_SSI1_S 1
  506. #define SYS_CTRL_SRSSI_SSI0 0x00000001 // 0: SSI0 module is not reset 1:
  507. // SSI0 module is reset
  508. #define SYS_CTRL_SRSSI_SSI0_M 0x00000001
  509. #define SYS_CTRL_SRSSI_SSI0_S 0
  510. //*****************************************************************************
  511. //
  512. // The following are defines for the bit fields in the
  513. // SYS_CTRL_RCGCUART register.
  514. //
  515. //*****************************************************************************
  516. #define SYS_CTRL_RCGCUART_UART1 0x00000002 // 0: Clock for UART1 is gated. 1:
  517. // Clock for UART1 is enabled.
  518. #define SYS_CTRL_RCGCUART_UART1_M \
  519. 0x00000002
  520. #define SYS_CTRL_RCGCUART_UART1_S 1
  521. #define SYS_CTRL_RCGCUART_UART0 0x00000001 // 0: Clock for UART0 is gated. 1:
  522. // Clock for UART0 is enabled.
  523. #define SYS_CTRL_RCGCUART_UART0_M \
  524. 0x00000001
  525. #define SYS_CTRL_RCGCUART_UART0_S 0
  526. //*****************************************************************************
  527. //
  528. // The following are defines for the bit fields in the
  529. // SYS_CTRL_SCGCUART register.
  530. //
  531. //*****************************************************************************
  532. #define SYS_CTRL_SCGCUART_UART1 0x00000002 // 0: Clock for UART1 is gated. 1:
  533. // Clock for UART1 is enabled.
  534. #define SYS_CTRL_SCGCUART_UART1_M \
  535. 0x00000002
  536. #define SYS_CTRL_SCGCUART_UART1_S 1
  537. #define SYS_CTRL_SCGCUART_UART0 0x00000001 // 0: Clock for UART0 is gated. 1:
  538. // Clock for UART0 is enabled.
  539. #define SYS_CTRL_SCGCUART_UART0_M \
  540. 0x00000001
  541. #define SYS_CTRL_SCGCUART_UART0_S 0
  542. //*****************************************************************************
  543. //
  544. // The following are defines for the bit fields in the
  545. // SYS_CTRL_DCGCUART register.
  546. //
  547. //*****************************************************************************
  548. #define SYS_CTRL_DCGCUART_UART1 0x00000002 // 0: Clock for UART1 is gated. 1:
  549. // Clock for UART1 is enabled.
  550. #define SYS_CTRL_DCGCUART_UART1_M \
  551. 0x00000002
  552. #define SYS_CTRL_DCGCUART_UART1_S 1
  553. #define SYS_CTRL_DCGCUART_UART0 0x00000001 // 0: Clock for UART0 is gated. 1:
  554. // Clock for UART0 is enabled.
  555. #define SYS_CTRL_DCGCUART_UART0_M \
  556. 0x00000001
  557. #define SYS_CTRL_DCGCUART_UART0_S 0
  558. //*****************************************************************************
  559. //
  560. // The following are defines for the bit fields in the
  561. // SYS_CTRL_SRUART register.
  562. //
  563. //*****************************************************************************
  564. #define SYS_CTRL_SRUART_UART1 0x00000002 // 0: UART1 module is not reset 1:
  565. // UART1 module is reset
  566. #define SYS_CTRL_SRUART_UART1_M 0x00000002
  567. #define SYS_CTRL_SRUART_UART1_S 1
  568. #define SYS_CTRL_SRUART_UART0 0x00000001 // 0: UART0 module is not reset 1:
  569. // UART0 module is reset
  570. #define SYS_CTRL_SRUART_UART0_M 0x00000001
  571. #define SYS_CTRL_SRUART_UART0_S 0
  572. //*****************************************************************************
  573. //
  574. // The following are defines for the bit fields in the
  575. // SYS_CTRL_RCGCI2C register.
  576. //
  577. //*****************************************************************************
  578. #define SYS_CTRL_RCGCI2C_I2C0 0x00000001 // 0: Clock for I2C0 is gated. 1:
  579. // Clock for I2C0 is enabled.
  580. #define SYS_CTRL_RCGCI2C_I2C0_M 0x00000001
  581. #define SYS_CTRL_RCGCI2C_I2C0_S 0
  582. //*****************************************************************************
  583. //
  584. // The following are defines for the bit fields in the
  585. // SYS_CTRL_SCGCI2C register.
  586. //
  587. //*****************************************************************************
  588. #define SYS_CTRL_SCGCI2C_I2C0 0x00000001 // 0: Clock for I2C0 is gated. 1:
  589. // Clock for I2C0 is enabled.
  590. #define SYS_CTRL_SCGCI2C_I2C0_M 0x00000001
  591. #define SYS_CTRL_SCGCI2C_I2C0_S 0
  592. //*****************************************************************************
  593. //
  594. // The following are defines for the bit fields in the
  595. // SYS_CTRL_DCGCI2C register.
  596. //
  597. //*****************************************************************************
  598. #define SYS_CTRL_DCGCI2C_I2C0 0x00000001 // 0: Clock for I2C0 is gated. 1:
  599. // Clock for I2C0 is enabled.
  600. #define SYS_CTRL_DCGCI2C_I2C0_M 0x00000001
  601. #define SYS_CTRL_DCGCI2C_I2C0_S 0
  602. //*****************************************************************************
  603. //
  604. // The following are defines for the bit fields in the
  605. // SYS_CTRL_SRI2C register.
  606. //
  607. //*****************************************************************************
  608. #define SYS_CTRL_SRI2C_I2C0 0x00000001 // 0: I2C0 module is not reset 1:
  609. // I2C0 module is reset
  610. #define SYS_CTRL_SRI2C_I2C0_M 0x00000001
  611. #define SYS_CTRL_SRI2C_I2C0_S 0
  612. //*****************************************************************************
  613. //
  614. // The following are defines for the bit fields in the
  615. // SYS_CTRL_RCGCSEC register.
  616. //
  617. //*****************************************************************************
  618. #define SYS_CTRL_RCGCSEC_AES 0x00000002 // 0: Clock for AES is gated. 1:
  619. // Clock for AES is enabled.
  620. #define SYS_CTRL_RCGCSEC_AES_M 0x00000002
  621. #define SYS_CTRL_RCGCSEC_AES_S 1
  622. #define SYS_CTRL_RCGCSEC_PKA 0x00000001 // 0: Clock for PKA is gated. 1:
  623. // Clock for PKA is enabled.
  624. #define SYS_CTRL_RCGCSEC_PKA_M 0x00000001
  625. #define SYS_CTRL_RCGCSEC_PKA_S 0
  626. //*****************************************************************************
  627. //
  628. // The following are defines for the bit fields in the
  629. // SYS_CTRL_SCGCSEC register.
  630. //
  631. //*****************************************************************************
  632. #define SYS_CTRL_SCGCSEC_AES 0x00000002 // 0: Clock for AES is gated. 1:
  633. // Clock for AES is enabled.
  634. #define SYS_CTRL_SCGCSEC_AES_M 0x00000002
  635. #define SYS_CTRL_SCGCSEC_AES_S 1
  636. #define SYS_CTRL_SCGCSEC_PKA 0x00000001 // 0: Clock for PKA is gated. 1:
  637. // Clock for PKA is enabled.
  638. #define SYS_CTRL_SCGCSEC_PKA_M 0x00000001
  639. #define SYS_CTRL_SCGCSEC_PKA_S 0
  640. //*****************************************************************************
  641. //
  642. // The following are defines for the bit fields in the
  643. // SYS_CTRL_DCGCSEC register.
  644. //
  645. //*****************************************************************************
  646. #define SYS_CTRL_DCGCSEC_AES 0x00000002 // 0: Clock for AES is gated. 1:
  647. // Clock for AES is enabled.
  648. #define SYS_CTRL_DCGCSEC_AES_M 0x00000002
  649. #define SYS_CTRL_DCGCSEC_AES_S 1
  650. #define SYS_CTRL_DCGCSEC_PKA 0x00000001 // 0: Clock for PKA is gated. 1:
  651. // Clock for PKA is enabled.
  652. #define SYS_CTRL_DCGCSEC_PKA_M 0x00000001
  653. #define SYS_CTRL_DCGCSEC_PKA_S 0
  654. //*****************************************************************************
  655. //
  656. // The following are defines for the bit fields in the
  657. // SYS_CTRL_SRSEC register.
  658. //
  659. //*****************************************************************************
  660. #define SYS_CTRL_SRSEC_AES 0x00000002 // 0: AES module is not reset 1:
  661. // AES module is reset
  662. #define SYS_CTRL_SRSEC_AES_M 0x00000002
  663. #define SYS_CTRL_SRSEC_AES_S 1
  664. #define SYS_CTRL_SRSEC_PKA 0x00000001 // 0: PKA module is not reset 1:
  665. // PKA module is reset
  666. #define SYS_CTRL_SRSEC_PKA_M 0x00000001
  667. #define SYS_CTRL_SRSEC_PKA_S 0
  668. //*****************************************************************************
  669. //
  670. // The following are defines for the bit fields in the
  671. // SYS_CTRL_PMCTL register.
  672. //
  673. //*****************************************************************************
  674. #define SYS_CTRL_PMCTL_PM_M 0x00000003 // 00: No action 01: PM1 10: PM2
  675. // 11: PM3
  676. #define SYS_CTRL_PMCTL_PM_S 0
  677. //*****************************************************************************
  678. //
  679. // The following are defines for the bit fields in the
  680. // SYS_CTRL_SRCRC register.
  681. //
  682. //*****************************************************************************
  683. #define SYS_CTRL_SRCRC_CRC_REN_USB \
  684. 0x00000100 // 1: Enable reset of chip if CRC
  685. // fails. 0: Disable reset feature
  686. // of chip due to CRC.
  687. #define SYS_CTRL_SRCRC_CRC_REN_USB_M \
  688. 0x00000100
  689. #define SYS_CTRL_SRCRC_CRC_REN_USB_S 8
  690. #define SYS_CTRL_SRCRC_CRC_REN_RF \
  691. 0x00000001 // 1: Enable reset of chip if CRC
  692. // fails. 0: Disable reset feature
  693. // of chip due to CRC.
  694. #define SYS_CTRL_SRCRC_CRC_REN_RF_M \
  695. 0x00000001
  696. #define SYS_CTRL_SRCRC_CRC_REN_RF_S 0
  697. //*****************************************************************************
  698. //
  699. // The following are defines for the bit fields in the
  700. // SYS_CTRL_PWRDBG register.
  701. //
  702. //*****************************************************************************
  703. #define SYS_CTRL_PWRDBG_FORCE_WARM_RESET \
  704. 0x00000008 // 0: No action 1: When written
  705. // high, the chip is reset in the
  706. // same manner as a CLD event and
  707. // is readable from the RST field
  708. // in the CLOCK_STA register.
  709. #define SYS_CTRL_PWRDBG_FORCE_WARM_RESET_M \
  710. 0x00000008
  711. #define SYS_CTRL_PWRDBG_FORCE_WARM_RESET_S 3
  712. //*****************************************************************************
  713. //
  714. // The following are defines for the bit fields in the SYS_CTRL_CLD register.
  715. //
  716. //*****************************************************************************
  717. #define SYS_CTRL_CLD_VALID 0x00000100 // 0: CLD status in always-on
  718. // domain is not equal to status in
  719. // the EN register. 1: CLD status
  720. // in always-on domain and EN
  721. // register are equal.
  722. #define SYS_CTRL_CLD_VALID_M 0x00000100
  723. #define SYS_CTRL_CLD_VALID_S 8
  724. #define SYS_CTRL_CLD_EN 0x00000001 // 0: CLD is disabled. 1: CLD is
  725. // enabled. Writing to this
  726. // register shall be ignored if
  727. // VALID = 0
  728. #define SYS_CTRL_CLD_EN_M 0x00000001
  729. #define SYS_CTRL_CLD_EN_S 0
  730. //*****************************************************************************
  731. //
  732. // The following are defines for the bit fields in the SYS_CTRL_IWE register.
  733. //
  734. //*****************************************************************************
  735. #define SYS_CTRL_IWE_SM_TIMER_IWE \
  736. 0x00000020 // 1: Enable SM Timer wake-up
  737. // interrupt. 0: Disable SM Timer
  738. // wake-up interrupt.
  739. #define SYS_CTRL_IWE_SM_TIMER_IWE_M \
  740. 0x00000020
  741. #define SYS_CTRL_IWE_SM_TIMER_IWE_S 5
  742. #define SYS_CTRL_IWE_USB_IWE 0x00000010 // 1: Enable USB wake-up
  743. // interrupt. 0: Disable USB
  744. // wake-up interrupt.
  745. #define SYS_CTRL_IWE_USB_IWE_M 0x00000010
  746. #define SYS_CTRL_IWE_USB_IWE_S 4
  747. #define SYS_CTRL_IWE_PORT_D_IWE 0x00000008 // 1: Enable port D wake-up
  748. // interrupt. 0: Disable port D
  749. // wake-up interrupt.
  750. #define SYS_CTRL_IWE_PORT_D_IWE_M \
  751. 0x00000008
  752. #define SYS_CTRL_IWE_PORT_D_IWE_S 3
  753. #define SYS_CTRL_IWE_PORT_C_IWE 0x00000004 // 1: Enable port C wake-up
  754. // interrupt. 0: Disable port C
  755. // wake-up interrupt.
  756. #define SYS_CTRL_IWE_PORT_C_IWE_M \
  757. 0x00000004
  758. #define SYS_CTRL_IWE_PORT_C_IWE_S 2
  759. #define SYS_CTRL_IWE_PORT_B_IWE 0x00000002 // 1: Enable port B wake-up
  760. // interrupt. 0: Disable port B
  761. // wake-up interrupt.
  762. #define SYS_CTRL_IWE_PORT_B_IWE_M \
  763. 0x00000002
  764. #define SYS_CTRL_IWE_PORT_B_IWE_S 1
  765. #define SYS_CTRL_IWE_PORT_A_IWE 0x00000001 // 1: Enable port A wake-up
  766. // interrupt. 0: Disable port A
  767. // wake-up interrupt.
  768. #define SYS_CTRL_IWE_PORT_A_IWE_M \
  769. 0x00000001
  770. #define SYS_CTRL_IWE_PORT_A_IWE_S 0
  771. //*****************************************************************************
  772. //
  773. // The following are defines for the bit fields in the
  774. // SYS_CTRL_I_MAP register.
  775. //
  776. //*****************************************************************************
  777. #define SYS_CTRL_I_MAP_ALTMAP 0x00000001 // 1: Select alternate interrupt
  778. // map. 0: Select regular interrupt
  779. // map. (See the ASD document for
  780. // details.)
  781. #define SYS_CTRL_I_MAP_ALTMAP_M 0x00000001
  782. #define SYS_CTRL_I_MAP_ALTMAP_S 0
  783. //*****************************************************************************
  784. //
  785. // The following are defines for the bit fields in the
  786. // SYS_CTRL_RCGCRFC register.
  787. //
  788. //*****************************************************************************
  789. #define SYS_CTRL_RCGCRFC_RFC0 0x00000001 // 0: Clock for RF CORE is gated.
  790. // 1: Clock for RF CORE is enabled.
  791. #define SYS_CTRL_RCGCRFC_RFC0_M 0x00000001
  792. #define SYS_CTRL_RCGCRFC_RFC0_S 0
  793. //*****************************************************************************
  794. //
  795. // The following are defines for the bit fields in the
  796. // SYS_CTRL_SCGCRFC register.
  797. //
  798. //*****************************************************************************
  799. #define SYS_CTRL_SCGCRFC_RFC0 0x00000001 // 0: Clock for RF CORE is gated.
  800. // 1: Clock for RF CORE is enabled.
  801. #define SYS_CTRL_SCGCRFC_RFC0_M 0x00000001
  802. #define SYS_CTRL_SCGCRFC_RFC0_S 0
  803. //*****************************************************************************
  804. //
  805. // The following are defines for the bit fields in the
  806. // SYS_CTRL_DCGCRFC register.
  807. //
  808. //*****************************************************************************
  809. #define SYS_CTRL_DCGCRFC_RFC0 0x00000001 // 0: Clock for RF CORE is gated.
  810. // 1: Clock for RF CORE is enabled.
  811. #define SYS_CTRL_DCGCRFC_RFC0_M 0x00000001
  812. #define SYS_CTRL_DCGCRFC_RFC0_S 0
  813. //*****************************************************************************
  814. //
  815. // The following are defines for the bit fields in the
  816. // SYS_CTRL_EMUOVR register.
  817. //
  818. //*****************************************************************************
  819. #define SYS_CTRL_EMUOVR_ICEPICK_FORCE_CLOCK_CG \
  820. 0x00000080 // ICEPick 'Force Active' clock
  821. // gate override bit. 'Force
  822. // Active' is an ICEPick command. 1
  823. // --> In non-sleep power mode,
  824. // peripherals clocks are forced to
  825. // follow RCG* register settings.
  826. // It forces CM3 clocks on. 0 -->
  827. // Does not affect the peripheral
  828. // clock settings.
  829. #define SYS_CTRL_EMUOVR_ICEPICK_FORCE_CLOCK_CG_M \
  830. 0x00000080
  831. #define SYS_CTRL_EMUOVR_ICEPICK_FORCE_CLOCK_CG_S 7
  832. #define SYS_CTRL_EMUOVR_ICEPICK_FORCE_POWER_CG \
  833. 0x00000040 // ICEPick 'Force Power' clock
  834. // gate override bit. 'Force Power'
  835. // is an ICEPick command. 1 --> In
  836. // non-sleep power mode,
  837. // peripherals clocks are forced to
  838. // follow RCG* register settings.
  839. // It forces CM3 clocks on. 0 -->
  840. // Does not affect the peripheral
  841. // clock settings.
  842. #define SYS_CTRL_EMUOVR_ICEPICK_FORCE_POWER_CG_M \
  843. 0x00000040
  844. #define SYS_CTRL_EMUOVR_ICEPICK_FORCE_POWER_CG_S 6
  845. #define SYS_CTRL_EMUOVR_ICEPICK_INHIBIT_SLEEP_CG \
  846. 0x00000020 // ICEPick 'Inhibit Sleep' clock
  847. // gate override bit. 'Inhibit
  848. // Sleep' is an ICEPick command. 1
  849. // --> In non-sleep power mode,
  850. // peripherals clocks are forced to
  851. // follow RCG* register settings.
  852. // It forces CM3 clocks on. 0 -->
  853. // Does not affect the peripheral
  854. // clock settings.
  855. #define SYS_CTRL_EMUOVR_ICEPICK_INHIBIT_SLEEP_CG_M \
  856. 0x00000020
  857. #define SYS_CTRL_EMUOVR_ICEPICK_INHIBIT_SLEEP_CG_S 5
  858. #define SYS_CTRL_EMUOVR_ICEMELTER_WKUP_CG \
  859. 0x00000010 // ICEMelter 'WAKEUPEMU' clock
  860. // gate override bit. 1 --> In
  861. // non-sleep power mode,
  862. // peripherals clocks are forced to
  863. // follow RCG* register settings.
  864. // It forces CM3 clocks on. 0 -->
  865. // Does not affect the peripheral
  866. // clock settings
  867. #define SYS_CTRL_EMUOVR_ICEMELTER_WKUP_CG_M \
  868. 0x00000010
  869. #define SYS_CTRL_EMUOVR_ICEMELTER_WKUP_CG_S 4
  870. #define SYS_CTRL_EMUOVR_ICEPICK_FORCE_CLOCK_PM \
  871. 0x00000008 // ICEPick 'Force Active' power
  872. // mode override bit. 'Force
  873. // Active' is an ICEPick command. 1
  874. // --> Prohibit the system to go
  875. // into any power down modes. Keeps
  876. // the emulator attached. 0 -->
  877. // Does not override any power mode
  878. // settings from SYSREGS and does
  879. // not prohibit system to go into
  880. // any power down modes.
  881. #define SYS_CTRL_EMUOVR_ICEPICK_FORCE_CLOCK_PM_M \
  882. 0x00000008
  883. #define SYS_CTRL_EMUOVR_ICEPICK_FORCE_CLOCK_PM_S 3
  884. #define SYS_CTRL_EMUOVR_ICEPICK_FORCE_POWER_PM \
  885. 0x00000004 // ICEPick 'Force Power' power
  886. // mode override bit. 'Force Power'
  887. // is an ICEPick command. 1 -->
  888. // Prohibit the system to go into
  889. // any power down modes. Keeps the
  890. // emulator attached. 0 --> Does
  891. // not override any power mode
  892. // settings from SYSREGS and does
  893. // not prohibit system to go into
  894. // any power down modes.
  895. #define SYS_CTRL_EMUOVR_ICEPICK_FORCE_POWER_PM_M \
  896. 0x00000004
  897. #define SYS_CTRL_EMUOVR_ICEPICK_FORCE_POWER_PM_S 2
  898. #define SYS_CTRL_EMUOVR_ICEPICK_INHIBIT_SLEEP_PM \
  899. 0x00000002 // ICEPick 'Inhibit Sleep' power
  900. // mode override bit. 'Inhibit
  901. // Sleep' is an ICEPick command. 1
  902. // --> Prohibit the system to go
  903. // into any power down modes. Keeps
  904. // the emulator attached. 0 -->
  905. // Does not override any power mode
  906. // settings from SYSREGS and does
  907. // not prohibit system to go into
  908. // any power down modes.
  909. #define SYS_CTRL_EMUOVR_ICEPICK_INHIBIT_SLEEP_PM_M \
  910. 0x00000002
  911. #define SYS_CTRL_EMUOVR_ICEPICK_INHIBIT_SLEEP_PM_S 1
  912. #define SYS_CTRL_EMUOVR_ICEMELTER_WKUP_PM \
  913. 0x00000001 // ICEMelter 'WAKEUPEMU' power
  914. // mode override bit. 1 -->
  915. // Prohibit the system to go into
  916. // any power down modes. Keeps the
  917. // emulator attached. 0 --> Does
  918. // not override any power mode
  919. // settings from SYSREGS and does
  920. // not prohibit system to go into
  921. // any power down modes.
  922. #define SYS_CTRL_EMUOVR_ICEMELTER_WKUP_PM_M \
  923. 0x00000001
  924. #define SYS_CTRL_EMUOVR_ICEMELTER_WKUP_PM_S 0
  925. #endif // __HW_SYS_CTRL_H__