hw_flash.h 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. //*****************************************************************************
  2. //
  3. // hw_flash.h - Macros used when accessing the flash controller.
  4. //
  5. // Copyright (c) 2005-2011 Texas Instruments Incorporated. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Texas Instruments (TI) is supplying this software for use solely and
  9. // exclusively on TI's microcontroller products. The software is owned by
  10. // TI and/or its suppliers, and is protected under applicable copyright
  11. // laws. You may not combine this software with "viral" open-source
  12. // software in order to form a larger program.
  13. //
  14. // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
  15. // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
  16. // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  17. // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
  18. // CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
  19. // DAMAGES, FOR ANY REASON WHATSOEVER.
  20. //
  21. // This is part of revision 8264 of the Stellaris Firmware Development Package.
  22. //
  23. //*****************************************************************************
  24. #ifndef __HW_FLASH_H__
  25. #define __HW_FLASH_H__
  26. //*****************************************************************************
  27. //
  28. // The following are defines for the FLASH register offsets.
  29. //
  30. //*****************************************************************************
  31. #define FLASH_FMA 0x400FD000 // Flash Memory Address
  32. #define FLASH_FMD 0x400FD004 // Flash Memory Data
  33. #define FLASH_FMC 0x400FD008 // Flash Memory Control
  34. #define FLASH_FCRIS 0x400FD00C // Flash Controller Raw Interrupt
  35. // Status
  36. #define FLASH_FCIM 0x400FD010 // Flash Controller Interrupt Mask
  37. #define FLASH_FCMISC 0x400FD014 // Flash Controller Masked
  38. // Interrupt Status and Clear
  39. #define FLASH_FMC2 0x400FD020 // Flash Memory Control 2
  40. #define FLASH_FWBVAL 0x400FD030 // Flash Write Buffer Valid
  41. #define FLASH_FCTL 0x400FD0F8 // Flash Control
  42. #define FLASH_FWBN 0x400FD100 // Flash Write Buffer n
  43. #define FLASH_FSIZE 0x400FDFC0 // Flash Size
  44. #define FLASH_SSIZE 0x400FDFC4 // SRAM Size
  45. #define FLASH_ROMSWMAP 0x400FDFCC // ROM Software Map
  46. #define FLASH_RMCTL 0x400FE0F0 // ROM Control
  47. #define FLASH_FMPRE 0x400FE130 // Flash Memory Protection Read
  48. // Enable
  49. #define FLASH_FMPPE 0x400FE134 // Flash Memory Protection Program
  50. // Enable
  51. #define FLASH_USECRL 0x400FE140 // USec Reload
  52. #define FLASH_USERDBG 0x400FE1D0 // User Debug
  53. #define FLASH_BOOTCFG 0x400FE1D0 // Boot Configuration
  54. #define FLASH_USERREG0 0x400FE1E0 // User Register 0
  55. #define FLASH_USERREG1 0x400FE1E4 // User Register 1
  56. #define FLASH_USERREG2 0x400FE1E8 // User Register 2
  57. #define FLASH_USERREG3 0x400FE1EC // User Register 3
  58. #define FLASH_FMPRE0 0x400FE200 // Flash Memory Protection Read
  59. // Enable 0
  60. #define FLASH_FMPRE1 0x400FE204 // Flash Memory Protection Read
  61. // Enable 1
  62. #define FLASH_FMPRE2 0x400FE208 // Flash Memory Protection Read
  63. // Enable 2
  64. #define FLASH_FMPRE3 0x400FE20C // Flash Memory Protection Read
  65. // Enable 3
  66. #define FLASH_FMPRE4 0x400FE210 // Flash Memory Protection Read
  67. // Enable 4
  68. #define FLASH_FMPRE5 0x400FE214 // Flash Memory Protection Read
  69. // Enable 5
  70. #define FLASH_FMPRE6 0x400FE218 // Flash Memory Protection Read
  71. // Enable 6
  72. #define FLASH_FMPRE7 0x400FE21C // Flash Memory Protection Read
  73. // Enable 7
  74. #define FLASH_FMPPE0 0x400FE400 // Flash Memory Protection Program
  75. // Enable 0
  76. #define FLASH_FMPPE1 0x400FE404 // Flash Memory Protection Program
  77. // Enable 1
  78. #define FLASH_FMPPE2 0x400FE408 // Flash Memory Protection Program
  79. // Enable 2
  80. #define FLASH_FMPPE3 0x400FE40C // Flash Memory Protection Program
  81. // Enable 3
  82. #define FLASH_FMPPE4 0x400FE410 // Flash Memory Protection Program
  83. // Enable 4
  84. #define FLASH_FMPPE5 0x400FE414 // Flash Memory Protection Program
  85. // Enable 5
  86. #define FLASH_FMPPE6 0x400FE418 // Flash Memory Protection Program
  87. // Enable 6
  88. #define FLASH_FMPPE7 0x400FE41C // Flash Memory Protection Program
  89. // Enable 7
  90. //*****************************************************************************
  91. //
  92. // The following are defines for the bit fields in the FLASH_FMA register.
  93. //
  94. //*****************************************************************************
  95. #define FLASH_FMA_OFFSET_M 0x0007FFFF // Address Offset
  96. #define FLASH_FMA_OFFSET_S 0
  97. //*****************************************************************************
  98. //
  99. // The following are defines for the bit fields in the FLASH_FMD register.
  100. //
  101. //*****************************************************************************
  102. #define FLASH_FMD_DATA_M 0xFFFFFFFF // Data Value
  103. #define FLASH_FMD_DATA_S 0
  104. //*****************************************************************************
  105. //
  106. // The following are defines for the bit fields in the FLASH_FMC register.
  107. //
  108. //*****************************************************************************
  109. #define FLASH_FMC_WRKEY 0xA4420000 // FLASH write key
  110. #define FLASH_FMC_COMT 0x00000008 // Commit Register Value
  111. #define FLASH_FMC_MERASE 0x00000004 // Mass Erase Flash Memory
  112. #define FLASH_FMC_ERASE 0x00000002 // Erase a Page of Flash Memory
  113. #define FLASH_FMC_WRITE 0x00000001 // Write a Word into Flash Memory
  114. //*****************************************************************************
  115. //
  116. // The following are defines for the bit fields in the FLASH_FCRIS register.
  117. //
  118. //*****************************************************************************
  119. #define FLASH_FCRIS_PROGRIS 0x00002000 // PROGVER Raw Interrupt Status
  120. #define FLASH_FCRIS_ERRIS 0x00000800 // ERVER Raw Interrupt Status
  121. #define FLASH_FCRIS_INVDRIS 0x00000400 // Invalid Data Raw Interrupt
  122. // Status
  123. #define FLASH_FCRIS_VOLTRIS 0x00000200 // VOLTSTAT Raw Interrupt Status
  124. #define FLASH_FCRIS_ERIS 0x00000004 // EEPROM Raw Interrupt Status
  125. #define FLASH_FCRIS_PRIS 0x00000002 // Programming Raw Interrupt Status
  126. #define FLASH_FCRIS_ARIS 0x00000001 // Access Raw Interrupt Status
  127. //*****************************************************************************
  128. //
  129. // The following are defines for the bit fields in the FLASH_FCIM register.
  130. //
  131. //*****************************************************************************
  132. #define FLASH_FCIM_PROGMASK 0x00002000 // PROGVER Interrupt Mask
  133. #define FLASH_FCIM_ERMASK 0x00000800 // ERVER Interrupt Mask
  134. #define FLASH_FCIM_INVDMASK 0x00000400 // Invalid Data Interrupt Mask
  135. #define FLASH_FCIM_VOLTMASK 0x00000200 // VOLT Interrupt Mask
  136. #define FLASH_FCIM_EMASK 0x00000004 // EEPROM Interrupt Mask
  137. #define FLASH_FCIM_PMASK 0x00000002 // Programming Interrupt Mask
  138. #define FLASH_FCIM_AMASK 0x00000001 // Access Interrupt Mask
  139. //*****************************************************************************
  140. //
  141. // The following are defines for the bit fields in the FLASH_FCMISC register.
  142. //
  143. //*****************************************************************************
  144. #define FLASH_FCMISC_PROGMISC 0x00002000 // PROGVER Masked Interrupt Status
  145. // and Clear
  146. #define FLASH_FCMISC_ERMISC 0x00000800 // ERVER Masked Interrupt Status
  147. // and Clear
  148. #define FLASH_FCMISC_INVDMISC 0x00000400 // Invalid Data Masked Interrupt
  149. // Status and Clear
  150. #define FLASH_FCMISC_VOLTMISC 0x00000200 // VOLT Masked Interrupt Status and
  151. // Clear
  152. #define FLASH_FCMISC_EMISC 0x00000004 // EEPROM Masked Interrupt Status
  153. // and Clear
  154. #define FLASH_FCMISC_PMISC 0x00000002 // Programming Masked Interrupt
  155. // Status and Clear
  156. #define FLASH_FCMISC_AMISC 0x00000001 // Access Masked Interrupt Status
  157. // and Clear
  158. //*****************************************************************************
  159. //
  160. // The following are defines for the bit fields in the FLASH_FMC2 register.
  161. //
  162. //*****************************************************************************
  163. #define FLASH_FMC2_WRKEY 0xA4420000 // FLASH write key
  164. #define FLASH_FMC2_WRBUF 0x00000001 // Buffered Flash Memory Write
  165. //*****************************************************************************
  166. //
  167. // The following are defines for the bit fields in the FLASH_FWBVAL register.
  168. //
  169. //*****************************************************************************
  170. #define FLASH_FWBVAL_FWB_M 0xFFFFFFFF // Flash Memory Write Buffer
  171. //*****************************************************************************
  172. //
  173. // The following are defines for the bit fields in the FLASH_FCTL register.
  174. //
  175. //*****************************************************************************
  176. #define FLASH_FCTL_USDACK 0x00000002 // User Shut Down Acknowledge
  177. #define FLASH_FCTL_USDREQ 0x00000001 // User Shut Down Request
  178. //*****************************************************************************
  179. //
  180. // The following are defines for the bit fields in the FLASH_FWBN register.
  181. //
  182. //*****************************************************************************
  183. #define FLASH_FWBN_DATA_M 0xFFFFFFFF // Data
  184. //*****************************************************************************
  185. //
  186. // The following are defines for the bit fields in the FLASH_FSIZE register.
  187. //
  188. //*****************************************************************************
  189. #define FLASH_FSIZE_SIZE_M 0x0000FFFF // Flash Size
  190. #define FLASH_FSIZE_SIZE_8KB 0x00000003 // 8 KB of Flash
  191. #define FLASH_FSIZE_SIZE_16KB 0x00000007 // 16 KB of Flash
  192. #define FLASH_FSIZE_SIZE_32KB 0x0000000F // 32 KB of Flash
  193. #define FLASH_FSIZE_SIZE_64KB 0x0000001F // 64 KB of Flash
  194. #define FLASH_FSIZE_SIZE_96KB 0x0000002F // 96 KB of Flash
  195. #define FLASH_FSIZE_SIZE_128KB 0x0000003F // 128 KB of Flash
  196. #define FLASH_FSIZE_SIZE_192KB 0x0000005F // 192 KB of Flash
  197. #define FLASH_FSIZE_SIZE_256KB 0x0000007F // 256 KB of Flash
  198. //*****************************************************************************
  199. //
  200. // The following are defines for the bit fields in the FLASH_SSIZE register.
  201. //
  202. //*****************************************************************************
  203. #define FLASH_SSIZE_SIZE_M 0x0000FFFF // SRAM Size
  204. #define FLASH_SSIZE_SIZE_2KB 0x00000007 // 2 KB of SRAM
  205. #define FLASH_SSIZE_SIZE_4KB 0x0000000F // 4 KB of SRAM
  206. #define FLASH_SSIZE_SIZE_6KB 0x00000017 // 6 KB of SRAM
  207. #define FLASH_SSIZE_SIZE_8KB 0x0000001F // 8 KB of SRAM
  208. #define FLASH_SSIZE_SIZE_12KB 0x0000002F // 12 KB of SRAM
  209. #define FLASH_SSIZE_SIZE_16KB 0x0000003F // 16 KB of SRAM
  210. #define FLASH_SSIZE_SIZE_20KB 0x0000004F // 20 KB of SRAM
  211. #define FLASH_SSIZE_SIZE_24KB 0x0000005F // 24 KB of SRAM
  212. #define FLASH_SSIZE_SIZE_32KB 0x0000007F // 32 KB of SRAM
  213. //*****************************************************************************
  214. //
  215. // The following are defines for the bit fields in the FLASH_ROMSWMAP register.
  216. //
  217. //*****************************************************************************
  218. #define FLASH_ROMSWMAP_SAFERTOS 0x00000001 // SafeRTOS Present
  219. //*****************************************************************************
  220. //
  221. // The following are defines for the bit fields in the FLASH_RMCTL register.
  222. //
  223. //*****************************************************************************
  224. #define FLASH_RMCTL_BA 0x00000001 // Boot Alias
  225. //*****************************************************************************
  226. //
  227. // The following are defines for the bit fields in the FLASH_USECRL register.
  228. //
  229. //*****************************************************************************
  230. #define FLASH_USECRL_M 0x000000FF // Microsecond Reload Value
  231. #define FLASH_USECRL_S 0
  232. //*****************************************************************************
  233. //
  234. // The following are defines for the bit fields in the FLASH_USERDBG register.
  235. //
  236. //*****************************************************************************
  237. #define FLASH_USERDBG_NW 0x80000000 // User Debug Not Written
  238. #define FLASH_USERDBG_DATA_M 0x7FFFFFFC // User Data
  239. #define FLASH_USERDBG_DBG1 0x00000002 // Debug Control 1
  240. #define FLASH_USERDBG_DBG0 0x00000001 // Debug Control 0
  241. #define FLASH_USERDBG_DATA_S 2
  242. //*****************************************************************************
  243. //
  244. // The following are defines for the bit fields in the FLASH_BOOTCFG register.
  245. //
  246. //*****************************************************************************
  247. #define FLASH_BOOTCFG_NW 0x80000000 // Not Written
  248. #define FLASH_BOOTCFG_PORT_M 0x0000E000 // Boot GPIO Port
  249. #define FLASH_BOOTCFG_PORT_A 0x00000000 // Port A
  250. #define FLASH_BOOTCFG_PORT_B 0x00002000 // Port B
  251. #define FLASH_BOOTCFG_PORT_C 0x00004000 // Port C
  252. #define FLASH_BOOTCFG_PORT_D 0x00006000 // Port D
  253. #define FLASH_BOOTCFG_PORT_E 0x00008000 // Port E
  254. #define FLASH_BOOTCFG_PORT_F 0x0000A000 // Port F
  255. #define FLASH_BOOTCFG_PORT_G 0x0000C000 // Port G
  256. #define FLASH_BOOTCFG_PORT_H 0x0000E000 // Port H
  257. #define FLASH_BOOTCFG_PIN_M 0x00001C00 // Boot GPIO Pin
  258. #define FLASH_BOOTCFG_PIN_0 0x00000000 // Pin 0
  259. #define FLASH_BOOTCFG_PIN_1 0x00000400 // Pin 1
  260. #define FLASH_BOOTCFG_PIN_2 0x00000800 // Pin 2
  261. #define FLASH_BOOTCFG_PIN_3 0x00000C00 // Pin 3
  262. #define FLASH_BOOTCFG_PIN_4 0x00001000 // Pin 4
  263. #define FLASH_BOOTCFG_PIN_5 0x00001400 // Pin 5
  264. #define FLASH_BOOTCFG_PIN_6 0x00001800 // Pin 6
  265. #define FLASH_BOOTCFG_PIN_7 0x00001C00 // Pin 7
  266. #define FLASH_BOOTCFG_POL 0x00000200 // Boot GPIO Polarity
  267. #define FLASH_BOOTCFG_EN 0x00000100 // Boot GPIO Enable
  268. #define FLASH_BOOTCFG_DBG1 0x00000002 // Debug Control 1
  269. #define FLASH_BOOTCFG_DBG0 0x00000001 // Debug Control 0
  270. //*****************************************************************************
  271. //
  272. // The following are defines for the bit fields in the FLASH_USERREG0 register.
  273. //
  274. //*****************************************************************************
  275. #define FLASH_USERREG0_NW 0x80000000 // Not Written
  276. #define FLASH_USERREG0_DATA_M 0x7FFFFFFF // User Data
  277. #define FLASH_USERREG0_DATA_S 0
  278. //*****************************************************************************
  279. //
  280. // The following are defines for the bit fields in the FLASH_USERREG1 register.
  281. //
  282. //*****************************************************************************
  283. #define FLASH_USERREG1_NW 0x80000000 // Not Written
  284. #define FLASH_USERREG1_DATA_M 0x7FFFFFFF // User Data
  285. #define FLASH_USERREG1_DATA_S 0
  286. //*****************************************************************************
  287. //
  288. // The following are defines for the bit fields in the FLASH_USERREG2 register.
  289. //
  290. //*****************************************************************************
  291. #define FLASH_USERREG2_NW 0x80000000 // Not Written
  292. #define FLASH_USERREG2_DATA_M 0x7FFFFFFF // User Data
  293. #define FLASH_USERREG2_DATA_S 0
  294. //*****************************************************************************
  295. //
  296. // The following are defines for the bit fields in the FLASH_USERREG3 register.
  297. //
  298. //*****************************************************************************
  299. #define FLASH_USERREG3_NW 0x80000000 // Not Written
  300. #define FLASH_USERREG3_DATA_M 0x7FFFFFFF // User Data
  301. #define FLASH_USERREG3_DATA_S 0
  302. //*****************************************************************************
  303. //
  304. // The following are defines for the bit fields in the FLASH_FMPRE and
  305. // FLASH_FMPPE registers.
  306. //
  307. //*****************************************************************************
  308. #define FLASH_FMP_BLOCK_31 0x80000000 // Enable for block 31
  309. #define FLASH_FMP_BLOCK_30 0x40000000 // Enable for block 30
  310. #define FLASH_FMP_BLOCK_29 0x20000000 // Enable for block 29
  311. #define FLASH_FMP_BLOCK_28 0x10000000 // Enable for block 28
  312. #define FLASH_FMP_BLOCK_27 0x08000000 // Enable for block 27
  313. #define FLASH_FMP_BLOCK_26 0x04000000 // Enable for block 26
  314. #define FLASH_FMP_BLOCK_25 0x02000000 // Enable for block 25
  315. #define FLASH_FMP_BLOCK_24 0x01000000 // Enable for block 24
  316. #define FLASH_FMP_BLOCK_23 0x00800000 // Enable for block 23
  317. #define FLASH_FMP_BLOCK_22 0x00400000 // Enable for block 22
  318. #define FLASH_FMP_BLOCK_21 0x00200000 // Enable for block 21
  319. #define FLASH_FMP_BLOCK_20 0x00100000 // Enable for block 20
  320. #define FLASH_FMP_BLOCK_19 0x00080000 // Enable for block 19
  321. #define FLASH_FMP_BLOCK_18 0x00040000 // Enable for block 18
  322. #define FLASH_FMP_BLOCK_17 0x00020000 // Enable for block 17
  323. #define FLASH_FMP_BLOCK_16 0x00010000 // Enable for block 16
  324. #define FLASH_FMP_BLOCK_15 0x00008000 // Enable for block 15
  325. #define FLASH_FMP_BLOCK_14 0x00004000 // Enable for block 14
  326. #define FLASH_FMP_BLOCK_13 0x00002000 // Enable for block 13
  327. #define FLASH_FMP_BLOCK_12 0x00001000 // Enable for block 12
  328. #define FLASH_FMP_BLOCK_11 0x00000800 // Enable for block 11
  329. #define FLASH_FMP_BLOCK_10 0x00000400 // Enable for block 10
  330. #define FLASH_FMP_BLOCK_9 0x00000200 // Enable for block 9
  331. #define FLASH_FMP_BLOCK_8 0x00000100 // Enable for block 8
  332. #define FLASH_FMP_BLOCK_7 0x00000080 // Enable for block 7
  333. #define FLASH_FMP_BLOCK_6 0x00000040 // Enable for block 6
  334. #define FLASH_FMP_BLOCK_5 0x00000020 // Enable for block 5
  335. #define FLASH_FMP_BLOCK_4 0x00000010 // Enable for block 4
  336. #define FLASH_FMP_BLOCK_3 0x00000008 // Enable for block 3
  337. #define FLASH_FMP_BLOCK_2 0x00000004 // Enable for block 2
  338. #define FLASH_FMP_BLOCK_1 0x00000002 // Enable for block 1
  339. #define FLASH_FMP_BLOCK_0 0x00000001 // Enable for block 0
  340. //*****************************************************************************
  341. //
  342. // The following are defines for the erase size of the FLASH block that is
  343. // erased by an erase operation, and the protect size is the size of the FLASH
  344. // block that is protected by each protection register.
  345. //
  346. //*****************************************************************************
  347. #define FLASH_PROTECT_SIZE 0x00000800
  348. #define FLASH_ERASE_SIZE 0x00000400
  349. //*****************************************************************************
  350. //
  351. // The following definitions are deprecated.
  352. //
  353. //*****************************************************************************
  354. #ifndef DEPRECATED
  355. //*****************************************************************************
  356. //
  357. // The following are deprecated defines for the FLASH register offsets.
  358. //
  359. //*****************************************************************************
  360. #define FLASH_RMVER 0x400FE0F4 // ROM Version Register
  361. //*****************************************************************************
  362. //
  363. // The following are deprecated defines for the bit fields in the FLASH_FMC
  364. // register.
  365. //
  366. //*****************************************************************************
  367. #define FLASH_FMC_WRKEY_MASK 0xFFFF0000 // FLASH write key mask
  368. #define FLASH_FMC_WRKEY_M 0xFFFF0000 // Flash Memory Write Key
  369. #define FLASH_FMC_WRKEY_S 16
  370. //*****************************************************************************
  371. //
  372. // The following are deprecated defines for the bit fields in the FLASH_FCRIS
  373. // register.
  374. //
  375. //*****************************************************************************
  376. #define FLASH_FCRIS_PROGRAM 0x00000002 // Programming status
  377. #define FLASH_FCRIS_ACCESS 0x00000001 // Invalid access status
  378. //*****************************************************************************
  379. //
  380. // The following are deprecated defines for the bit fields in the FLASH_FCIM
  381. // register.
  382. //
  383. //*****************************************************************************
  384. #define FLASH_FCIM_PROGRAM 0x00000002 // Programming mask
  385. #define FLASH_FCIM_ACCESS 0x00000001 // Invalid access mask
  386. //*****************************************************************************
  387. //
  388. // The following are deprecated defines for the bit fields in the FLASH_FCMISC
  389. // register.
  390. //
  391. //*****************************************************************************
  392. #define FLASH_FCMISC_PROGRAM 0x00000002 // Programming status
  393. #define FLASH_FCMISC_ACCESS 0x00000001 // Invalid access status
  394. //*****************************************************************************
  395. //
  396. // The following are deprecated defines for the bit fields in the FLASH_RMVER
  397. // register.
  398. //
  399. //*****************************************************************************
  400. #define FLASH_RMVER_CONT_M 0xFF000000 // ROM Contents
  401. #define FLASH_RMVER_CONT_LM 0x00000000 // Stellaris Boot Loader &
  402. // DriverLib
  403. #define FLASH_RMVER_CONT_LM_AES 0x02000000 // Stellaris Boot Loader &
  404. // DriverLib with AES
  405. #define FLASH_RMVER_CONT_LM_AES_SAFERTOS \
  406. 0x03000000 // Stellaris Boot Loader &
  407. // DriverLib with AES and SAFERTOS
  408. #define FLASH_RMVER_CONT_LM_AES2 \
  409. 0x05000000 // Stellaris Boot Loader &
  410. // DriverLib with AES
  411. #define FLASH_RMVER_VER_M 0x0000FF00 // ROM Version
  412. #define FLASH_RMVER_REV_M 0x000000FF // ROM Revision
  413. #define FLASH_RMVER_VER_S 8
  414. #define FLASH_RMVER_REV_S 0
  415. //*****************************************************************************
  416. //
  417. // The following are deprecated defines for the bit fields in the FLASH_USECRL
  418. // register.
  419. //
  420. //*****************************************************************************
  421. #define FLASH_USECRL_MASK 0x000000FF // Clock per uSec
  422. #define FLASH_USECRL_SHIFT 0
  423. #endif
  424. #endif // __HW_FLASH_H__