hw_nvic.h 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027
  1. //*****************************************************************************
  2. //
  3. // hw_nvic.h - Macros used when accessing the NVIC hardware.
  4. //
  5. // Copyright (c) 2005-2009 Luminary Micro, Inc. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Luminary Micro, Inc. (LMI) is supplying this software for use solely and
  9. // exclusively on LMI's microcontroller products.
  10. //
  11. // The software is owned by LMI and/or its suppliers, and is protected under
  12. // applicable copyright laws. All rights are reserved. You may not combine
  13. // this software with "viral" open-source software in order to form a larger
  14. // program. Any use in violation of the foregoing restrictions may subject
  15. // the user to criminal sanctions under applicable laws, as well as to civil
  16. // liability for the breach of the terms and conditions of this license.
  17. //
  18. // THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
  19. // OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
  20. // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
  21. // LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
  22. // CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
  23. //
  24. // This is part of revision 4694 of the Stellaris Firmware Development Package.
  25. //
  26. //*****************************************************************************
  27. #ifndef __HW_NVIC_H__
  28. #define __HW_NVIC_H__
  29. //*****************************************************************************
  30. //
  31. // The following are defines for the NVIC register addresses.
  32. //
  33. //*****************************************************************************
  34. #define NVIC_INT_TYPE 0xE000E004 // Interrupt Controller Type Reg.
  35. #define NVIC_ST_CTRL 0xE000E010 // SysTick Control and Status Reg.
  36. #define NVIC_ST_RELOAD 0xE000E014 // SysTick Reload Value Register
  37. #define NVIC_ST_CURRENT 0xE000E018 // SysTick Current Value Register
  38. #define NVIC_ST_CAL 0xE000E01C // SysTick Calibration Value Reg.
  39. #define NVIC_EN0 0xE000E100 // IRQ 0 to 31 Set Enable Register
  40. #define NVIC_EN1 0xE000E104 // IRQ 32 to 63 Set Enable Register
  41. #define NVIC_DIS0 0xE000E180 // IRQ 0 to 31 Clear Enable Reg.
  42. #define NVIC_DIS1 0xE000E184 // IRQ 32 to 63 Clear Enable Reg.
  43. #define NVIC_PEND0 0xE000E200 // IRQ 0 to 31 Set Pending Register
  44. #define NVIC_PEND1 0xE000E204 // IRQ 32 to 63 Set Pending Reg.
  45. #define NVIC_UNPEND0 0xE000E280 // IRQ 0 to 31 Clear Pending Reg.
  46. #define NVIC_UNPEND1 0xE000E284 // IRQ 32 to 63 Clear Pending Reg.
  47. #define NVIC_ACTIVE0 0xE000E300 // IRQ 0 to 31 Active Register
  48. #define NVIC_ACTIVE1 0xE000E304 // IRQ 32 to 63 Active Register
  49. #define NVIC_PRI0 0xE000E400 // IRQ 0 to 3 Priority Register
  50. #define NVIC_PRI1 0xE000E404 // IRQ 4 to 7 Priority Register
  51. #define NVIC_PRI2 0xE000E408 // IRQ 8 to 11 Priority Register
  52. #define NVIC_PRI3 0xE000E40C // IRQ 12 to 15 Priority Register
  53. #define NVIC_PRI4 0xE000E410 // IRQ 16 to 19 Priority Register
  54. #define NVIC_PRI5 0xE000E414 // IRQ 20 to 23 Priority Register
  55. #define NVIC_PRI6 0xE000E418 // IRQ 24 to 27 Priority Register
  56. #define NVIC_PRI7 0xE000E41C // IRQ 28 to 31 Priority Register
  57. #define NVIC_PRI8 0xE000E420 // IRQ 32 to 35 Priority Register
  58. #define NVIC_PRI9 0xE000E424 // IRQ 36 to 39 Priority Register
  59. #define NVIC_PRI10 0xE000E428 // IRQ 40 to 43 Priority Register
  60. #define NVIC_PRI11 0xE000E42C // IRQ 44 to 47 Priority Register
  61. #define NVIC_PRI12 0xE000E430 // IRQ 48 to 51 Priority Register
  62. #define NVIC_PRI13 0xE000E434 // IRQ 52 to 55 Priority Register
  63. #define NVIC_CPUID 0xE000ED00 // CPUID Base Register
  64. #define NVIC_INT_CTRL 0xE000ED04 // Interrupt Control State Register
  65. #define NVIC_VTABLE 0xE000ED08 // Vector Table Offset Register
  66. #define NVIC_APINT 0xE000ED0C // App. Int & Reset Control Reg.
  67. #define NVIC_SYS_CTRL 0xE000ED10 // System Control Register
  68. #define NVIC_CFG_CTRL 0xE000ED14 // Configuration Control Register
  69. #define NVIC_SYS_PRI1 0xE000ED18 // Sys. Handlers 4 to 7 Priority
  70. #define NVIC_SYS_PRI2 0xE000ED1C // Sys. Handlers 8 to 11 Priority
  71. #define NVIC_SYS_PRI3 0xE000ED20 // Sys. Handlers 12 to 15 Priority
  72. #define NVIC_SYS_HND_CTRL 0xE000ED24 // System Handler Control and State
  73. #define NVIC_FAULT_STAT 0xE000ED28 // Configurable Fault Status Reg.
  74. #define NVIC_HFAULT_STAT 0xE000ED2C // Hard Fault Status Register
  75. #define NVIC_DEBUG_STAT 0xE000ED30 // Debug Status Register
  76. #define NVIC_MM_ADDR 0xE000ED34 // Mem Manage Address Register
  77. #define NVIC_FAULT_ADDR 0xE000ED38 // Bus Fault Address Register
  78. #define NVIC_MPU_TYPE 0xE000ED90 // MPU Type Register
  79. #define NVIC_MPU_CTRL 0xE000ED94 // MPU Control Register
  80. #define NVIC_MPU_NUMBER 0xE000ED98 // MPU Region Number Register
  81. #define NVIC_MPU_BASE 0xE000ED9C // MPU Region Base Address Register
  82. #define NVIC_MPU_ATTR 0xE000EDA0 // MPU Region Attribute & Size Reg.
  83. #define NVIC_DBG_CTRL 0xE000EDF0 // Debug Control and Status Reg.
  84. #define NVIC_DBG_XFER 0xE000EDF4 // Debug Core Reg. Transfer Select
  85. #define NVIC_DBG_DATA 0xE000EDF8 // Debug Core Register Data
  86. #define NVIC_DBG_INT 0xE000EDFC // Debug Reset Interrupt Control
  87. #define NVIC_SW_TRIG 0xE000EF00 // Software Trigger Interrupt Reg.
  88. //*****************************************************************************
  89. //
  90. // The following are defines for the bit fields in the NVIC_INT_TYPE register.
  91. //
  92. //*****************************************************************************
  93. #define NVIC_INT_TYPE_LINES_M 0x0000001F // Number of interrupt lines (x32)
  94. #define NVIC_INT_TYPE_LINES_S 0
  95. //*****************************************************************************
  96. //
  97. // The following are defines for the bit fields in the NVIC_ST_CTRL register.
  98. //
  99. //*****************************************************************************
  100. #define NVIC_ST_CTRL_COUNT 0x00010000 // Count flag
  101. #define NVIC_ST_CTRL_CLK_SRC 0x00000004 // Clock Source
  102. #define NVIC_ST_CTRL_INTEN 0x00000002 // Interrupt enable
  103. #define NVIC_ST_CTRL_ENABLE 0x00000001 // Counter mode
  104. //*****************************************************************************
  105. //
  106. // The following are defines for the bit fields in the NVIC_ST_RELOAD register.
  107. //
  108. //*****************************************************************************
  109. #define NVIC_ST_RELOAD_M 0x00FFFFFF // Counter load value
  110. #define NVIC_ST_RELOAD_S 0
  111. //*****************************************************************************
  112. //
  113. // The following are defines for the bit fields in the NVIC_ST_CURRENT
  114. // register.
  115. //
  116. //*****************************************************************************
  117. #define NVIC_ST_CURRENT_M 0x00FFFFFF // Counter current value
  118. #define NVIC_ST_CURRENT_S 0
  119. //*****************************************************************************
  120. //
  121. // The following are defines for the bit fields in the NVIC_ST_CAL register.
  122. //
  123. //*****************************************************************************
  124. #define NVIC_ST_CAL_NOREF 0x80000000 // No reference clock
  125. #define NVIC_ST_CAL_SKEW 0x40000000 // Clock skew
  126. #define NVIC_ST_CAL_ONEMS_M 0x00FFFFFF // 1ms reference value
  127. #define NVIC_ST_CAL_ONEMS_S 0
  128. //*****************************************************************************
  129. //
  130. // The following are defines for the bit fields in the NVIC_EN0 register.
  131. //
  132. //*****************************************************************************
  133. #define NVIC_EN0_INT31 0x80000000 // Interrupt 31 enable
  134. #define NVIC_EN0_INT30 0x40000000 // Interrupt 30 enable
  135. #define NVIC_EN0_INT29 0x20000000 // Interrupt 29 enable
  136. #define NVIC_EN0_INT28 0x10000000 // Interrupt 28 enable
  137. #define NVIC_EN0_INT27 0x08000000 // Interrupt 27 enable
  138. #define NVIC_EN0_INT26 0x04000000 // Interrupt 26 enable
  139. #define NVIC_EN0_INT25 0x02000000 // Interrupt 25 enable
  140. #define NVIC_EN0_INT24 0x01000000 // Interrupt 24 enable
  141. #define NVIC_EN0_INT23 0x00800000 // Interrupt 23 enable
  142. #define NVIC_EN0_INT22 0x00400000 // Interrupt 22 enable
  143. #define NVIC_EN0_INT21 0x00200000 // Interrupt 21 enable
  144. #define NVIC_EN0_INT20 0x00100000 // Interrupt 20 enable
  145. #define NVIC_EN0_INT19 0x00080000 // Interrupt 19 enable
  146. #define NVIC_EN0_INT18 0x00040000 // Interrupt 18 enable
  147. #define NVIC_EN0_INT17 0x00020000 // Interrupt 17 enable
  148. #define NVIC_EN0_INT16 0x00010000 // Interrupt 16 enable
  149. #define NVIC_EN0_INT15 0x00008000 // Interrupt 15 enable
  150. #define NVIC_EN0_INT14 0x00004000 // Interrupt 14 enable
  151. #define NVIC_EN0_INT13 0x00002000 // Interrupt 13 enable
  152. #define NVIC_EN0_INT12 0x00001000 // Interrupt 12 enable
  153. #define NVIC_EN0_INT11 0x00000800 // Interrupt 11 enable
  154. #define NVIC_EN0_INT10 0x00000400 // Interrupt 10 enable
  155. #define NVIC_EN0_INT9 0x00000200 // Interrupt 9 enable
  156. #define NVIC_EN0_INT8 0x00000100 // Interrupt 8 enable
  157. #define NVIC_EN0_INT7 0x00000080 // Interrupt 7 enable
  158. #define NVIC_EN0_INT6 0x00000040 // Interrupt 6 enable
  159. #define NVIC_EN0_INT5 0x00000020 // Interrupt 5 enable
  160. #define NVIC_EN0_INT4 0x00000010 // Interrupt 4 enable
  161. #define NVIC_EN0_INT3 0x00000008 // Interrupt 3 enable
  162. #define NVIC_EN0_INT2 0x00000004 // Interrupt 2 enable
  163. #define NVIC_EN0_INT1 0x00000002 // Interrupt 1 enable
  164. #define NVIC_EN0_INT0 0x00000001 // Interrupt 0 enable
  165. //*****************************************************************************
  166. //
  167. // The following are defines for the bit fields in the NVIC_EN1 register.
  168. //
  169. //*****************************************************************************
  170. #define NVIC_EN1_INT59 0x08000000 // Interrupt 59 enable
  171. #define NVIC_EN1_INT58 0x04000000 // Interrupt 58 enable
  172. #define NVIC_EN1_INT57 0x02000000 // Interrupt 57 enable
  173. #define NVIC_EN1_INT56 0x01000000 // Interrupt 56 enable
  174. #define NVIC_EN1_INT55 0x00800000 // Interrupt 55 enable
  175. #define NVIC_EN1_INT54 0x00400000 // Interrupt 54 enable
  176. #define NVIC_EN1_INT53 0x00200000 // Interrupt 53 enable
  177. #define NVIC_EN1_INT52 0x00100000 // Interrupt 52 enable
  178. #define NVIC_EN1_INT51 0x00080000 // Interrupt 51 enable
  179. #define NVIC_EN1_INT50 0x00040000 // Interrupt 50 enable
  180. #define NVIC_EN1_INT49 0x00020000 // Interrupt 49 enable
  181. #define NVIC_EN1_INT48 0x00010000 // Interrupt 48 enable
  182. #define NVIC_EN1_INT47 0x00008000 // Interrupt 47 enable
  183. #define NVIC_EN1_INT46 0x00004000 // Interrupt 46 enable
  184. #define NVIC_EN1_INT45 0x00002000 // Interrupt 45 enable
  185. #define NVIC_EN1_INT44 0x00001000 // Interrupt 44 enable
  186. #define NVIC_EN1_INT43 0x00000800 // Interrupt 43 enable
  187. #define NVIC_EN1_INT42 0x00000400 // Interrupt 42 enable
  188. #define NVIC_EN1_INT41 0x00000200 // Interrupt 41 enable
  189. #define NVIC_EN1_INT40 0x00000100 // Interrupt 40 enable
  190. #define NVIC_EN1_INT39 0x00000080 // Interrupt 39 enable
  191. #define NVIC_EN1_INT38 0x00000040 // Interrupt 38 enable
  192. #define NVIC_EN1_INT37 0x00000020 // Interrupt 37 enable
  193. #define NVIC_EN1_INT36 0x00000010 // Interrupt 36 enable
  194. #define NVIC_EN1_INT35 0x00000008 // Interrupt 35 enable
  195. #define NVIC_EN1_INT34 0x00000004 // Interrupt 34 enable
  196. #define NVIC_EN1_INT33 0x00000002 // Interrupt 33 enable
  197. #define NVIC_EN1_INT32 0x00000001 // Interrupt 32 enable
  198. //*****************************************************************************
  199. //
  200. // The following are defines for the bit fields in the NVIC_DIS0 register.
  201. //
  202. //*****************************************************************************
  203. #define NVIC_DIS0_INT31 0x80000000 // Interrupt 31 disable
  204. #define NVIC_DIS0_INT30 0x40000000 // Interrupt 30 disable
  205. #define NVIC_DIS0_INT29 0x20000000 // Interrupt 29 disable
  206. #define NVIC_DIS0_INT28 0x10000000 // Interrupt 28 disable
  207. #define NVIC_DIS0_INT27 0x08000000 // Interrupt 27 disable
  208. #define NVIC_DIS0_INT26 0x04000000 // Interrupt 26 disable
  209. #define NVIC_DIS0_INT25 0x02000000 // Interrupt 25 disable
  210. #define NVIC_DIS0_INT24 0x01000000 // Interrupt 24 disable
  211. #define NVIC_DIS0_INT23 0x00800000 // Interrupt 23 disable
  212. #define NVIC_DIS0_INT22 0x00400000 // Interrupt 22 disable
  213. #define NVIC_DIS0_INT21 0x00200000 // Interrupt 21 disable
  214. #define NVIC_DIS0_INT20 0x00100000 // Interrupt 20 disable
  215. #define NVIC_DIS0_INT19 0x00080000 // Interrupt 19 disable
  216. #define NVIC_DIS0_INT18 0x00040000 // Interrupt 18 disable
  217. #define NVIC_DIS0_INT17 0x00020000 // Interrupt 17 disable
  218. #define NVIC_DIS0_INT16 0x00010000 // Interrupt 16 disable
  219. #define NVIC_DIS0_INT15 0x00008000 // Interrupt 15 disable
  220. #define NVIC_DIS0_INT14 0x00004000 // Interrupt 14 disable
  221. #define NVIC_DIS0_INT13 0x00002000 // Interrupt 13 disable
  222. #define NVIC_DIS0_INT12 0x00001000 // Interrupt 12 disable
  223. #define NVIC_DIS0_INT11 0x00000800 // Interrupt 11 disable
  224. #define NVIC_DIS0_INT10 0x00000400 // Interrupt 10 disable
  225. #define NVIC_DIS0_INT9 0x00000200 // Interrupt 9 disable
  226. #define NVIC_DIS0_INT8 0x00000100 // Interrupt 8 disable
  227. #define NVIC_DIS0_INT7 0x00000080 // Interrupt 7 disable
  228. #define NVIC_DIS0_INT6 0x00000040 // Interrupt 6 disable
  229. #define NVIC_DIS0_INT5 0x00000020 // Interrupt 5 disable
  230. #define NVIC_DIS0_INT4 0x00000010 // Interrupt 4 disable
  231. #define NVIC_DIS0_INT3 0x00000008 // Interrupt 3 disable
  232. #define NVIC_DIS0_INT2 0x00000004 // Interrupt 2 disable
  233. #define NVIC_DIS0_INT1 0x00000002 // Interrupt 1 disable
  234. #define NVIC_DIS0_INT0 0x00000001 // Interrupt 0 disable
  235. //*****************************************************************************
  236. //
  237. // The following are defines for the bit fields in the NVIC_DIS1 register.
  238. //
  239. //*****************************************************************************
  240. #define NVIC_DIS1_INT59 0x08000000 // Interrupt 59 disable
  241. #define NVIC_DIS1_INT58 0x04000000 // Interrupt 58 disable
  242. #define NVIC_DIS1_INT57 0x02000000 // Interrupt 57 disable
  243. #define NVIC_DIS1_INT56 0x01000000 // Interrupt 56 disable
  244. #define NVIC_DIS1_INT55 0x00800000 // Interrupt 55 disable
  245. #define NVIC_DIS1_INT54 0x00400000 // Interrupt 54 disable
  246. #define NVIC_DIS1_INT53 0x00200000 // Interrupt 53 disable
  247. #define NVIC_DIS1_INT52 0x00100000 // Interrupt 52 disable
  248. #define NVIC_DIS1_INT51 0x00080000 // Interrupt 51 disable
  249. #define NVIC_DIS1_INT50 0x00040000 // Interrupt 50 disable
  250. #define NVIC_DIS1_INT49 0x00020000 // Interrupt 49 disable
  251. #define NVIC_DIS1_INT48 0x00010000 // Interrupt 48 disable
  252. #define NVIC_DIS1_INT47 0x00008000 // Interrupt 47 disable
  253. #define NVIC_DIS1_INT46 0x00004000 // Interrupt 46 disable
  254. #define NVIC_DIS1_INT45 0x00002000 // Interrupt 45 disable
  255. #define NVIC_DIS1_INT44 0x00001000 // Interrupt 44 disable
  256. #define NVIC_DIS1_INT43 0x00000800 // Interrupt 43 disable
  257. #define NVIC_DIS1_INT42 0x00000400 // Interrupt 42 disable
  258. #define NVIC_DIS1_INT41 0x00000200 // Interrupt 41 disable
  259. #define NVIC_DIS1_INT40 0x00000100 // Interrupt 40 disable
  260. #define NVIC_DIS1_INT39 0x00000080 // Interrupt 39 disable
  261. #define NVIC_DIS1_INT38 0x00000040 // Interrupt 38 disable
  262. #define NVIC_DIS1_INT37 0x00000020 // Interrupt 37 disable
  263. #define NVIC_DIS1_INT36 0x00000010 // Interrupt 36 disable
  264. #define NVIC_DIS1_INT35 0x00000008 // Interrupt 35 disable
  265. #define NVIC_DIS1_INT34 0x00000004 // Interrupt 34 disable
  266. #define NVIC_DIS1_INT33 0x00000002 // Interrupt 33 disable
  267. #define NVIC_DIS1_INT32 0x00000001 // Interrupt 32 disable
  268. //*****************************************************************************
  269. //
  270. // The following are defines for the bit fields in the NVIC_PEND0 register.
  271. //
  272. //*****************************************************************************
  273. #define NVIC_PEND0_INT31 0x80000000 // Interrupt 31 pend
  274. #define NVIC_PEND0_INT30 0x40000000 // Interrupt 30 pend
  275. #define NVIC_PEND0_INT29 0x20000000 // Interrupt 29 pend
  276. #define NVIC_PEND0_INT28 0x10000000 // Interrupt 28 pend
  277. #define NVIC_PEND0_INT27 0x08000000 // Interrupt 27 pend
  278. #define NVIC_PEND0_INT26 0x04000000 // Interrupt 26 pend
  279. #define NVIC_PEND0_INT25 0x02000000 // Interrupt 25 pend
  280. #define NVIC_PEND0_INT24 0x01000000 // Interrupt 24 pend
  281. #define NVIC_PEND0_INT23 0x00800000 // Interrupt 23 pend
  282. #define NVIC_PEND0_INT22 0x00400000 // Interrupt 22 pend
  283. #define NVIC_PEND0_INT21 0x00200000 // Interrupt 21 pend
  284. #define NVIC_PEND0_INT20 0x00100000 // Interrupt 20 pend
  285. #define NVIC_PEND0_INT19 0x00080000 // Interrupt 19 pend
  286. #define NVIC_PEND0_INT18 0x00040000 // Interrupt 18 pend
  287. #define NVIC_PEND0_INT17 0x00020000 // Interrupt 17 pend
  288. #define NVIC_PEND0_INT16 0x00010000 // Interrupt 16 pend
  289. #define NVIC_PEND0_INT15 0x00008000 // Interrupt 15 pend
  290. #define NVIC_PEND0_INT14 0x00004000 // Interrupt 14 pend
  291. #define NVIC_PEND0_INT13 0x00002000 // Interrupt 13 pend
  292. #define NVIC_PEND0_INT12 0x00001000 // Interrupt 12 pend
  293. #define NVIC_PEND0_INT11 0x00000800 // Interrupt 11 pend
  294. #define NVIC_PEND0_INT10 0x00000400 // Interrupt 10 pend
  295. #define NVIC_PEND0_INT9 0x00000200 // Interrupt 9 pend
  296. #define NVIC_PEND0_INT8 0x00000100 // Interrupt 8 pend
  297. #define NVIC_PEND0_INT7 0x00000080 // Interrupt 7 pend
  298. #define NVIC_PEND0_INT6 0x00000040 // Interrupt 6 pend
  299. #define NVIC_PEND0_INT5 0x00000020 // Interrupt 5 pend
  300. #define NVIC_PEND0_INT4 0x00000010 // Interrupt 4 pend
  301. #define NVIC_PEND0_INT3 0x00000008 // Interrupt 3 pend
  302. #define NVIC_PEND0_INT2 0x00000004 // Interrupt 2 pend
  303. #define NVIC_PEND0_INT1 0x00000002 // Interrupt 1 pend
  304. #define NVIC_PEND0_INT0 0x00000001 // Interrupt 0 pend
  305. //*****************************************************************************
  306. //
  307. // The following are defines for the bit fields in the NVIC_PEND1 register.
  308. //
  309. //*****************************************************************************
  310. #define NVIC_PEND1_INT59 0x08000000 // Interrupt 59 pend
  311. #define NVIC_PEND1_INT58 0x04000000 // Interrupt 58 pend
  312. #define NVIC_PEND1_INT57 0x02000000 // Interrupt 57 pend
  313. #define NVIC_PEND1_INT56 0x01000000 // Interrupt 56 pend
  314. #define NVIC_PEND1_INT55 0x00800000 // Interrupt 55 pend
  315. #define NVIC_PEND1_INT54 0x00400000 // Interrupt 54 pend
  316. #define NVIC_PEND1_INT53 0x00200000 // Interrupt 53 pend
  317. #define NVIC_PEND1_INT52 0x00100000 // Interrupt 52 pend
  318. #define NVIC_PEND1_INT51 0x00080000 // Interrupt 51 pend
  319. #define NVIC_PEND1_INT50 0x00040000 // Interrupt 50 pend
  320. #define NVIC_PEND1_INT49 0x00020000 // Interrupt 49 pend
  321. #define NVIC_PEND1_INT48 0x00010000 // Interrupt 48 pend
  322. #define NVIC_PEND1_INT47 0x00008000 // Interrupt 47 pend
  323. #define NVIC_PEND1_INT46 0x00004000 // Interrupt 46 pend
  324. #define NVIC_PEND1_INT45 0x00002000 // Interrupt 45 pend
  325. #define NVIC_PEND1_INT44 0x00001000 // Interrupt 44 pend
  326. #define NVIC_PEND1_INT43 0x00000800 // Interrupt 43 pend
  327. #define NVIC_PEND1_INT42 0x00000400 // Interrupt 42 pend
  328. #define NVIC_PEND1_INT41 0x00000200 // Interrupt 41 pend
  329. #define NVIC_PEND1_INT40 0x00000100 // Interrupt 40 pend
  330. #define NVIC_PEND1_INT39 0x00000080 // Interrupt 39 pend
  331. #define NVIC_PEND1_INT38 0x00000040 // Interrupt 38 pend
  332. #define NVIC_PEND1_INT37 0x00000020 // Interrupt 37 pend
  333. #define NVIC_PEND1_INT36 0x00000010 // Interrupt 36 pend
  334. #define NVIC_PEND1_INT35 0x00000008 // Interrupt 35 pend
  335. #define NVIC_PEND1_INT34 0x00000004 // Interrupt 34 pend
  336. #define NVIC_PEND1_INT33 0x00000002 // Interrupt 33 pend
  337. #define NVIC_PEND1_INT32 0x00000001 // Interrupt 32 pend
  338. //*****************************************************************************
  339. //
  340. // The following are defines for the bit fields in the NVIC_UNPEND0 register.
  341. //
  342. //*****************************************************************************
  343. #define NVIC_UNPEND0_INT31 0x80000000 // Interrupt 31 unpend
  344. #define NVIC_UNPEND0_INT30 0x40000000 // Interrupt 30 unpend
  345. #define NVIC_UNPEND0_INT29 0x20000000 // Interrupt 29 unpend
  346. #define NVIC_UNPEND0_INT28 0x10000000 // Interrupt 28 unpend
  347. #define NVIC_UNPEND0_INT27 0x08000000 // Interrupt 27 unpend
  348. #define NVIC_UNPEND0_INT26 0x04000000 // Interrupt 26 unpend
  349. #define NVIC_UNPEND0_INT25 0x02000000 // Interrupt 25 unpend
  350. #define NVIC_UNPEND0_INT24 0x01000000 // Interrupt 24 unpend
  351. #define NVIC_UNPEND0_INT23 0x00800000 // Interrupt 23 unpend
  352. #define NVIC_UNPEND0_INT22 0x00400000 // Interrupt 22 unpend
  353. #define NVIC_UNPEND0_INT21 0x00200000 // Interrupt 21 unpend
  354. #define NVIC_UNPEND0_INT20 0x00100000 // Interrupt 20 unpend
  355. #define NVIC_UNPEND0_INT19 0x00080000 // Interrupt 19 unpend
  356. #define NVIC_UNPEND0_INT18 0x00040000 // Interrupt 18 unpend
  357. #define NVIC_UNPEND0_INT17 0x00020000 // Interrupt 17 unpend
  358. #define NVIC_UNPEND0_INT16 0x00010000 // Interrupt 16 unpend
  359. #define NVIC_UNPEND0_INT15 0x00008000 // Interrupt 15 unpend
  360. #define NVIC_UNPEND0_INT14 0x00004000 // Interrupt 14 unpend
  361. #define NVIC_UNPEND0_INT13 0x00002000 // Interrupt 13 unpend
  362. #define NVIC_UNPEND0_INT12 0x00001000 // Interrupt 12 unpend
  363. #define NVIC_UNPEND0_INT11 0x00000800 // Interrupt 11 unpend
  364. #define NVIC_UNPEND0_INT10 0x00000400 // Interrupt 10 unpend
  365. #define NVIC_UNPEND0_INT9 0x00000200 // Interrupt 9 unpend
  366. #define NVIC_UNPEND0_INT8 0x00000100 // Interrupt 8 unpend
  367. #define NVIC_UNPEND0_INT7 0x00000080 // Interrupt 7 unpend
  368. #define NVIC_UNPEND0_INT6 0x00000040 // Interrupt 6 unpend
  369. #define NVIC_UNPEND0_INT5 0x00000020 // Interrupt 5 unpend
  370. #define NVIC_UNPEND0_INT4 0x00000010 // Interrupt 4 unpend
  371. #define NVIC_UNPEND0_INT3 0x00000008 // Interrupt 3 unpend
  372. #define NVIC_UNPEND0_INT2 0x00000004 // Interrupt 2 unpend
  373. #define NVIC_UNPEND0_INT1 0x00000002 // Interrupt 1 unpend
  374. #define NVIC_UNPEND0_INT0 0x00000001 // Interrupt 0 unpend
  375. //*****************************************************************************
  376. //
  377. // The following are defines for the bit fields in the NVIC_UNPEND1 register.
  378. //
  379. //*****************************************************************************
  380. #define NVIC_UNPEND1_INT59 0x08000000 // Interrupt 59 unpend
  381. #define NVIC_UNPEND1_INT58 0x04000000 // Interrupt 58 unpend
  382. #define NVIC_UNPEND1_INT57 0x02000000 // Interrupt 57 unpend
  383. #define NVIC_UNPEND1_INT56 0x01000000 // Interrupt 56 unpend
  384. #define NVIC_UNPEND1_INT55 0x00800000 // Interrupt 55 unpend
  385. #define NVIC_UNPEND1_INT54 0x00400000 // Interrupt 54 unpend
  386. #define NVIC_UNPEND1_INT53 0x00200000 // Interrupt 53 unpend
  387. #define NVIC_UNPEND1_INT52 0x00100000 // Interrupt 52 unpend
  388. #define NVIC_UNPEND1_INT51 0x00080000 // Interrupt 51 unpend
  389. #define NVIC_UNPEND1_INT50 0x00040000 // Interrupt 50 unpend
  390. #define NVIC_UNPEND1_INT49 0x00020000 // Interrupt 49 unpend
  391. #define NVIC_UNPEND1_INT48 0x00010000 // Interrupt 48 unpend
  392. #define NVIC_UNPEND1_INT47 0x00008000 // Interrupt 47 unpend
  393. #define NVIC_UNPEND1_INT46 0x00004000 // Interrupt 46 unpend
  394. #define NVIC_UNPEND1_INT45 0x00002000 // Interrupt 45 unpend
  395. #define NVIC_UNPEND1_INT44 0x00001000 // Interrupt 44 unpend
  396. #define NVIC_UNPEND1_INT43 0x00000800 // Interrupt 43 unpend
  397. #define NVIC_UNPEND1_INT42 0x00000400 // Interrupt 42 unpend
  398. #define NVIC_UNPEND1_INT41 0x00000200 // Interrupt 41 unpend
  399. #define NVIC_UNPEND1_INT40 0x00000100 // Interrupt 40 unpend
  400. #define NVIC_UNPEND1_INT39 0x00000080 // Interrupt 39 unpend
  401. #define NVIC_UNPEND1_INT38 0x00000040 // Interrupt 38 unpend
  402. #define NVIC_UNPEND1_INT37 0x00000020 // Interrupt 37 unpend
  403. #define NVIC_UNPEND1_INT36 0x00000010 // Interrupt 36 unpend
  404. #define NVIC_UNPEND1_INT35 0x00000008 // Interrupt 35 unpend
  405. #define NVIC_UNPEND1_INT34 0x00000004 // Interrupt 34 unpend
  406. #define NVIC_UNPEND1_INT33 0x00000002 // Interrupt 33 unpend
  407. #define NVIC_UNPEND1_INT32 0x00000001 // Interrupt 32 unpend
  408. //*****************************************************************************
  409. //
  410. // The following are defines for the bit fields in the NVIC_ACTIVE0 register.
  411. //
  412. //*****************************************************************************
  413. #define NVIC_ACTIVE0_INT31 0x80000000 // Interrupt 31 active
  414. #define NVIC_ACTIVE0_INT30 0x40000000 // Interrupt 30 active
  415. #define NVIC_ACTIVE0_INT29 0x20000000 // Interrupt 29 active
  416. #define NVIC_ACTIVE0_INT28 0x10000000 // Interrupt 28 active
  417. #define NVIC_ACTIVE0_INT27 0x08000000 // Interrupt 27 active
  418. #define NVIC_ACTIVE0_INT26 0x04000000 // Interrupt 26 active
  419. #define NVIC_ACTIVE0_INT25 0x02000000 // Interrupt 25 active
  420. #define NVIC_ACTIVE0_INT24 0x01000000 // Interrupt 24 active
  421. #define NVIC_ACTIVE0_INT23 0x00800000 // Interrupt 23 active
  422. #define NVIC_ACTIVE0_INT22 0x00400000 // Interrupt 22 active
  423. #define NVIC_ACTIVE0_INT21 0x00200000 // Interrupt 21 active
  424. #define NVIC_ACTIVE0_INT20 0x00100000 // Interrupt 20 active
  425. #define NVIC_ACTIVE0_INT19 0x00080000 // Interrupt 19 active
  426. #define NVIC_ACTIVE0_INT18 0x00040000 // Interrupt 18 active
  427. #define NVIC_ACTIVE0_INT17 0x00020000 // Interrupt 17 active
  428. #define NVIC_ACTIVE0_INT16 0x00010000 // Interrupt 16 active
  429. #define NVIC_ACTIVE0_INT15 0x00008000 // Interrupt 15 active
  430. #define NVIC_ACTIVE0_INT14 0x00004000 // Interrupt 14 active
  431. #define NVIC_ACTIVE0_INT13 0x00002000 // Interrupt 13 active
  432. #define NVIC_ACTIVE0_INT12 0x00001000 // Interrupt 12 active
  433. #define NVIC_ACTIVE0_INT11 0x00000800 // Interrupt 11 active
  434. #define NVIC_ACTIVE0_INT10 0x00000400 // Interrupt 10 active
  435. #define NVIC_ACTIVE0_INT9 0x00000200 // Interrupt 9 active
  436. #define NVIC_ACTIVE0_INT8 0x00000100 // Interrupt 8 active
  437. #define NVIC_ACTIVE0_INT7 0x00000080 // Interrupt 7 active
  438. #define NVIC_ACTIVE0_INT6 0x00000040 // Interrupt 6 active
  439. #define NVIC_ACTIVE0_INT5 0x00000020 // Interrupt 5 active
  440. #define NVIC_ACTIVE0_INT4 0x00000010 // Interrupt 4 active
  441. #define NVIC_ACTIVE0_INT3 0x00000008 // Interrupt 3 active
  442. #define NVIC_ACTIVE0_INT2 0x00000004 // Interrupt 2 active
  443. #define NVIC_ACTIVE0_INT1 0x00000002 // Interrupt 1 active
  444. #define NVIC_ACTIVE0_INT0 0x00000001 // Interrupt 0 active
  445. //*****************************************************************************
  446. //
  447. // The following are defines for the bit fields in the NVIC_ACTIVE1 register.
  448. //
  449. //*****************************************************************************
  450. #define NVIC_ACTIVE1_INT59 0x08000000 // Interrupt 59 active
  451. #define NVIC_ACTIVE1_INT58 0x04000000 // Interrupt 58 active
  452. #define NVIC_ACTIVE1_INT57 0x02000000 // Interrupt 57 active
  453. #define NVIC_ACTIVE1_INT56 0x01000000 // Interrupt 56 active
  454. #define NVIC_ACTIVE1_INT55 0x00800000 // Interrupt 55 active
  455. #define NVIC_ACTIVE1_INT54 0x00400000 // Interrupt 54 active
  456. #define NVIC_ACTIVE1_INT53 0x00200000 // Interrupt 53 active
  457. #define NVIC_ACTIVE1_INT52 0x00100000 // Interrupt 52 active
  458. #define NVIC_ACTIVE1_INT51 0x00080000 // Interrupt 51 active
  459. #define NVIC_ACTIVE1_INT50 0x00040000 // Interrupt 50 active
  460. #define NVIC_ACTIVE1_INT49 0x00020000 // Interrupt 49 active
  461. #define NVIC_ACTIVE1_INT48 0x00010000 // Interrupt 48 active
  462. #define NVIC_ACTIVE1_INT47 0x00008000 // Interrupt 47 active
  463. #define NVIC_ACTIVE1_INT46 0x00004000 // Interrupt 46 active
  464. #define NVIC_ACTIVE1_INT45 0x00002000 // Interrupt 45 active
  465. #define NVIC_ACTIVE1_INT44 0x00001000 // Interrupt 44 active
  466. #define NVIC_ACTIVE1_INT43 0x00000800 // Interrupt 43 active
  467. #define NVIC_ACTIVE1_INT42 0x00000400 // Interrupt 42 active
  468. #define NVIC_ACTIVE1_INT41 0x00000200 // Interrupt 41 active
  469. #define NVIC_ACTIVE1_INT40 0x00000100 // Interrupt 40 active
  470. #define NVIC_ACTIVE1_INT39 0x00000080 // Interrupt 39 active
  471. #define NVIC_ACTIVE1_INT38 0x00000040 // Interrupt 38 active
  472. #define NVIC_ACTIVE1_INT37 0x00000020 // Interrupt 37 active
  473. #define NVIC_ACTIVE1_INT36 0x00000010 // Interrupt 36 active
  474. #define NVIC_ACTIVE1_INT35 0x00000008 // Interrupt 35 active
  475. #define NVIC_ACTIVE1_INT34 0x00000004 // Interrupt 34 active
  476. #define NVIC_ACTIVE1_INT33 0x00000002 // Interrupt 33 active
  477. #define NVIC_ACTIVE1_INT32 0x00000001 // Interrupt 32 active
  478. //*****************************************************************************
  479. //
  480. // The following are defines for the bit fields in the NVIC_PRI0 register.
  481. //
  482. //*****************************************************************************
  483. #define NVIC_PRI0_INT3_M 0xFF000000 // Interrupt 3 priority mask
  484. #define NVIC_PRI0_INT2_M 0x00FF0000 // Interrupt 2 priority mask
  485. #define NVIC_PRI0_INT1_M 0x0000FF00 // Interrupt 1 priority mask
  486. #define NVIC_PRI0_INT0_M 0x000000FF // Interrupt 0 priority mask
  487. #define NVIC_PRI0_INT3_S 24
  488. #define NVIC_PRI0_INT2_S 16
  489. #define NVIC_PRI0_INT1_S 8
  490. #define NVIC_PRI0_INT0_S 0
  491. //*****************************************************************************
  492. //
  493. // The following are defines for the bit fields in the NVIC_PRI1 register.
  494. //
  495. //*****************************************************************************
  496. #define NVIC_PRI1_INT7_M 0xFF000000 // Interrupt 7 priority mask
  497. #define NVIC_PRI1_INT6_M 0x00FF0000 // Interrupt 6 priority mask
  498. #define NVIC_PRI1_INT5_M 0x0000FF00 // Interrupt 5 priority mask
  499. #define NVIC_PRI1_INT4_M 0x000000FF // Interrupt 4 priority mask
  500. #define NVIC_PRI1_INT7_S 24
  501. #define NVIC_PRI1_INT6_S 16
  502. #define NVIC_PRI1_INT5_S 8
  503. #define NVIC_PRI1_INT4_S 0
  504. //*****************************************************************************
  505. //
  506. // The following are defines for the bit fields in the NVIC_PRI2 register.
  507. //
  508. //*****************************************************************************
  509. #define NVIC_PRI2_INT11_M 0xFF000000 // Interrupt 11 priority mask
  510. #define NVIC_PRI2_INT10_M 0x00FF0000 // Interrupt 10 priority mask
  511. #define NVIC_PRI2_INT9_M 0x0000FF00 // Interrupt 9 priority mask
  512. #define NVIC_PRI2_INT8_M 0x000000FF // Interrupt 8 priority mask
  513. #define NVIC_PRI2_INT11_S 24
  514. #define NVIC_PRI2_INT10_S 16
  515. #define NVIC_PRI2_INT9_S 8
  516. #define NVIC_PRI2_INT8_S 0
  517. //*****************************************************************************
  518. //
  519. // The following are defines for the bit fields in the NVIC_PRI3 register.
  520. //
  521. //*****************************************************************************
  522. #define NVIC_PRI3_INT15_M 0xFF000000 // Interrupt 15 priority mask
  523. #define NVIC_PRI3_INT14_M 0x00FF0000 // Interrupt 14 priority mask
  524. #define NVIC_PRI3_INT13_M 0x0000FF00 // Interrupt 13 priority mask
  525. #define NVIC_PRI3_INT12_M 0x000000FF // Interrupt 12 priority mask
  526. #define NVIC_PRI3_INT15_S 24
  527. #define NVIC_PRI3_INT14_S 16
  528. #define NVIC_PRI3_INT13_S 8
  529. #define NVIC_PRI3_INT12_S 0
  530. //*****************************************************************************
  531. //
  532. // The following are defines for the bit fields in the NVIC_PRI4 register.
  533. //
  534. //*****************************************************************************
  535. #define NVIC_PRI4_INT19_M 0xFF000000 // Interrupt 19 priority mask
  536. #define NVIC_PRI4_INT18_M 0x00FF0000 // Interrupt 18 priority mask
  537. #define NVIC_PRI4_INT17_M 0x0000FF00 // Interrupt 17 priority mask
  538. #define NVIC_PRI4_INT16_M 0x000000FF // Interrupt 16 priority mask
  539. #define NVIC_PRI4_INT19_S 24
  540. #define NVIC_PRI4_INT18_S 16
  541. #define NVIC_PRI4_INT17_S 8
  542. #define NVIC_PRI4_INT16_S 0
  543. //*****************************************************************************
  544. //
  545. // The following are defines for the bit fields in the NVIC_PRI5 register.
  546. //
  547. //*****************************************************************************
  548. #define NVIC_PRI5_INT23_M 0xFF000000 // Interrupt 23 priority mask
  549. #define NVIC_PRI5_INT22_M 0x00FF0000 // Interrupt 22 priority mask
  550. #define NVIC_PRI5_INT21_M 0x0000FF00 // Interrupt 21 priority mask
  551. #define NVIC_PRI5_INT20_M 0x000000FF // Interrupt 20 priority mask
  552. #define NVIC_PRI5_INT23_S 24
  553. #define NVIC_PRI5_INT22_S 16
  554. #define NVIC_PRI5_INT21_S 8
  555. #define NVIC_PRI5_INT20_S 0
  556. //*****************************************************************************
  557. //
  558. // The following are defines for the bit fields in the NVIC_PRI6 register.
  559. //
  560. //*****************************************************************************
  561. #define NVIC_PRI6_INT27_M 0xFF000000 // Interrupt 27 priority mask
  562. #define NVIC_PRI6_INT26_M 0x00FF0000 // Interrupt 26 priority mask
  563. #define NVIC_PRI6_INT25_M 0x0000FF00 // Interrupt 25 priority mask
  564. #define NVIC_PRI6_INT24_M 0x000000FF // Interrupt 24 priority mask
  565. #define NVIC_PRI6_INT27_S 24
  566. #define NVIC_PRI6_INT26_S 16
  567. #define NVIC_PRI6_INT25_S 8
  568. #define NVIC_PRI6_INT24_S 0
  569. //*****************************************************************************
  570. //
  571. // The following are defines for the bit fields in the NVIC_PRI7 register.
  572. //
  573. //*****************************************************************************
  574. #define NVIC_PRI7_INT31_M 0xFF000000 // Interrupt 31 priority mask
  575. #define NVIC_PRI7_INT30_M 0x00FF0000 // Interrupt 30 priority mask
  576. #define NVIC_PRI7_INT29_M 0x0000FF00 // Interrupt 29 priority mask
  577. #define NVIC_PRI7_INT28_M 0x000000FF // Interrupt 28 priority mask
  578. #define NVIC_PRI7_INT31_S 24
  579. #define NVIC_PRI7_INT30_S 16
  580. #define NVIC_PRI7_INT29_S 8
  581. #define NVIC_PRI7_INT28_S 0
  582. //*****************************************************************************
  583. //
  584. // The following are defines for the bit fields in the NVIC_PRI8 register.
  585. //
  586. //*****************************************************************************
  587. #define NVIC_PRI8_INT35_M 0xFF000000 // Interrupt 35 priority mask
  588. #define NVIC_PRI8_INT34_M 0x00FF0000 // Interrupt 34 priority mask
  589. #define NVIC_PRI8_INT33_M 0x0000FF00 // Interrupt 33 priority mask
  590. #define NVIC_PRI8_INT32_M 0x000000FF // Interrupt 32 priority mask
  591. #define NVIC_PRI8_INT35_S 24
  592. #define NVIC_PRI8_INT34_S 16
  593. #define NVIC_PRI8_INT33_S 8
  594. #define NVIC_PRI8_INT32_S 0
  595. //*****************************************************************************
  596. //
  597. // The following are defines for the bit fields in the NVIC_PRI9 register.
  598. //
  599. //*****************************************************************************
  600. #define NVIC_PRI9_INT39_M 0xFF000000 // Interrupt 39 priority mask
  601. #define NVIC_PRI9_INT38_M 0x00FF0000 // Interrupt 38 priority mask
  602. #define NVIC_PRI9_INT37_M 0x0000FF00 // Interrupt 37 priority mask
  603. #define NVIC_PRI9_INT36_M 0x000000FF // Interrupt 36 priority mask
  604. #define NVIC_PRI9_INT39_S 24
  605. #define NVIC_PRI9_INT38_S 16
  606. #define NVIC_PRI9_INT37_S 8
  607. #define NVIC_PRI9_INT36_S 0
  608. //*****************************************************************************
  609. //
  610. // The following are defines for the bit fields in the NVIC_PRI10 register.
  611. //
  612. //*****************************************************************************
  613. #define NVIC_PRI10_INT43_M 0xFF000000 // Interrupt 43 priority mask
  614. #define NVIC_PRI10_INT42_M 0x00FF0000 // Interrupt 42 priority mask
  615. #define NVIC_PRI10_INT41_M 0x0000FF00 // Interrupt 41 priority mask
  616. #define NVIC_PRI10_INT40_M 0x000000FF // Interrupt 40 priority mask
  617. #define NVIC_PRI10_INT43_S 24
  618. #define NVIC_PRI10_INT42_S 16
  619. #define NVIC_PRI10_INT41_S 8
  620. #define NVIC_PRI10_INT40_S 0
  621. //*****************************************************************************
  622. //
  623. // The following are defines for the bit fields in the NVIC_CPUID register.
  624. //
  625. //*****************************************************************************
  626. #define NVIC_CPUID_IMP_M 0xFF000000 // Implementer
  627. #define NVIC_CPUID_VAR_M 0x00F00000 // Variant
  628. #define NVIC_CPUID_PARTNO_M 0x0000FFF0 // Processor part number
  629. #define NVIC_CPUID_REV_M 0x0000000F // Revision
  630. //*****************************************************************************
  631. //
  632. // The following are defines for the bit fields in the NVIC_INT_CTRL register.
  633. //
  634. //*****************************************************************************
  635. #define NVIC_INT_CTRL_NMI_SET 0x80000000 // Pend a NMI
  636. #define NVIC_INT_CTRL_PEND_SV 0x10000000 // Pend a PendSV
  637. #define NVIC_INT_CTRL_UNPEND_SV 0x08000000 // Unpend a PendSV
  638. #define NVIC_INT_CTRL_ISR_PRE 0x00800000 // Debug interrupt handling
  639. #define NVIC_INT_CTRL_ISR_PEND 0x00400000 // Debug interrupt pending
  640. #define NVIC_INT_CTRL_VEC_PEN_M 0x003FF000 // Highest pending exception
  641. #define NVIC_INT_CTRL_RET_BASE 0x00000800 // Return to base
  642. #define NVIC_INT_CTRL_VEC_ACT_M 0x000003FF // Current active exception
  643. #define NVIC_INT_CTRL_VEC_PEN_S 12
  644. #define NVIC_INT_CTRL_VEC_ACT_S 0
  645. //*****************************************************************************
  646. //
  647. // The following are defines for the bit fields in the NVIC_VTABLE register.
  648. //
  649. //*****************************************************************************
  650. #define NVIC_VTABLE_BASE 0x20000000 // Vector table base
  651. #define NVIC_VTABLE_OFFSET_M 0x1FFFFF00 // Vector table offset
  652. #define NVIC_VTABLE_OFFSET_S 8
  653. //*****************************************************************************
  654. //
  655. // The following are defines for the bit fields in the NVIC_APINT register.
  656. //
  657. //*****************************************************************************
  658. #define NVIC_APINT_VECTKEY_M 0xFFFF0000 // Vector key mask
  659. #define NVIC_APINT_VECTKEY 0x05FA0000 // Vector key
  660. #define NVIC_APINT_ENDIANESS 0x00008000 // Data endianess
  661. #define NVIC_APINT_PRIGROUP_M 0x00000700 // Priority group
  662. #define NVIC_APINT_PRIGROUP_0_8 0x00000700 // Priority group 0.8 split
  663. #define NVIC_APINT_PRIGROUP_1_7 0x00000600 // Priority group 1.7 split
  664. #define NVIC_APINT_PRIGROUP_2_6 0x00000500 // Priority group 2.6 split
  665. #define NVIC_APINT_PRIGROUP_3_5 0x00000400 // Priority group 3.5 split
  666. #define NVIC_APINT_PRIGROUP_4_4 0x00000300 // Priority group 4.4 split
  667. #define NVIC_APINT_PRIGROUP_5_3 0x00000200 // Priority group 5.3 split
  668. #define NVIC_APINT_PRIGROUP_6_2 0x00000100 // Priority group 6.2 split
  669. #define NVIC_APINT_SYSRESETREQ 0x00000004 // System reset request
  670. #define NVIC_APINT_VECT_CLR_ACT 0x00000002 // Clear active NMI/fault info
  671. #define NVIC_APINT_VECT_RESET 0x00000001 // System reset
  672. #define NVIC_APINT_PRIGROUP_7_1 0x00000000 // Priority group 7.1 split
  673. //*****************************************************************************
  674. //
  675. // The following are defines for the bit fields in the NVIC_SYS_CTRL register.
  676. //
  677. //*****************************************************************************
  678. #define NVIC_SYS_CTRL_SEVONPEND 0x00000010 // Wakeup on pend
  679. #define NVIC_SYS_CTRL_SLEEPDEEP 0x00000004 // Deep sleep enable
  680. #define NVIC_SYS_CTRL_SLEEPEXIT 0x00000002 // Sleep on ISR exit
  681. //*****************************************************************************
  682. //
  683. // The following are defines for the bit fields in the NVIC_CFG_CTRL register.
  684. //
  685. //*****************************************************************************
  686. #define NVIC_CFG_CTRL_BFHFNMIGN 0x00000100 // Ignore bus fault in NMI/fault
  687. #define NVIC_CFG_CTRL_DIV0 0x00000010 // Trap on divide by 0
  688. #define NVIC_CFG_CTRL_UNALIGNED 0x00000008 // Trap on unaligned access
  689. #define NVIC_CFG_CTRL_DEEP_PEND 0x00000004 // Allow deep interrupt trigger
  690. #define NVIC_CFG_CTRL_MAIN_PEND 0x00000002 // Allow main interrupt trigger
  691. #define NVIC_CFG_CTRL_BASE_THR 0x00000001 // Thread state control
  692. //*****************************************************************************
  693. //
  694. // The following are defines for the bit fields in the NVIC_SYS_PRI1 register.
  695. //
  696. //*****************************************************************************
  697. #define NVIC_SYS_PRI1_RES_M 0xFF000000 // Priority of reserved handler
  698. #define NVIC_SYS_PRI1_USAGE_M 0x00FF0000 // Priority of usage fault handler
  699. #define NVIC_SYS_PRI1_BUS_M 0x0000FF00 // Priority of bus fault handler
  700. #define NVIC_SYS_PRI1_MEM_M 0x000000FF // Priority of mem manage handler
  701. #define NVIC_SYS_PRI1_USAGE_S 16
  702. #define NVIC_SYS_PRI1_BUS_S 8
  703. #define NVIC_SYS_PRI1_MEM_S 0
  704. //*****************************************************************************
  705. //
  706. // The following are defines for the bit fields in the NVIC_SYS_PRI2 register.
  707. //
  708. //*****************************************************************************
  709. #define NVIC_SYS_PRI2_SVC_M 0xFF000000 // Priority of SVCall handler
  710. #define NVIC_SYS_PRI2_RES_M 0x00FFFFFF // Priority of reserved handlers
  711. #define NVIC_SYS_PRI2_SVC_S 24
  712. //*****************************************************************************
  713. //
  714. // The following are defines for the bit fields in the NVIC_SYS_PRI3 register.
  715. //
  716. //*****************************************************************************
  717. #define NVIC_SYS_PRI3_TICK_M 0xFF000000 // Priority of Sys Tick handler
  718. #define NVIC_SYS_PRI3_PENDSV_M 0x00FF0000 // Priority of PendSV handler
  719. #define NVIC_SYS_PRI3_RES_M 0x0000FF00 // Priority of reserved handler
  720. #define NVIC_SYS_PRI3_DEBUG_M 0x000000FF // Priority of debug handler
  721. #define NVIC_SYS_PRI3_TICK_S 24
  722. #define NVIC_SYS_PRI3_PENDSV_S 16
  723. #define NVIC_SYS_PRI3_DEBUG_S 0
  724. //*****************************************************************************
  725. //
  726. // The following are defines for the bit fields in the NVIC_SYS_HND_CTRL
  727. // register.
  728. //
  729. //*****************************************************************************
  730. #define NVIC_SYS_HND_CTRL_USAGE 0x00040000 // Usage fault enable
  731. #define NVIC_SYS_HND_CTRL_BUS 0x00020000 // Bus fault enable
  732. #define NVIC_SYS_HND_CTRL_MEM 0x00010000 // Mem manage fault enable
  733. #define NVIC_SYS_HND_CTRL_SVC 0x00008000 // SVCall is pended
  734. #define NVIC_SYS_HND_CTRL_BUSP 0x00004000 // Bus fault is pended
  735. #define NVIC_SYS_HND_CTRL_TICK 0x00000800 // Sys tick is active
  736. #define NVIC_SYS_HND_CTRL_PNDSV 0x00000400 // PendSV is active
  737. #define NVIC_SYS_HND_CTRL_MON 0x00000100 // Monitor is active
  738. #define NVIC_SYS_HND_CTRL_SVCA 0x00000080 // SVCall is active
  739. #define NVIC_SYS_HND_CTRL_USGA 0x00000008 // Usage fault is active
  740. #define NVIC_SYS_HND_CTRL_BUSA 0x00000002 // Bus fault is active
  741. #define NVIC_SYS_HND_CTRL_MEMA 0x00000001 // Mem manage is active
  742. //*****************************************************************************
  743. //
  744. // The following are defines for the bit fields in the NVIC_FAULT_STAT
  745. // register.
  746. //
  747. //*****************************************************************************
  748. #define NVIC_FAULT_STAT_DIV0 0x02000000 // Divide by zero fault
  749. #define NVIC_FAULT_STAT_UNALIGN 0x01000000 // Unaligned access fault
  750. #define NVIC_FAULT_STAT_NOCP 0x00080000 // No coprocessor fault
  751. #define NVIC_FAULT_STAT_INVPC 0x00040000 // Invalid PC fault
  752. #define NVIC_FAULT_STAT_INVSTAT 0x00020000 // Invalid state fault
  753. #define NVIC_FAULT_STAT_UNDEF 0x00010000 // Undefined instruction fault
  754. #define NVIC_FAULT_STAT_BFARV 0x00008000 // BFAR is valid
  755. #define NVIC_FAULT_STAT_BSTKE 0x00001000 // Stack bus fault
  756. #define NVIC_FAULT_STAT_BUSTKE 0x00000800 // Unstack bus fault
  757. #define NVIC_FAULT_STAT_IMPRE 0x00000400 // Imprecise data bus error
  758. #define NVIC_FAULT_STAT_PRECISE 0x00000200 // Precise data bus error
  759. #define NVIC_FAULT_STAT_IBUS 0x00000100 // Instruction bus fault
  760. #define NVIC_FAULT_STAT_MMARV 0x00000080 // MMAR is valid
  761. #define NVIC_FAULT_STAT_MSTKE 0x00000010 // Stack access violation
  762. #define NVIC_FAULT_STAT_MUSTKE 0x00000008 // Unstack access violation
  763. #define NVIC_FAULT_STAT_DERR 0x00000002 // Data access violation
  764. #define NVIC_FAULT_STAT_IERR 0x00000001 // Instruction access violation
  765. //*****************************************************************************
  766. //
  767. // The following are defines for the bit fields in the NVIC_HFAULT_STAT
  768. // register.
  769. //
  770. //*****************************************************************************
  771. #define NVIC_HFAULT_STAT_DBG 0x80000000 // Debug event
  772. #define NVIC_HFAULT_STAT_FORCED 0x40000000 // Cannot execute fault handler
  773. #define NVIC_HFAULT_STAT_VECT 0x00000002 // Vector table read fault
  774. //*****************************************************************************
  775. //
  776. // The following are defines for the bit fields in the NVIC_DEBUG_STAT
  777. // register.
  778. //
  779. //*****************************************************************************
  780. #define NVIC_DEBUG_STAT_EXTRNL 0x00000010 // EDBGRQ asserted
  781. #define NVIC_DEBUG_STAT_VCATCH 0x00000008 // Vector catch
  782. #define NVIC_DEBUG_STAT_DWTTRAP 0x00000004 // DWT match
  783. #define NVIC_DEBUG_STAT_BKPT 0x00000002 // Breakpoint instruction
  784. #define NVIC_DEBUG_STAT_HALTED 0x00000001 // Halt request
  785. //*****************************************************************************
  786. //
  787. // The following are defines for the bit fields in the NVIC_MM_ADDR register.
  788. //
  789. //*****************************************************************************
  790. #define NVIC_MM_ADDR_M 0xFFFFFFFF // Data fault address
  791. #define NVIC_MM_ADDR_S 0
  792. //*****************************************************************************
  793. //
  794. // The following are defines for the bit fields in the NVIC_FAULT_ADDR
  795. // register.
  796. //
  797. //*****************************************************************************
  798. #define NVIC_FAULT_ADDR_M 0xFFFFFFFF // Data bus fault address
  799. #define NVIC_FAULT_ADDR_S 0
  800. //*****************************************************************************
  801. //
  802. // The following are defines for the bit fields in the NVIC_MPU_TYPE register.
  803. //
  804. //*****************************************************************************
  805. #define NVIC_MPU_TYPE_IREGION_M 0x00FF0000 // Number of I regions
  806. #define NVIC_MPU_TYPE_DREGION_M 0x0000FF00 // Number of D regions
  807. #define NVIC_MPU_TYPE_SEPARATE 0x00000001 // Separate or unified MPU
  808. #define NVIC_MPU_TYPE_IREGION_S 16
  809. #define NVIC_MPU_TYPE_DREGION_S 8
  810. //*****************************************************************************
  811. //
  812. // The following are defines for the bit fields in the NVIC_MPU_CTRL register.
  813. //
  814. //*****************************************************************************
  815. #define NVIC_MPU_CTRL_PRIVDEFEN 0x00000004 // MPU default region in priv mode
  816. #define NVIC_MPU_CTRL_HFNMIENA 0x00000002 // MPU enabled during faults
  817. #define NVIC_MPU_CTRL_ENABLE 0x00000001 // MPU enable
  818. //*****************************************************************************
  819. //
  820. // The following are defines for the bit fields in the NVIC_MPU_NUMBER
  821. // register.
  822. //
  823. //*****************************************************************************
  824. #define NVIC_MPU_NUMBER_M 0x000000FF // MPU region to access
  825. #define NVIC_MPU_NUMBER_S 0
  826. //*****************************************************************************
  827. //
  828. // The following are defines for the bit fields in the NVIC_MPU_BASE register.
  829. //
  830. //*****************************************************************************
  831. #define NVIC_MPU_BASE_ADDR_M 0xFFFFFFE0 // Base address mask
  832. #define NVIC_MPU_BASE_VALID 0x00000010 // Region number valid
  833. #define NVIC_MPU_BASE_REGION_M 0x0000000F // Region number
  834. #define NVIC_MPU_BASE_ADDR_S 8
  835. #define NVIC_MPU_BASE_REGION_S 0
  836. //*****************************************************************************
  837. //
  838. // The following are defines for the bit fields in the NVIC_MPU_ATTR register.
  839. //
  840. //*****************************************************************************
  841. #define NVIC_MPU_ATTR_M 0xFFFF0000 // Attributes
  842. #define NVIC_MPU_ATTR_AP_NO_NO 0x00000000 // prv: no access, usr: no access
  843. #define NVIC_MPU_ATTR_BUFFRABLE 0x00010000 // Bufferable
  844. #define NVIC_MPU_ATTR_CACHEABLE 0x00020000 // Cacheable
  845. #define NVIC_MPU_ATTR_SHAREABLE 0x00040000 // Shareable
  846. #define NVIC_MPU_ATTR_TEX_M 0x00380000 // Type extension mask
  847. #define NVIC_MPU_ATTR_AP_RW_NO 0x01000000 // prv: rw, usr: none
  848. #define NVIC_MPU_ATTR_AP_RW_RO 0x02000000 // prv: rw, usr: read-only
  849. #define NVIC_MPU_ATTR_AP_RW_RW 0x03000000 // prv: rw, usr: rw
  850. #define NVIC_MPU_ATTR_AP_RO_NO 0x05000000 // prv: ro, usr: none
  851. #define NVIC_MPU_ATTR_AP_RO_RO 0x06000000 // prv: ro, usr: ro
  852. #define NVIC_MPU_ATTR_AP_M 0x07000000 // Access permissions mask
  853. #define NVIC_MPU_ATTR_XN 0x10000000 // Execute disable
  854. #define NVIC_MPU_ATTR_SRD_M 0x0000FF00 // Sub-region disable mask
  855. #define NVIC_MPU_ATTR_SRD_0 0x00000100 // Sub-region 0 disable
  856. #define NVIC_MPU_ATTR_SRD_1 0x00000200 // Sub-region 1 disable
  857. #define NVIC_MPU_ATTR_SRD_2 0x00000400 // Sub-region 2 disable
  858. #define NVIC_MPU_ATTR_SRD_3 0x00000800 // Sub-region 3 disable
  859. #define NVIC_MPU_ATTR_SRD_4 0x00001000 // Sub-region 4 disable
  860. #define NVIC_MPU_ATTR_SRD_5 0x00002000 // Sub-region 5 disable
  861. #define NVIC_MPU_ATTR_SRD_6 0x00004000 // Sub-region 6 disable
  862. #define NVIC_MPU_ATTR_SRD_7 0x00008000 // Sub-region 7 disable
  863. #define NVIC_MPU_ATTR_SIZE_M 0x0000003E // Region size mask
  864. #define NVIC_MPU_ATTR_SIZE_32B 0x00000008 // Region size 32 bytes
  865. #define NVIC_MPU_ATTR_SIZE_64B 0x0000000A // Region size 64 bytes
  866. #define NVIC_MPU_ATTR_SIZE_128B 0x0000000C // Region size 128 bytes
  867. #define NVIC_MPU_ATTR_SIZE_256B 0x0000000E // Region size 256 bytes
  868. #define NVIC_MPU_ATTR_SIZE_512B 0x00000010 // Region size 512 bytes
  869. #define NVIC_MPU_ATTR_SIZE_1K 0x00000012 // Region size 1 Kbytes
  870. #define NVIC_MPU_ATTR_SIZE_2K 0x00000014 // Region size 2 Kbytes
  871. #define NVIC_MPU_ATTR_SIZE_4K 0x00000016 // Region size 4 Kbytes
  872. #define NVIC_MPU_ATTR_SIZE_8K 0x00000018 // Region size 8 Kbytes
  873. #define NVIC_MPU_ATTR_SIZE_16K 0x0000001A // Region size 16 Kbytes
  874. #define NVIC_MPU_ATTR_SIZE_32K 0x0000001C // Region size 32 Kbytes
  875. #define NVIC_MPU_ATTR_SIZE_64K 0x0000001E // Region size 64 Kbytes
  876. #define NVIC_MPU_ATTR_SIZE_128K 0x00000020 // Region size 128 Kbytes
  877. #define NVIC_MPU_ATTR_SIZE_256K 0x00000022 // Region size 256 Kbytes
  878. #define NVIC_MPU_ATTR_SIZE_512K 0x00000024 // Region size 512 Kbytes
  879. #define NVIC_MPU_ATTR_SIZE_1M 0x00000026 // Region size 1 Mbytes
  880. #define NVIC_MPU_ATTR_SIZE_2M 0x00000028 // Region size 2 Mbytes
  881. #define NVIC_MPU_ATTR_SIZE_4M 0x0000002A // Region size 4 Mbytes
  882. #define NVIC_MPU_ATTR_SIZE_8M 0x0000002C // Region size 8 Mbytes
  883. #define NVIC_MPU_ATTR_SIZE_16M 0x0000002E // Region size 16 Mbytes
  884. #define NVIC_MPU_ATTR_SIZE_32M 0x00000030 // Region size 32 Mbytes
  885. #define NVIC_MPU_ATTR_SIZE_64M 0x00000032 // Region size 64 Mbytes
  886. #define NVIC_MPU_ATTR_SIZE_128M 0x00000034 // Region size 128 Mbytes
  887. #define NVIC_MPU_ATTR_SIZE_256M 0x00000036 // Region size 256 Mbytes
  888. #define NVIC_MPU_ATTR_SIZE_512M 0x00000038 // Region size 512 Mbytes
  889. #define NVIC_MPU_ATTR_SIZE_1G 0x0000003A // Region size 1 Gbytes
  890. #define NVIC_MPU_ATTR_SIZE_2G 0x0000003C // Region size 2 Gbytes
  891. #define NVIC_MPU_ATTR_SIZE_4G 0x0000003E // Region size 4 Gbytes
  892. #define NVIC_MPU_ATTR_ENABLE 0x00000001 // Region enable
  893. //*****************************************************************************
  894. //
  895. // The following are defines for the bit fields in the NVIC_DBG_CTRL register.
  896. //
  897. //*****************************************************************************
  898. #define NVIC_DBG_CTRL_DBGKEY_M 0xFFFF0000 // Debug key mask
  899. #define NVIC_DBG_CTRL_DBGKEY 0xA05F0000 // Debug key
  900. #define NVIC_DBG_CTRL_S_RESET_ST \
  901. 0x02000000 // Core has reset since last read
  902. #define NVIC_DBG_CTRL_S_RETIRE_ST \
  903. 0x01000000 // Core has executed insruction
  904. // since last read
  905. #define NVIC_DBG_CTRL_S_LOCKUP 0x00080000 // Core is locked up
  906. #define NVIC_DBG_CTRL_S_SLEEP 0x00040000 // Core is sleeping
  907. #define NVIC_DBG_CTRL_S_HALT 0x00020000 // Core status on halt
  908. #define NVIC_DBG_CTRL_S_REGRDY 0x00010000 // Register read/write available
  909. #define NVIC_DBG_CTRL_C_SNAPSTALL \
  910. 0x00000020 // Breaks a stalled load/store
  911. #define NVIC_DBG_CTRL_C_MASKINT 0x00000008 // Mask interrupts when stepping
  912. #define NVIC_DBG_CTRL_C_STEP 0x00000004 // Step the core
  913. #define NVIC_DBG_CTRL_C_HALT 0x00000002 // Halt the core
  914. #define NVIC_DBG_CTRL_C_DEBUGEN 0x00000001 // Enable debug
  915. //*****************************************************************************
  916. //
  917. // The following are defines for the bit fields in the NVIC_DBG_XFER register.
  918. //
  919. //*****************************************************************************
  920. #define NVIC_DBG_XFER_REG_WNR 0x00010000 // Write or not read
  921. #define NVIC_DBG_XFER_REG_SEL_M 0x0000001F // Register
  922. #define NVIC_DBG_XFER_REG_CFBP 0x00000014 // Control/Fault/BasePri/PriMask
  923. #define NVIC_DBG_XFER_REG_DSP 0x00000013 // Deep SP
  924. #define NVIC_DBG_XFER_REG_PSP 0x00000012 // Process SP
  925. #define NVIC_DBG_XFER_REG_MSP 0x00000011 // Main SP
  926. #define NVIC_DBG_XFER_REG_FLAGS 0x00000010 // xPSR/Flags register
  927. #define NVIC_DBG_XFER_REG_R15 0x0000000F // Register R15
  928. #define NVIC_DBG_XFER_REG_R14 0x0000000E // Register R14
  929. #define NVIC_DBG_XFER_REG_R13 0x0000000D // Register R13
  930. #define NVIC_DBG_XFER_REG_R12 0x0000000C // Register R12
  931. #define NVIC_DBG_XFER_REG_R11 0x0000000B // Register R11
  932. #define NVIC_DBG_XFER_REG_R10 0x0000000A // Register R10
  933. #define NVIC_DBG_XFER_REG_R9 0x00000009 // Register R9
  934. #define NVIC_DBG_XFER_REG_R8 0x00000008 // Register R8
  935. #define NVIC_DBG_XFER_REG_R7 0x00000007 // Register R7
  936. #define NVIC_DBG_XFER_REG_R6 0x00000006 // Register R6
  937. #define NVIC_DBG_XFER_REG_R5 0x00000005 // Register R5
  938. #define NVIC_DBG_XFER_REG_R4 0x00000004 // Register R4
  939. #define NVIC_DBG_XFER_REG_R3 0x00000003 // Register R3
  940. #define NVIC_DBG_XFER_REG_R2 0x00000002 // Register R2
  941. #define NVIC_DBG_XFER_REG_R1 0x00000001 // Register R1
  942. #define NVIC_DBG_XFER_REG_R0 0x00000000 // Register R0
  943. //*****************************************************************************
  944. //
  945. // The following are defines for the bit fields in the NVIC_DBG_DATA register.
  946. //
  947. //*****************************************************************************
  948. #define NVIC_DBG_DATA_M 0xFFFFFFFF // Data temporary cache
  949. #define NVIC_DBG_DATA_S 0
  950. //*****************************************************************************
  951. //
  952. // The following are defines for the bit fields in the NVIC_DBG_INT register.
  953. //
  954. //*****************************************************************************
  955. #define NVIC_DBG_INT_HARDERR 0x00000400 // Debug trap on hard fault
  956. #define NVIC_DBG_INT_INTERR 0x00000200 // Debug trap on interrupt errors
  957. #define NVIC_DBG_INT_BUSERR 0x00000100 // Debug trap on bus error
  958. #define NVIC_DBG_INT_STATERR 0x00000080 // Debug trap on usage fault state
  959. #define NVIC_DBG_INT_CHKERR 0x00000040 // Debug trap on usage fault check
  960. #define NVIC_DBG_INT_NOCPERR 0x00000020 // Debug trap on coprocessor error
  961. #define NVIC_DBG_INT_MMERR 0x00000010 // Debug trap on mem manage fault
  962. #define NVIC_DBG_INT_RESET 0x00000008 // Core reset status
  963. #define NVIC_DBG_INT_RSTPENDCLR 0x00000004 // Clear pending core reset
  964. #define NVIC_DBG_INT_RSTPENDING 0x00000002 // Core reset is pending
  965. #define NVIC_DBG_INT_RSTVCATCH 0x00000001 // Reset vector catch
  966. //*****************************************************************************
  967. //
  968. // The following are defines for the bit fields in the NVIC_SW_TRIG register.
  969. //
  970. //*****************************************************************************
  971. #define NVIC_SW_TRIG_INTID_M 0x000003FF // Interrupt to trigger
  972. #define NVIC_SW_TRIG_INTID_S 0
  973. #endif // __HW_NVIC_H__