partition_ARMCM35P.h 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260
  1. /**************************************************************************//**
  2. * @file partition_ARMCM35P.h
  3. * @brief CMSIS-CORE Initial Setup for Secure / Non-Secure Zones for ARMCM35P
  4. * @version V5.4.1
  5. * @date 03. September 2018
  6. ******************************************************************************/
  7. /*
  8. * Copyright (c) 2009-2018 Arm Limited. All rights reserved.
  9. *
  10. * SPDX-License-Identifier: Apache-2.0
  11. *
  12. * Licensed under the Apache License, Version 2.0 (the License); you may
  13. * not use this file except in compliance with the License.
  14. * You may obtain a copy of the License at
  15. *
  16. * www.apache.org/licenses/LICENSE-2.0
  17. *
  18. * Unless required by applicable law or agreed to in writing, software
  19. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  20. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  21. * See the License for the specific language governing permissions and
  22. * limitations under the License.
  23. */
  24. #ifndef PARTITION_ARMCM35P_H
  25. #define PARTITION_ARMCM35P_H
  26. /*
  27. //-------- <<< Use Configuration Wizard in Context Menu >>> -----------------
  28. */
  29. /*
  30. // <e>Initialize Security Attribution Unit (SAU) CTRL register
  31. */
  32. #define SAU_INIT_CTRL 1
  33. /*
  34. // <q> Enable SAU
  35. // <i> Value for SAU->CTRL register bit ENABLE
  36. */
  37. #define SAU_INIT_CTRL_ENABLE 1
  38. /*
  39. // <o> When SAU is disabled
  40. // <0=> All Memory is Secure
  41. // <1=> All Memory is Non-Secure
  42. // <i> Value for SAU->CTRL register bit ALLNS
  43. // <i> When all Memory is Non-Secure (ALLNS is 1), IDAU can override memory map configuration.
  44. */
  45. #define SAU_INIT_CTRL_ALLNS 0
  46. /*
  47. // </e>
  48. */
  49. /*
  50. // <h>Initialize Security Attribution Unit (SAU) Address Regions
  51. // <i>SAU configuration specifies regions to be one of:
  52. // <i> - Secure and Non-Secure Callable
  53. // <i> - Non-Secure
  54. // <i>Note: All memory regions not configured by SAU are Secure
  55. */
  56. #define SAU_REGIONS_MAX 8 /* Max. number of SAU regions */
  57. /*
  58. // <e>Initialize SAU Region 0
  59. // <i> Setup SAU Region 0 memory attributes
  60. */
  61. #define SAU_INIT_REGION0 1
  62. /*
  63. // <o>Start Address <0-0xFFFFFFE0>
  64. */
  65. #define SAU_INIT_START0 0x00000000 /* start address of SAU region 0 */
  66. /*
  67. // <o>End Address <0x1F-0xFFFFFFFF>
  68. */
  69. #define SAU_INIT_END0 0x001FFFFF /* end address of SAU region 0 */
  70. /*
  71. // <o>Region is
  72. // <0=>Non-Secure
  73. // <1=>Secure, Non-Secure Callable
  74. */
  75. #define SAU_INIT_NSC0 1
  76. /*
  77. // </e>
  78. */
  79. /*
  80. // <e>Initialize SAU Region 1
  81. // <i> Setup SAU Region 1 memory attributes
  82. */
  83. #define SAU_INIT_REGION1 1
  84. /*
  85. // <o>Start Address <0-0xFFFFFFE0>
  86. */
  87. #define SAU_INIT_START1 0x00200000
  88. /*
  89. // <o>End Address <0x1F-0xFFFFFFFF>
  90. */
  91. #define SAU_INIT_END1 0x003FFFFF
  92. /*
  93. // <o>Region is
  94. // <0=>Non-Secure
  95. // <1=>Secure, Non-Secure Callable
  96. */
  97. #define SAU_INIT_NSC1 0
  98. /*
  99. // </e>
  100. */
  101. /*
  102. // <e>Initialize SAU Region 2
  103. // <i> Setup SAU Region 2 memory attributes
  104. */
  105. #define SAU_INIT_REGION2 1
  106. /*
  107. // <o>Start Address <0-0xFFFFFFE0>
  108. */
  109. #define SAU_INIT_START2 0x20200000
  110. /*
  111. // <o>End Address <0x1F-0xFFFFFFFF>
  112. */
  113. #define SAU_INIT_END2 0x203FFFFF
  114. /*
  115. // <o>Region is
  116. // <0=>Non-Secure
  117. // <1=>Secure, Non-Secure Callable
  118. */
  119. #define SAU_INIT_NSC2 0
  120. /*
  121. // </e>
  122. */
  123. /*
  124. // <e>Initialize SAU Region 3
  125. // <i> Setup SAU Region 3 memory attributes
  126. */
  127. #define SAU_INIT_REGION3 1
  128. /*
  129. // <o>Start Address <0-0xFFFFFFE0>
  130. */
  131. #define SAU_INIT_START3 0x40000000
  132. /*
  133. // <o>End Address <0x1F-0xFFFFFFFF>
  134. */
  135. #define SAU_INIT_END3 0x40040000
  136. /*
  137. // <o>Region is
  138. // <0=>Non-Secure
  139. // <1=>Secure, Non-Secure Callable
  140. */
  141. #define SAU_INIT_NSC3 0
  142. /*
  143. // </e>
  144. */
  145. /*
  146. // <e>Initialize SAU Region 4
  147. // <i> Setup SAU Region 4 memory attributes
  148. */
  149. #define SAU_INIT_REGION4 0
  150. /*
  151. // <o>Start Address <0-0xFFFFFFE0>
  152. */
  153. #define SAU_INIT_START4 0x00000000 /* start address of SAU region 4 */
  154. /*
  155. // <o>End Address <0x1F-0xFFFFFFFF>
  156. */
  157. #define SAU_INIT_END4 0x00000000 /* end address of SAU region 4 */
  158. /*
  159. // <o>Region is
  160. // <0=>Non-Secure
  161. // <1=>Secure, Non-Secure Callable
  162. */
  163. #define SAU_INIT_NSC4 0
  164. /*
  165. // </e>
  166. */
  167. /*
  168. // <e>Initialize SAU Region 5
  169. // <i> Setup SAU Region 5 memory attributes
  170. */
  171. #define SAU_INIT_REGION5 0
  172. /*
  173. // <o>Start Address <0-0xFFFFFFE0>
  174. */
  175. #define SAU_INIT_START5 0x00000000
  176. /*
  177. // <o>End Address <0x1F-0xFFFFFFFF>
  178. */
  179. #define SAU_INIT_END5 0x00000000
  180. /*
  181. // <o>Region is
  182. // <0=>Non-Secure
  183. // <1=>Secure, Non-Secure Callable
  184. */
  185. #define SAU_INIT_NSC5 0
  186. /*
  187. // </e>
  188. */
  189. /*
  190. // <e>Initialize SAU Region 6
  191. // <i> Setup SAU Region 6 memory attributes
  192. */
  193. #define SAU_INIT_REGION6 0
  194. /*
  195. // <o>Start Address <0-0xFFFFFFE0>
  196. */
  197. #define SAU_INIT_START6 0x00000000
  198. /*
  199. // <o>End Address <0x1F-0xFFFFFFFF>
  200. */
  201. #define SAU_INIT_END6 0x00000000
  202. /*
  203. // <o>Region is
  204. // <0=>Non-Secure
  205. // <1=>Secure, Non-Secure Callable
  206. */
  207. #define SAU_INIT_NSC6 0
  208. /*
  209. // </e>
  210. */
  211. /*
  212. // <e>Initialize SAU Region 7
  213. // <i> Setup SAU Region 7 memory attributes
  214. */
  215. #define SAU_INIT_REGION7 0
  216. /*
  217. // <o>Start Address <0-0xFFFFFFE0>
  218. */
  219. #define SAU_INIT_START7 0x00000000
  220. /*
  221. // <o>End Address <0x1F-0xFFFFFFFF>
  222. */
  223. #define SAU_INIT_END7 0x00000000
  224. /*
  225. // <o>Region is
  226. // <0=>Non-Secure
  227. // <1=>Secure, Non-Secure Callable
  228. */
  229. #define SAU_INIT_NSC7 0
  230. /*
  231. // </e>
  232. */
  233. /*
  234. // </h>
  235. */
  236. /*
  237. // <e>Setup behaviour of Sleep and Exception Handling
  238. */
  239. #define SCB_CSR_AIRCR_INIT 1
  240. /*
  241. // <o> Deep Sleep can be enabled by
  242. // <0=>Secure and Non-Secure state
  243. // <1=>Secure state only
  244. // <i> Value for SCB->CSR register bit DEEPSLEEPS
  245. */
  246. #define SCB_CSR_DEEPSLEEPS_VAL 1
  247. /*
  248. // <o>System reset request accessible from
  249. // <0=> Secure and Non-Secure state
  250. // <1=> Secure state only
  251. // <i> Value for SCB->AIRCR register bit SYSRESETREQS
  252. */
  253. #define SCB_AIRCR_SYSRESETREQS_VAL 1
  254. /*
  255. // <o>Priority of Non-Secure exceptions is
  256. // <0=> Not altered
  257. // <1=> Lowered to 0x80-0xFF
  258. // <i> Value for SCB->AIRCR register bit PRIS
  259. */
  260. #define SCB_AIRCR_PRIS_VAL 1
  261. /*
  262. // <o>BusFault, HardFault, and NMI target
  263. // <0=> Secure state
  264. // <1=> Non-Secure state
  265. // <i> Value for SCB->AIRCR register bit BFHFNMINS
  266. */
  267. #define SCB_AIRCR_BFHFNMINS_VAL 0
  268. /*
  269. // </e>
  270. */
  271. /*
  272. // <e>Setup behaviour of Floating Point Unit
  273. */
  274. #define TZ_FPU_NS_USAGE 1
  275. /*
  276. // <o>Floating Point Unit usage
  277. // <0=> Secure state only
  278. // <3=> Secure and Non-Secure state
  279. // <i> Value for SCB->NSACR register bits CP10, CP11
  280. */
  281. #define SCB_NSACR_CP10_11_VAL 3
  282. /*
  283. // <o>Treat floating-point registers as Secure
  284. // <0=> Disabled
  285. // <1=> Enabled
  286. // <i> Value for FPU->FPCCR register bit TS
  287. */
  288. #define FPU_FPCCR_TS_VAL 0
  289. /*
  290. // <o>Clear on return (CLRONRET) accessibility
  291. // <0=> Secure and Non-Secure state
  292. // <1=> Secure state only
  293. // <i> Value for FPU->FPCCR register bit CLRONRETS
  294. */
  295. #define FPU_FPCCR_CLRONRETS_VAL 0
  296. /*
  297. // <o>Clear floating-point caller saved registers on exception return
  298. // <0=> Disabled
  299. // <1=> Enabled
  300. // <i> Value for FPU->FPCCR register bit CLRONRET
  301. */
  302. #define FPU_FPCCR_CLRONRET_VAL 1
  303. /*
  304. // </e>
  305. */
  306. /*
  307. // <h>Setup Interrupt Target
  308. */
  309. /*
  310. // <e>Initialize ITNS 0 (Interrupts 0..31)
  311. */
  312. #define NVIC_INIT_ITNS0 1
  313. /*
  314. // Interrupts 0..31
  315. // <o.0> Interrupt 0 <0=> Secure state <1=> Non-Secure state
  316. // <o.1> Interrupt 1 <0=> Secure state <1=> Non-Secure state
  317. // <o.2> Interrupt 2 <0=> Secure state <1=> Non-Secure state
  318. // <o.3> Interrupt 3 <0=> Secure state <1=> Non-Secure state
  319. // <o.4> Interrupt 4 <0=> Secure state <1=> Non-Secure state
  320. // <o.5> Interrupt 5 <0=> Secure state <1=> Non-Secure state
  321. // <o.6> Interrupt 6 <0=> Secure state <1=> Non-Secure state
  322. // <o.7> Interrupt 7 <0=> Secure state <1=> Non-Secure state
  323. // <o.8> Interrupt 8 <0=> Secure state <1=> Non-Secure state
  324. // <o.9> Interrupt 9 <0=> Secure state <1=> Non-Secure state
  325. // <o.10> Interrupt 10 <0=> Secure state <1=> Non-Secure state
  326. // <o.11> Interrupt 11 <0=> Secure state <1=> Non-Secure state
  327. // <o.12> Interrupt 12 <0=> Secure state <1=> Non-Secure state
  328. // <o.13> Interrupt 13 <0=> Secure state <1=> Non-Secure state
  329. // <o.14> Interrupt 14 <0=> Secure state <1=> Non-Secure state
  330. // <o.15> Interrupt 15 <0=> Secure state <1=> Non-Secure state
  331. // <o.16> Interrupt 16 <0=> Secure state <1=> Non-Secure state
  332. // <o.17> Interrupt 17 <0=> Secure state <1=> Non-Secure state
  333. // <o.18> Interrupt 18 <0=> Secure state <1=> Non-Secure state
  334. // <o.19> Interrupt 19 <0=> Secure state <1=> Non-Secure state
  335. // <o.20> Interrupt 20 <0=> Secure state <1=> Non-Secure state
  336. // <o.21> Interrupt 21 <0=> Secure state <1=> Non-Secure state
  337. // <o.22> Interrupt 22 <0=> Secure state <1=> Non-Secure state
  338. // <o.23> Interrupt 23 <0=> Secure state <1=> Non-Secure state
  339. // <o.24> Interrupt 24 <0=> Secure state <1=> Non-Secure state
  340. // <o.25> Interrupt 25 <0=> Secure state <1=> Non-Secure state
  341. // <o.26> Interrupt 26 <0=> Secure state <1=> Non-Secure state
  342. // <o.27> Interrupt 27 <0=> Secure state <1=> Non-Secure state
  343. // <o.28> Interrupt 28 <0=> Secure state <1=> Non-Secure state
  344. // <o.29> Interrupt 29 <0=> Secure state <1=> Non-Secure state
  345. // <o.30> Interrupt 30 <0=> Secure state <1=> Non-Secure state
  346. // <o.31> Interrupt 31 <0=> Secure state <1=> Non-Secure state
  347. */
  348. #define NVIC_INIT_ITNS0_VAL 0x00000000
  349. /*
  350. // </e>
  351. */
  352. /*
  353. // <e>Initialize ITNS 1 (Interrupts 32..63)
  354. */
  355. #define NVIC_INIT_ITNS1 1
  356. /*
  357. // Interrupts 32..63
  358. // <o.0> Interrupt 32 <0=> Secure state <1=> Non-Secure state
  359. // <o.1> Interrupt 33 <0=> Secure state <1=> Non-Secure state
  360. // <o.2> Interrupt 34 <0=> Secure state <1=> Non-Secure state
  361. // <o.3> Interrupt 35 <0=> Secure state <1=> Non-Secure state
  362. // <o.4> Interrupt 36 <0=> Secure state <1=> Non-Secure state
  363. // <o.5> Interrupt 37 <0=> Secure state <1=> Non-Secure state
  364. // <o.6> Interrupt 38 <0=> Secure state <1=> Non-Secure state
  365. // <o.7> Interrupt 39 <0=> Secure state <1=> Non-Secure state
  366. // <o.8> Interrupt 40 <0=> Secure state <1=> Non-Secure state
  367. // <o.9> Interrupt 41 <0=> Secure state <1=> Non-Secure state
  368. // <o.10> Interrupt 42 <0=> Secure state <1=> Non-Secure state
  369. // <o.11> Interrupt 43 <0=> Secure state <1=> Non-Secure state
  370. // <o.12> Interrupt 44 <0=> Secure state <1=> Non-Secure state
  371. // <o.13> Interrupt 45 <0=> Secure state <1=> Non-Secure state
  372. // <o.14> Interrupt 46 <0=> Secure state <1=> Non-Secure state
  373. // <o.15> Interrupt 47 <0=> Secure state <1=> Non-Secure state
  374. // <o.16> Interrupt 48 <0=> Secure state <1=> Non-Secure state
  375. // <o.17> Interrupt 49 <0=> Secure state <1=> Non-Secure state
  376. // <o.18> Interrupt 50 <0=> Secure state <1=> Non-Secure state
  377. // <o.19> Interrupt 51 <0=> Secure state <1=> Non-Secure state
  378. // <o.20> Interrupt 52 <0=> Secure state <1=> Non-Secure state
  379. // <o.21> Interrupt 53 <0=> Secure state <1=> Non-Secure state
  380. // <o.22> Interrupt 54 <0=> Secure state <1=> Non-Secure state
  381. // <o.23> Interrupt 55 <0=> Secure state <1=> Non-Secure state
  382. // <o.24> Interrupt 56 <0=> Secure state <1=> Non-Secure state
  383. // <o.25> Interrupt 57 <0=> Secure state <1=> Non-Secure state
  384. // <o.26> Interrupt 58 <0=> Secure state <1=> Non-Secure state
  385. // <o.27> Interrupt 59 <0=> Secure state <1=> Non-Secure state
  386. // <o.28> Interrupt 60 <0=> Secure state <1=> Non-Secure state
  387. // <o.29> Interrupt 61 <0=> Secure state <1=> Non-Secure state
  388. // <o.30> Interrupt 62 <0=> Secure state <1=> Non-Secure state
  389. // <o.31> Interrupt 63 <0=> Secure state <1=> Non-Secure state
  390. */
  391. #define NVIC_INIT_ITNS1_VAL 0x00000000
  392. /*
  393. // </e>
  394. */
  395. /*
  396. // <e>Initialize ITNS 2 (Interrupts 64..95)
  397. */
  398. #define NVIC_INIT_ITNS2 0
  399. /*
  400. // Interrupts 64..95
  401. // <o.0> Interrupt 64 <0=> Secure state <1=> Non-Secure state
  402. // <o.1> Interrupt 65 <0=> Secure state <1=> Non-Secure state
  403. // <o.2> Interrupt 66 <0=> Secure state <1=> Non-Secure state
  404. // <o.3> Interrupt 67 <0=> Secure state <1=> Non-Secure state
  405. // <o.4> Interrupt 68 <0=> Secure state <1=> Non-Secure state
  406. // <o.5> Interrupt 69 <0=> Secure state <1=> Non-Secure state
  407. // <o.6> Interrupt 70 <0=> Secure state <1=> Non-Secure state
  408. // <o.7> Interrupt 71 <0=> Secure state <1=> Non-Secure state
  409. // <o.8> Interrupt 72 <0=> Secure state <1=> Non-Secure state
  410. // <o.9> Interrupt 73 <0=> Secure state <1=> Non-Secure state
  411. // <o.10> Interrupt 74 <0=> Secure state <1=> Non-Secure state
  412. // <o.11> Interrupt 75 <0=> Secure state <1=> Non-Secure state
  413. // <o.12> Interrupt 76 <0=> Secure state <1=> Non-Secure state
  414. // <o.13> Interrupt 77 <0=> Secure state <1=> Non-Secure state
  415. // <o.14> Interrupt 78 <0=> Secure state <1=> Non-Secure state
  416. // <o.15> Interrupt 79 <0=> Secure state <1=> Non-Secure state
  417. // <o.16> Interrupt 80 <0=> Secure state <1=> Non-Secure state
  418. // <o.17> Interrupt 81 <0=> Secure state <1=> Non-Secure state
  419. // <o.18> Interrupt 82 <0=> Secure state <1=> Non-Secure state
  420. // <o.19> Interrupt 83 <0=> Secure state <1=> Non-Secure state
  421. // <o.20> Interrupt 84 <0=> Secure state <1=> Non-Secure state
  422. // <o.21> Interrupt 85 <0=> Secure state <1=> Non-Secure state
  423. // <o.22> Interrupt 86 <0=> Secure state <1=> Non-Secure state
  424. // <o.23> Interrupt 87 <0=> Secure state <1=> Non-Secure state
  425. // <o.24> Interrupt 88 <0=> Secure state <1=> Non-Secure state
  426. // <o.25> Interrupt 89 <0=> Secure state <1=> Non-Secure state
  427. // <o.26> Interrupt 90 <0=> Secure state <1=> Non-Secure state
  428. // <o.27> Interrupt 91 <0=> Secure state <1=> Non-Secure state
  429. // <o.28> Interrupt 92 <0=> Secure state <1=> Non-Secure state
  430. // <o.29> Interrupt 93 <0=> Secure state <1=> Non-Secure state
  431. // <o.30> Interrupt 94 <0=> Secure state <1=> Non-Secure state
  432. // <o.31> Interrupt 95 <0=> Secure state <1=> Non-Secure state
  433. */
  434. #define NVIC_INIT_ITNS2_VAL 0x00000000
  435. /*
  436. // </e>
  437. */
  438. /*
  439. // <e>Initialize ITNS 3 (Interrupts 96..127)
  440. */
  441. #define NVIC_INIT_ITNS3 0
  442. /*
  443. // Interrupts 96..127
  444. // <o.0> Interrupt 96 <0=> Secure state <1=> Non-Secure state
  445. // <o.1> Interrupt 97 <0=> Secure state <1=> Non-Secure state
  446. // <o.2> Interrupt 98 <0=> Secure state <1=> Non-Secure state
  447. // <o.3> Interrupt 99 <0=> Secure state <1=> Non-Secure state
  448. // <o.4> Interrupt 100 <0=> Secure state <1=> Non-Secure state
  449. // <o.5> Interrupt 101 <0=> Secure state <1=> Non-Secure state
  450. // <o.6> Interrupt 102 <0=> Secure state <1=> Non-Secure state
  451. // <o.7> Interrupt 103 <0=> Secure state <1=> Non-Secure state
  452. // <o.8> Interrupt 104 <0=> Secure state <1=> Non-Secure state
  453. // <o.9> Interrupt 105 <0=> Secure state <1=> Non-Secure state
  454. // <o.10> Interrupt 106 <0=> Secure state <1=> Non-Secure state
  455. // <o.11> Interrupt 107 <0=> Secure state <1=> Non-Secure state
  456. // <o.12> Interrupt 108 <0=> Secure state <1=> Non-Secure state
  457. // <o.13> Interrupt 109 <0=> Secure state <1=> Non-Secure state
  458. // <o.14> Interrupt 110 <0=> Secure state <1=> Non-Secure state
  459. // <o.15> Interrupt 111 <0=> Secure state <1=> Non-Secure state
  460. // <o.16> Interrupt 112 <0=> Secure state <1=> Non-Secure state
  461. // <o.17> Interrupt 113 <0=> Secure state <1=> Non-Secure state
  462. // <o.18> Interrupt 114 <0=> Secure state <1=> Non-Secure state
  463. // <o.19> Interrupt 115 <0=> Secure state <1=> Non-Secure state
  464. // <o.20> Interrupt 116 <0=> Secure state <1=> Non-Secure state
  465. // <o.21> Interrupt 117 <0=> Secure state <1=> Non-Secure state
  466. // <o.22> Interrupt 118 <0=> Secure state <1=> Non-Secure state
  467. // <o.23> Interrupt 119 <0=> Secure state <1=> Non-Secure state
  468. // <o.24> Interrupt 120 <0=> Secure state <1=> Non-Secure state
  469. // <o.25> Interrupt 121 <0=> Secure state <1=> Non-Secure state
  470. // <o.26> Interrupt 122 <0=> Secure state <1=> Non-Secure state
  471. // <o.27> Interrupt 123 <0=> Secure state <1=> Non-Secure state
  472. // <o.28> Interrupt 124 <0=> Secure state <1=> Non-Secure state
  473. // <o.29> Interrupt 125 <0=> Secure state <1=> Non-Secure state
  474. // <o.30> Interrupt 126 <0=> Secure state <1=> Non-Secure state
  475. // <o.31> Interrupt 127 <0=> Secure state <1=> Non-Secure state
  476. */
  477. #define NVIC_INIT_ITNS3_VAL 0x00000000
  478. /*
  479. // </e>
  480. */
  481. /*
  482. // <e>Initialize ITNS 4 (Interrupts 128..159)
  483. */
  484. #define NVIC_INIT_ITNS4 0
  485. /*
  486. // Interrupts 128..159
  487. // <o.0> Interrupt 128 <0=> Secure state <1=> Non-Secure state
  488. // <o.1> Interrupt 129 <0=> Secure state <1=> Non-Secure state
  489. // <o.2> Interrupt 130 <0=> Secure state <1=> Non-Secure state
  490. // <o.3> Interrupt 131 <0=> Secure state <1=> Non-Secure state
  491. // <o.4> Interrupt 132 <0=> Secure state <1=> Non-Secure state
  492. // <o.5> Interrupt 133 <0=> Secure state <1=> Non-Secure state
  493. // <o.6> Interrupt 134 <0=> Secure state <1=> Non-Secure state
  494. // <o.7> Interrupt 135 <0=> Secure state <1=> Non-Secure state
  495. // <o.8> Interrupt 136 <0=> Secure state <1=> Non-Secure state
  496. // <o.9> Interrupt 137 <0=> Secure state <1=> Non-Secure state
  497. // <o.10> Interrupt 138 <0=> Secure state <1=> Non-Secure state
  498. // <o.11> Interrupt 139 <0=> Secure state <1=> Non-Secure state
  499. // <o.12> Interrupt 140 <0=> Secure state <1=> Non-Secure state
  500. // <o.13> Interrupt 141 <0=> Secure state <1=> Non-Secure state
  501. // <o.14> Interrupt 142 <0=> Secure state <1=> Non-Secure state
  502. // <o.15> Interrupt 143 <0=> Secure state <1=> Non-Secure state
  503. // <o.16> Interrupt 144 <0=> Secure state <1=> Non-Secure state
  504. // <o.17> Interrupt 145 <0=> Secure state <1=> Non-Secure state
  505. // <o.18> Interrupt 146 <0=> Secure state <1=> Non-Secure state
  506. // <o.19> Interrupt 147 <0=> Secure state <1=> Non-Secure state
  507. // <o.20> Interrupt 148 <0=> Secure state <1=> Non-Secure state
  508. // <o.21> Interrupt 149 <0=> Secure state <1=> Non-Secure state
  509. // <o.22> Interrupt 150 <0=> Secure state <1=> Non-Secure state
  510. // <o.23> Interrupt 151 <0=> Secure state <1=> Non-Secure state
  511. // <o.24> Interrupt 152 <0=> Secure state <1=> Non-Secure state
  512. // <o.25> Interrupt 153 <0=> Secure state <1=> Non-Secure state
  513. // <o.26> Interrupt 154 <0=> Secure state <1=> Non-Secure state
  514. // <o.27> Interrupt 155 <0=> Secure state <1=> Non-Secure state
  515. // <o.28> Interrupt 156 <0=> Secure state <1=> Non-Secure state
  516. // <o.29> Interrupt 157 <0=> Secure state <1=> Non-Secure state
  517. // <o.30> Interrupt 158 <0=> Secure state <1=> Non-Secure state
  518. // <o.31> Interrupt 159 <0=> Secure state <1=> Non-Secure state
  519. */
  520. #define NVIC_INIT_ITNS4_VAL 0x00000000
  521. /*
  522. // </e>
  523. */
  524. /*
  525. // <e>Initialize ITNS 5 (Interrupts 160..191)
  526. */
  527. #define NVIC_INIT_ITNS5 0
  528. /*
  529. // Interrupts 160..191
  530. // <o.0> Interrupt 160 <0=> Secure state <1=> Non-Secure state
  531. // <o.1> Interrupt 161 <0=> Secure state <1=> Non-Secure state
  532. // <o.2> Interrupt 162 <0=> Secure state <1=> Non-Secure state
  533. // <o.3> Interrupt 163 <0=> Secure state <1=> Non-Secure state
  534. // <o.4> Interrupt 164 <0=> Secure state <1=> Non-Secure state
  535. // <o.5> Interrupt 165 <0=> Secure state <1=> Non-Secure state
  536. // <o.6> Interrupt 166 <0=> Secure state <1=> Non-Secure state
  537. // <o.7> Interrupt 167 <0=> Secure state <1=> Non-Secure state
  538. // <o.8> Interrupt 168 <0=> Secure state <1=> Non-Secure state
  539. // <o.9> Interrupt 169 <0=> Secure state <1=> Non-Secure state
  540. // <o.10> Interrupt 170 <0=> Secure state <1=> Non-Secure state
  541. // <o.11> Interrupt 171 <0=> Secure state <1=> Non-Secure state
  542. // <o.12> Interrupt 172 <0=> Secure state <1=> Non-Secure state
  543. // <o.13> Interrupt 173 <0=> Secure state <1=> Non-Secure state
  544. // <o.14> Interrupt 174 <0=> Secure state <1=> Non-Secure state
  545. // <o.15> Interrupt 175 <0=> Secure state <1=> Non-Secure state
  546. // <o.16> Interrupt 176 <0=> Secure state <1=> Non-Secure state
  547. // <o.17> Interrupt 177 <0=> Secure state <1=> Non-Secure state
  548. // <o.18> Interrupt 178 <0=> Secure state <1=> Non-Secure state
  549. // <o.19> Interrupt 179 <0=> Secure state <1=> Non-Secure state
  550. // <o.20> Interrupt 180 <0=> Secure state <1=> Non-Secure state
  551. // <o.21> Interrupt 181 <0=> Secure state <1=> Non-Secure state
  552. // <o.22> Interrupt 182 <0=> Secure state <1=> Non-Secure state
  553. // <o.23> Interrupt 183 <0=> Secure state <1=> Non-Secure state
  554. // <o.24> Interrupt 184 <0=> Secure state <1=> Non-Secure state
  555. // <o.25> Interrupt 185 <0=> Secure state <1=> Non-Secure state
  556. // <o.26> Interrupt 186 <0=> Secure state <1=> Non-Secure state
  557. // <o.27> Interrupt 187 <0=> Secure state <1=> Non-Secure state
  558. // <o.28> Interrupt 188 <0=> Secure state <1=> Non-Secure state
  559. // <o.29> Interrupt 189 <0=> Secure state <1=> Non-Secure state
  560. // <o.30> Interrupt 190 <0=> Secure state <1=> Non-Secure state
  561. // <o.31> Interrupt 191 <0=> Secure state <1=> Non-Secure state
  562. */
  563. #define NVIC_INIT_ITNS5_VAL 0x00000000
  564. /*
  565. // </e>
  566. */
  567. /*
  568. // <e>Initialize ITNS 6 (Interrupts 192..223)
  569. */
  570. #define NVIC_INIT_ITNS6 0
  571. /*
  572. // Interrupts 192..223
  573. // <o.0> Interrupt 192 <0=> Secure state <1=> Non-Secure state
  574. // <o.1> Interrupt 193 <0=> Secure state <1=> Non-Secure state
  575. // <o.2> Interrupt 194 <0=> Secure state <1=> Non-Secure state
  576. // <o.3> Interrupt 195 <0=> Secure state <1=> Non-Secure state
  577. // <o.4> Interrupt 196 <0=> Secure state <1=> Non-Secure state
  578. // <o.5> Interrupt 197 <0=> Secure state <1=> Non-Secure state
  579. // <o.6> Interrupt 198 <0=> Secure state <1=> Non-Secure state
  580. // <o.7> Interrupt 199 <0=> Secure state <1=> Non-Secure state
  581. // <o.8> Interrupt 200 <0=> Secure state <1=> Non-Secure state
  582. // <o.9> Interrupt 201 <0=> Secure state <1=> Non-Secure state
  583. // <o.10> Interrupt 202 <0=> Secure state <1=> Non-Secure state
  584. // <o.11> Interrupt 203 <0=> Secure state <1=> Non-Secure state
  585. // <o.12> Interrupt 204 <0=> Secure state <1=> Non-Secure state
  586. // <o.13> Interrupt 205 <0=> Secure state <1=> Non-Secure state
  587. // <o.14> Interrupt 206 <0=> Secure state <1=> Non-Secure state
  588. // <o.15> Interrupt 207 <0=> Secure state <1=> Non-Secure state
  589. // <o.16> Interrupt 208 <0=> Secure state <1=> Non-Secure state
  590. // <o.17> Interrupt 209 <0=> Secure state <1=> Non-Secure state
  591. // <o.18> Interrupt 210 <0=> Secure state <1=> Non-Secure state
  592. // <o.19> Interrupt 211 <0=> Secure state <1=> Non-Secure state
  593. // <o.20> Interrupt 212 <0=> Secure state <1=> Non-Secure state
  594. // <o.21> Interrupt 213 <0=> Secure state <1=> Non-Secure state
  595. // <o.22> Interrupt 214 <0=> Secure state <1=> Non-Secure state
  596. // <o.23> Interrupt 215 <0=> Secure state <1=> Non-Secure state
  597. // <o.24> Interrupt 216 <0=> Secure state <1=> Non-Secure state
  598. // <o.25> Interrupt 217 <0=> Secure state <1=> Non-Secure state
  599. // <o.26> Interrupt 218 <0=> Secure state <1=> Non-Secure state
  600. // <o.27> Interrupt 219 <0=> Secure state <1=> Non-Secure state
  601. // <o.28> Interrupt 220 <0=> Secure state <1=> Non-Secure state
  602. // <o.29> Interrupt 221 <0=> Secure state <1=> Non-Secure state
  603. // <o.30> Interrupt 222 <0=> Secure state <1=> Non-Secure state
  604. // <o.31> Interrupt 223 <0=> Secure state <1=> Non-Secure state
  605. */
  606. #define NVIC_INIT_ITNS6_VAL 0x00000000
  607. /*
  608. // </e>
  609. */
  610. /*
  611. // <e>Initialize ITNS 7 (Interrupts 224..255)
  612. */
  613. #define NVIC_INIT_ITNS7 0
  614. /*
  615. // Interrupts 224..255
  616. // <o.0> Interrupt 224 <0=> Secure state <1=> Non-Secure state
  617. // <o.1> Interrupt 225 <0=> Secure state <1=> Non-Secure state
  618. // <o.2> Interrupt 226 <0=> Secure state <1=> Non-Secure state
  619. // <o.3> Interrupt 227 <0=> Secure state <1=> Non-Secure state
  620. // <o.4> Interrupt 228 <0=> Secure state <1=> Non-Secure state
  621. // <o.5> Interrupt 229 <0=> Secure state <1=> Non-Secure state
  622. // <o.6> Interrupt 230 <0=> Secure state <1=> Non-Secure state
  623. // <o.7> Interrupt 231 <0=> Secure state <1=> Non-Secure state
  624. // <o.8> Interrupt 232 <0=> Secure state <1=> Non-Secure state
  625. // <o.9> Interrupt 233 <0=> Secure state <1=> Non-Secure state
  626. // <o.10> Interrupt 234 <0=> Secure state <1=> Non-Secure state
  627. // <o.11> Interrupt 235 <0=> Secure state <1=> Non-Secure state
  628. // <o.12> Interrupt 236 <0=> Secure state <1=> Non-Secure state
  629. // <o.13> Interrupt 237 <0=> Secure state <1=> Non-Secure state
  630. // <o.14> Interrupt 238 <0=> Secure state <1=> Non-Secure state
  631. // <o.15> Interrupt 239 <0=> Secure state <1=> Non-Secure state
  632. // <o.16> Interrupt 240 <0=> Secure state <1=> Non-Secure state
  633. // <o.17> Interrupt 241 <0=> Secure state <1=> Non-Secure state
  634. // <o.18> Interrupt 242 <0=> Secure state <1=> Non-Secure state
  635. // <o.19> Interrupt 243 <0=> Secure state <1=> Non-Secure state
  636. // <o.20> Interrupt 244 <0=> Secure state <1=> Non-Secure state
  637. // <o.21> Interrupt 245 <0=> Secure state <1=> Non-Secure state
  638. // <o.22> Interrupt 246 <0=> Secure state <1=> Non-Secure state
  639. // <o.23> Interrupt 247 <0=> Secure state <1=> Non-Secure state
  640. // <o.24> Interrupt 248 <0=> Secure state <1=> Non-Secure state
  641. // <o.25> Interrupt 249 <0=> Secure state <1=> Non-Secure state
  642. // <o.26> Interrupt 250 <0=> Secure state <1=> Non-Secure state
  643. // <o.27> Interrupt 251 <0=> Secure state <1=> Non-Secure state
  644. // <o.28> Interrupt 252 <0=> Secure state <1=> Non-Secure state
  645. // <o.29> Interrupt 253 <0=> Secure state <1=> Non-Secure state
  646. // <o.30> Interrupt 254 <0=> Secure state <1=> Non-Secure state
  647. // <o.31> Interrupt 255 <0=> Secure state <1=> Non-Secure state
  648. */
  649. #define NVIC_INIT_ITNS7_VAL 0x00000000
  650. /*
  651. // </e>
  652. */
  653. /*
  654. // <e>Initialize ITNS 8 (Interrupts 256..287)
  655. */
  656. #define NVIC_INIT_ITNS8 0
  657. /*
  658. // Interrupts 256..287
  659. // <o.0> Interrupt 256 <0=> Secure state <1=> Non-Secure state
  660. // <o.1> Interrupt 257 <0=> Secure state <1=> Non-Secure state
  661. // <o.2> Interrupt 258 <0=> Secure state <1=> Non-Secure state
  662. // <o.3> Interrupt 259 <0=> Secure state <1=> Non-Secure state
  663. // <o.4> Interrupt 260 <0=> Secure state <1=> Non-Secure state
  664. // <o.5> Interrupt 261 <0=> Secure state <1=> Non-Secure state
  665. // <o.6> Interrupt 262 <0=> Secure state <1=> Non-Secure state
  666. // <o.7> Interrupt 263 <0=> Secure state <1=> Non-Secure state
  667. // <o.8> Interrupt 264 <0=> Secure state <1=> Non-Secure state
  668. // <o.9> Interrupt 265 <0=> Secure state <1=> Non-Secure state
  669. // <o.10> Interrupt 266 <0=> Secure state <1=> Non-Secure state
  670. // <o.11> Interrupt 267 <0=> Secure state <1=> Non-Secure state
  671. // <o.12> Interrupt 268 <0=> Secure state <1=> Non-Secure state
  672. // <o.13> Interrupt 269 <0=> Secure state <1=> Non-Secure state
  673. // <o.14> Interrupt 270 <0=> Secure state <1=> Non-Secure state
  674. // <o.15> Interrupt 271 <0=> Secure state <1=> Non-Secure state
  675. // <o.16> Interrupt 272 <0=> Secure state <1=> Non-Secure state
  676. // <o.17> Interrupt 273 <0=> Secure state <1=> Non-Secure state
  677. // <o.18> Interrupt 274 <0=> Secure state <1=> Non-Secure state
  678. // <o.19> Interrupt 275 <0=> Secure state <1=> Non-Secure state
  679. // <o.20> Interrupt 276 <0=> Secure state <1=> Non-Secure state
  680. // <o.21> Interrupt 277 <0=> Secure state <1=> Non-Secure state
  681. // <o.22> Interrupt 278 <0=> Secure state <1=> Non-Secure state
  682. // <o.23> Interrupt 279 <0=> Secure state <1=> Non-Secure state
  683. // <o.24> Interrupt 280 <0=> Secure state <1=> Non-Secure state
  684. // <o.25> Interrupt 281 <0=> Secure state <1=> Non-Secure state
  685. // <o.26> Interrupt 282 <0=> Secure state <1=> Non-Secure state
  686. // <o.27> Interrupt 283 <0=> Secure state <1=> Non-Secure state
  687. // <o.28> Interrupt 284 <0=> Secure state <1=> Non-Secure state
  688. // <o.29> Interrupt 285 <0=> Secure state <1=> Non-Secure state
  689. // <o.30> Interrupt 286 <0=> Secure state <1=> Non-Secure state
  690. // <o.31> Interrupt 287 <0=> Secure state <1=> Non-Secure state
  691. */
  692. #define NVIC_INIT_ITNS8_VAL 0x00000000
  693. /*
  694. // </e>
  695. */
  696. /*
  697. // <e>Initialize ITNS 9 (Interrupts 288..319)
  698. */
  699. #define NVIC_INIT_ITNS9 0
  700. /*
  701. // Interrupts 288..319
  702. // <o.0> Interrupt 288 <0=> Secure state <1=> Non-Secure state
  703. // <o.1> Interrupt 289 <0=> Secure state <1=> Non-Secure state
  704. // <o.2> Interrupt 290 <0=> Secure state <1=> Non-Secure state
  705. // <o.3> Interrupt 291 <0=> Secure state <1=> Non-Secure state
  706. // <o.4> Interrupt 292 <0=> Secure state <1=> Non-Secure state
  707. // <o.5> Interrupt 293 <0=> Secure state <1=> Non-Secure state
  708. // <o.6> Interrupt 294 <0=> Secure state <1=> Non-Secure state
  709. // <o.7> Interrupt 295 <0=> Secure state <1=> Non-Secure state
  710. // <o.8> Interrupt 296 <0=> Secure state <1=> Non-Secure state
  711. // <o.9> Interrupt 297 <0=> Secure state <1=> Non-Secure state
  712. // <o.10> Interrupt 298 <0=> Secure state <1=> Non-Secure state
  713. // <o.11> Interrupt 299 <0=> Secure state <1=> Non-Secure state
  714. // <o.12> Interrupt 300 <0=> Secure state <1=> Non-Secure state
  715. // <o.13> Interrupt 301 <0=> Secure state <1=> Non-Secure state
  716. // <o.14> Interrupt 302 <0=> Secure state <1=> Non-Secure state
  717. // <o.15> Interrupt 303 <0=> Secure state <1=> Non-Secure state
  718. // <o.16> Interrupt 304 <0=> Secure state <1=> Non-Secure state
  719. // <o.17> Interrupt 305 <0=> Secure state <1=> Non-Secure state
  720. // <o.18> Interrupt 306 <0=> Secure state <1=> Non-Secure state
  721. // <o.19> Interrupt 307 <0=> Secure state <1=> Non-Secure state
  722. // <o.20> Interrupt 308 <0=> Secure state <1=> Non-Secure state
  723. // <o.21> Interrupt 309 <0=> Secure state <1=> Non-Secure state
  724. // <o.22> Interrupt 310 <0=> Secure state <1=> Non-Secure state
  725. // <o.23> Interrupt 311 <0=> Secure state <1=> Non-Secure state
  726. // <o.24> Interrupt 312 <0=> Secure state <1=> Non-Secure state
  727. // <o.25> Interrupt 313 <0=> Secure state <1=> Non-Secure state
  728. // <o.26> Interrupt 314 <0=> Secure state <1=> Non-Secure state
  729. // <o.27> Interrupt 315 <0=> Secure state <1=> Non-Secure state
  730. // <o.28> Interrupt 316 <0=> Secure state <1=> Non-Secure state
  731. // <o.29> Interrupt 317 <0=> Secure state <1=> Non-Secure state
  732. // <o.30> Interrupt 318 <0=> Secure state <1=> Non-Secure state
  733. // <o.31> Interrupt 319 <0=> Secure state <1=> Non-Secure state
  734. */
  735. #define NVIC_INIT_ITNS9_VAL 0x00000000
  736. /*
  737. // </e>
  738. */
  739. /*
  740. // <e>Initialize ITNS 10 (Interrupts 320..351)
  741. */
  742. #define NVIC_INIT_ITNS10 0
  743. /*
  744. // Interrupts 320..351
  745. // <o.0> Interrupt 320 <0=> Secure state <1=> Non-Secure state
  746. // <o.1> Interrupt 321 <0=> Secure state <1=> Non-Secure state
  747. // <o.2> Interrupt 322 <0=> Secure state <1=> Non-Secure state
  748. // <o.3> Interrupt 323 <0=> Secure state <1=> Non-Secure state
  749. // <o.4> Interrupt 324 <0=> Secure state <1=> Non-Secure state
  750. // <o.5> Interrupt 325 <0=> Secure state <1=> Non-Secure state
  751. // <o.6> Interrupt 326 <0=> Secure state <1=> Non-Secure state
  752. // <o.7> Interrupt 327 <0=> Secure state <1=> Non-Secure state
  753. // <o.8> Interrupt 328 <0=> Secure state <1=> Non-Secure state
  754. // <o.9> Interrupt 329 <0=> Secure state <1=> Non-Secure state
  755. // <o.10> Interrupt 330 <0=> Secure state <1=> Non-Secure state
  756. // <o.11> Interrupt 331 <0=> Secure state <1=> Non-Secure state
  757. // <o.12> Interrupt 332 <0=> Secure state <1=> Non-Secure state
  758. // <o.13> Interrupt 333 <0=> Secure state <1=> Non-Secure state
  759. // <o.14> Interrupt 334 <0=> Secure state <1=> Non-Secure state
  760. // <o.15> Interrupt 335 <0=> Secure state <1=> Non-Secure state
  761. // <o.16> Interrupt 336 <0=> Secure state <1=> Non-Secure state
  762. // <o.17> Interrupt 337 <0=> Secure state <1=> Non-Secure state
  763. // <o.18> Interrupt 338 <0=> Secure state <1=> Non-Secure state
  764. // <o.19> Interrupt 339 <0=> Secure state <1=> Non-Secure state
  765. // <o.20> Interrupt 340 <0=> Secure state <1=> Non-Secure state
  766. // <o.21> Interrupt 341 <0=> Secure state <1=> Non-Secure state
  767. // <o.22> Interrupt 342 <0=> Secure state <1=> Non-Secure state
  768. // <o.23> Interrupt 343 <0=> Secure state <1=> Non-Secure state
  769. // <o.24> Interrupt 344 <0=> Secure state <1=> Non-Secure state
  770. // <o.25> Interrupt 345 <0=> Secure state <1=> Non-Secure state
  771. // <o.26> Interrupt 346 <0=> Secure state <1=> Non-Secure state
  772. // <o.27> Interrupt 347 <0=> Secure state <1=> Non-Secure state
  773. // <o.28> Interrupt 348 <0=> Secure state <1=> Non-Secure state
  774. // <o.29> Interrupt 349 <0=> Secure state <1=> Non-Secure state
  775. // <o.30> Interrupt 350 <0=> Secure state <1=> Non-Secure state
  776. // <o.31> Interrupt 351 <0=> Secure state <1=> Non-Secure state
  777. */
  778. #define NVIC_INIT_ITNS10_VAL 0x00000000
  779. /*
  780. // </e>
  781. */
  782. /*
  783. // <e>Initialize ITNS 11 (Interrupts 352..383)
  784. */
  785. #define NVIC_INIT_ITNS11 0
  786. /*
  787. // Interrupts 352..383
  788. // <o.0> Interrupt 352 <0=> Secure state <1=> Non-Secure state
  789. // <o.1> Interrupt 353 <0=> Secure state <1=> Non-Secure state
  790. // <o.2> Interrupt 354 <0=> Secure state <1=> Non-Secure state
  791. // <o.3> Interrupt 355 <0=> Secure state <1=> Non-Secure state
  792. // <o.4> Interrupt 356 <0=> Secure state <1=> Non-Secure state
  793. // <o.5> Interrupt 357 <0=> Secure state <1=> Non-Secure state
  794. // <o.6> Interrupt 358 <0=> Secure state <1=> Non-Secure state
  795. // <o.7> Interrupt 359 <0=> Secure state <1=> Non-Secure state
  796. // <o.8> Interrupt 360 <0=> Secure state <1=> Non-Secure state
  797. // <o.9> Interrupt 361 <0=> Secure state <1=> Non-Secure state
  798. // <o.10> Interrupt 362 <0=> Secure state <1=> Non-Secure state
  799. // <o.11> Interrupt 363 <0=> Secure state <1=> Non-Secure state
  800. // <o.12> Interrupt 364 <0=> Secure state <1=> Non-Secure state
  801. // <o.13> Interrupt 365 <0=> Secure state <1=> Non-Secure state
  802. // <o.14> Interrupt 366 <0=> Secure state <1=> Non-Secure state
  803. // <o.15> Interrupt 367 <0=> Secure state <1=> Non-Secure state
  804. // <o.16> Interrupt 368 <0=> Secure state <1=> Non-Secure state
  805. // <o.17> Interrupt 369 <0=> Secure state <1=> Non-Secure state
  806. // <o.18> Interrupt 370 <0=> Secure state <1=> Non-Secure state
  807. // <o.19> Interrupt 371 <0=> Secure state <1=> Non-Secure state
  808. // <o.20> Interrupt 372 <0=> Secure state <1=> Non-Secure state
  809. // <o.21> Interrupt 373 <0=> Secure state <1=> Non-Secure state
  810. // <o.22> Interrupt 374 <0=> Secure state <1=> Non-Secure state
  811. // <o.23> Interrupt 375 <0=> Secure state <1=> Non-Secure state
  812. // <o.24> Interrupt 376 <0=> Secure state <1=> Non-Secure state
  813. // <o.25> Interrupt 377 <0=> Secure state <1=> Non-Secure state
  814. // <o.26> Interrupt 378 <0=> Secure state <1=> Non-Secure state
  815. // <o.27> Interrupt 379 <0=> Secure state <1=> Non-Secure state
  816. // <o.28> Interrupt 380 <0=> Secure state <1=> Non-Secure state
  817. // <o.29> Interrupt 381 <0=> Secure state <1=> Non-Secure state
  818. // <o.30> Interrupt 382 <0=> Secure state <1=> Non-Secure state
  819. // <o.31> Interrupt 383 <0=> Secure state <1=> Non-Secure state
  820. */
  821. #define NVIC_INIT_ITNS11_VAL 0x00000000
  822. /*
  823. // </e>
  824. */
  825. /*
  826. // <e>Initialize ITNS 12 (Interrupts 384..415)
  827. */
  828. #define NVIC_INIT_ITNS12 0
  829. /*
  830. // Interrupts 384..415
  831. // <o.0> Interrupt 384 <0=> Secure state <1=> Non-Secure state
  832. // <o.1> Interrupt 385 <0=> Secure state <1=> Non-Secure state
  833. // <o.2> Interrupt 386 <0=> Secure state <1=> Non-Secure state
  834. // <o.3> Interrupt 387 <0=> Secure state <1=> Non-Secure state
  835. // <o.4> Interrupt 388 <0=> Secure state <1=> Non-Secure state
  836. // <o.5> Interrupt 389 <0=> Secure state <1=> Non-Secure state
  837. // <o.6> Interrupt 390 <0=> Secure state <1=> Non-Secure state
  838. // <o.7> Interrupt 391 <0=> Secure state <1=> Non-Secure state
  839. // <o.8> Interrupt 392 <0=> Secure state <1=> Non-Secure state
  840. // <o.9> Interrupt 393 <0=> Secure state <1=> Non-Secure state
  841. // <o.10> Interrupt 394 <0=> Secure state <1=> Non-Secure state
  842. // <o.11> Interrupt 395 <0=> Secure state <1=> Non-Secure state
  843. // <o.12> Interrupt 396 <0=> Secure state <1=> Non-Secure state
  844. // <o.13> Interrupt 397 <0=> Secure state <1=> Non-Secure state
  845. // <o.14> Interrupt 398 <0=> Secure state <1=> Non-Secure state
  846. // <o.15> Interrupt 399 <0=> Secure state <1=> Non-Secure state
  847. // <o.16> Interrupt 400 <0=> Secure state <1=> Non-Secure state
  848. // <o.17> Interrupt 401 <0=> Secure state <1=> Non-Secure state
  849. // <o.18> Interrupt 402 <0=> Secure state <1=> Non-Secure state
  850. // <o.19> Interrupt 403 <0=> Secure state <1=> Non-Secure state
  851. // <o.20> Interrupt 404 <0=> Secure state <1=> Non-Secure state
  852. // <o.21> Interrupt 405 <0=> Secure state <1=> Non-Secure state
  853. // <o.22> Interrupt 406 <0=> Secure state <1=> Non-Secure state
  854. // <o.23> Interrupt 407 <0=> Secure state <1=> Non-Secure state
  855. // <o.24> Interrupt 408 <0=> Secure state <1=> Non-Secure state
  856. // <o.25> Interrupt 409 <0=> Secure state <1=> Non-Secure state
  857. // <o.26> Interrupt 410 <0=> Secure state <1=> Non-Secure state
  858. // <o.27> Interrupt 411 <0=> Secure state <1=> Non-Secure state
  859. // <o.28> Interrupt 412 <0=> Secure state <1=> Non-Secure state
  860. // <o.29> Interrupt 413 <0=> Secure state <1=> Non-Secure state
  861. // <o.30> Interrupt 414 <0=> Secure state <1=> Non-Secure state
  862. // <o.31> Interrupt 415 <0=> Secure state <1=> Non-Secure state
  863. */
  864. #define NVIC_INIT_ITNS12_VAL 0x00000000
  865. /*
  866. // </e>
  867. */
  868. /*
  869. // <e>Initialize ITNS 13 (Interrupts 416..447)
  870. */
  871. #define NVIC_INIT_ITNS13 0
  872. /*
  873. // Interrupts 416..447
  874. // <o.0> Interrupt 416 <0=> Secure state <1=> Non-Secure state
  875. // <o.1> Interrupt 417 <0=> Secure state <1=> Non-Secure state
  876. // <o.2> Interrupt 418 <0=> Secure state <1=> Non-Secure state
  877. // <o.3> Interrupt 419 <0=> Secure state <1=> Non-Secure state
  878. // <o.4> Interrupt 420 <0=> Secure state <1=> Non-Secure state
  879. // <o.5> Interrupt 421 <0=> Secure state <1=> Non-Secure state
  880. // <o.6> Interrupt 422 <0=> Secure state <1=> Non-Secure state
  881. // <o.7> Interrupt 423 <0=> Secure state <1=> Non-Secure state
  882. // <o.8> Interrupt 424 <0=> Secure state <1=> Non-Secure state
  883. // <o.9> Interrupt 425 <0=> Secure state <1=> Non-Secure state
  884. // <o.10> Interrupt 426 <0=> Secure state <1=> Non-Secure state
  885. // <o.11> Interrupt 427 <0=> Secure state <1=> Non-Secure state
  886. // <o.12> Interrupt 428 <0=> Secure state <1=> Non-Secure state
  887. // <o.13> Interrupt 429 <0=> Secure state <1=> Non-Secure state
  888. // <o.14> Interrupt 430 <0=> Secure state <1=> Non-Secure state
  889. // <o.15> Interrupt 431 <0=> Secure state <1=> Non-Secure state
  890. // <o.16> Interrupt 432 <0=> Secure state <1=> Non-Secure state
  891. // <o.17> Interrupt 433 <0=> Secure state <1=> Non-Secure state
  892. // <o.18> Interrupt 434 <0=> Secure state <1=> Non-Secure state
  893. // <o.19> Interrupt 435 <0=> Secure state <1=> Non-Secure state
  894. // <o.20> Interrupt 436 <0=> Secure state <1=> Non-Secure state
  895. // <o.21> Interrupt 437 <0=> Secure state <1=> Non-Secure state
  896. // <o.22> Interrupt 438 <0=> Secure state <1=> Non-Secure state
  897. // <o.23> Interrupt 439 <0=> Secure state <1=> Non-Secure state
  898. // <o.24> Interrupt 440 <0=> Secure state <1=> Non-Secure state
  899. // <o.25> Interrupt 441 <0=> Secure state <1=> Non-Secure state
  900. // <o.26> Interrupt 442 <0=> Secure state <1=> Non-Secure state
  901. // <o.27> Interrupt 443 <0=> Secure state <1=> Non-Secure state
  902. // <o.28> Interrupt 444 <0=> Secure state <1=> Non-Secure state
  903. // <o.29> Interrupt 445 <0=> Secure state <1=> Non-Secure state
  904. // <o.30> Interrupt 446 <0=> Secure state <1=> Non-Secure state
  905. // <o.31> Interrupt 447 <0=> Secure state <1=> Non-Secure state
  906. */
  907. #define NVIC_INIT_ITNS13_VAL 0x00000000
  908. /*
  909. // </e>
  910. */
  911. /*
  912. // <e>Initialize ITNS 14 (Interrupts 448..479)
  913. */
  914. #define NVIC_INIT_ITNS14 0
  915. /*
  916. // Interrupts 448..479
  917. // <o.0> Interrupt 448 <0=> Secure state <1=> Non-Secure state
  918. // <o.1> Interrupt 449 <0=> Secure state <1=> Non-Secure state
  919. // <o.2> Interrupt 450 <0=> Secure state <1=> Non-Secure state
  920. // <o.3> Interrupt 451 <0=> Secure state <1=> Non-Secure state
  921. // <o.4> Interrupt 452 <0=> Secure state <1=> Non-Secure state
  922. // <o.5> Interrupt 453 <0=> Secure state <1=> Non-Secure state
  923. // <o.6> Interrupt 454 <0=> Secure state <1=> Non-Secure state
  924. // <o.7> Interrupt 455 <0=> Secure state <1=> Non-Secure state
  925. // <o.8> Interrupt 456 <0=> Secure state <1=> Non-Secure state
  926. // <o.9> Interrupt 457 <0=> Secure state <1=> Non-Secure state
  927. // <o.10> Interrupt 458 <0=> Secure state <1=> Non-Secure state
  928. // <o.11> Interrupt 459 <0=> Secure state <1=> Non-Secure state
  929. // <o.12> Interrupt 460 <0=> Secure state <1=> Non-Secure state
  930. // <o.13> Interrupt 461 <0=> Secure state <1=> Non-Secure state
  931. // <o.14> Interrupt 462 <0=> Secure state <1=> Non-Secure state
  932. // <o.15> Interrupt 463 <0=> Secure state <1=> Non-Secure state
  933. // <o.16> Interrupt 464 <0=> Secure state <1=> Non-Secure state
  934. // <o.17> Interrupt 465 <0=> Secure state <1=> Non-Secure state
  935. // <o.18> Interrupt 466 <0=> Secure state <1=> Non-Secure state
  936. // <o.19> Interrupt 467 <0=> Secure state <1=> Non-Secure state
  937. // <o.20> Interrupt 468 <0=> Secure state <1=> Non-Secure state
  938. // <o.21> Interrupt 469 <0=> Secure state <1=> Non-Secure state
  939. // <o.22> Interrupt 470 <0=> Secure state <1=> Non-Secure state
  940. // <o.23> Interrupt 471 <0=> Secure state <1=> Non-Secure state
  941. // <o.24> Interrupt 472 <0=> Secure state <1=> Non-Secure state
  942. // <o.25> Interrupt 473 <0=> Secure state <1=> Non-Secure state
  943. // <o.26> Interrupt 474 <0=> Secure state <1=> Non-Secure state
  944. // <o.27> Interrupt 475 <0=> Secure state <1=> Non-Secure state
  945. // <o.28> Interrupt 476 <0=> Secure state <1=> Non-Secure state
  946. // <o.29> Interrupt 477 <0=> Secure state <1=> Non-Secure state
  947. // <o.30> Interrupt 478 <0=> Secure state <1=> Non-Secure state
  948. // <o.31> Interrupt 479 <0=> Secure state <1=> Non-Secure state
  949. */
  950. #define NVIC_INIT_ITNS14_VAL 0x00000000
  951. /*
  952. // </e>
  953. */
  954. /*
  955. // <e>Initialize ITNS 15 (Interrupts 480..511)
  956. */
  957. #define NVIC_INIT_ITNS15 0
  958. /*
  959. // Interrupts 480..511
  960. // <o.0> Interrupt 480 <0=> Secure state <1=> Non-Secure state
  961. // <o.1> Interrupt 481 <0=> Secure state <1=> Non-Secure state
  962. // <o.2> Interrupt 482 <0=> Secure state <1=> Non-Secure state
  963. // <o.3> Interrupt 483 <0=> Secure state <1=> Non-Secure state
  964. // <o.4> Interrupt 484 <0=> Secure state <1=> Non-Secure state
  965. // <o.5> Interrupt 485 <0=> Secure state <1=> Non-Secure state
  966. // <o.6> Interrupt 486 <0=> Secure state <1=> Non-Secure state
  967. // <o.7> Interrupt 487 <0=> Secure state <1=> Non-Secure state
  968. // <o.8> Interrupt 488 <0=> Secure state <1=> Non-Secure state
  969. // <o.9> Interrupt 489 <0=> Secure state <1=> Non-Secure state
  970. // <o.10> Interrupt 490 <0=> Secure state <1=> Non-Secure state
  971. // <o.11> Interrupt 491 <0=> Secure state <1=> Non-Secure state
  972. // <o.12> Interrupt 492 <0=> Secure state <1=> Non-Secure state
  973. // <o.13> Interrupt 493 <0=> Secure state <1=> Non-Secure state
  974. // <o.14> Interrupt 494 <0=> Secure state <1=> Non-Secure state
  975. // <o.15> Interrupt 495 <0=> Secure state <1=> Non-Secure state
  976. // <o.16> Interrupt 496 <0=> Secure state <1=> Non-Secure state
  977. // <o.17> Interrupt 497 <0=> Secure state <1=> Non-Secure state
  978. // <o.18> Interrupt 498 <0=> Secure state <1=> Non-Secure state
  979. // <o.19> Interrupt 499 <0=> Secure state <1=> Non-Secure state
  980. // <o.20> Interrupt 500 <0=> Secure state <1=> Non-Secure state
  981. // <o.21> Interrupt 501 <0=> Secure state <1=> Non-Secure state
  982. // <o.22> Interrupt 502 <0=> Secure state <1=> Non-Secure state
  983. // <o.23> Interrupt 503 <0=> Secure state <1=> Non-Secure state
  984. // <o.24> Interrupt 504 <0=> Secure state <1=> Non-Secure state
  985. // <o.25> Interrupt 505 <0=> Secure state <1=> Non-Secure state
  986. // <o.26> Interrupt 506 <0=> Secure state <1=> Non-Secure state
  987. // <o.27> Interrupt 507 <0=> Secure state <1=> Non-Secure state
  988. // <o.28> Interrupt 508 <0=> Secure state <1=> Non-Secure state
  989. // <o.29> Interrupt 509 <0=> Secure state <1=> Non-Secure state
  990. // <o.30> Interrupt 510 <0=> Secure state <1=> Non-Secure state
  991. // <o.31> Interrupt 511 <0=> Secure state <1=> Non-Secure state
  992. */
  993. #define NVIC_INIT_ITNS15_VAL 0x00000000
  994. /*
  995. // </e>
  996. */
  997. /*
  998. // </h>
  999. */
  1000. /*
  1001. max 128 SAU regions.
  1002. SAU regions are defined in partition.h
  1003. */
  1004. #define SAU_INIT_REGION(n) \
  1005. SAU->RNR = (n & SAU_RNR_REGION_Msk); \
  1006. SAU->RBAR = (SAU_INIT_START##n & SAU_RBAR_BADDR_Msk); \
  1007. SAU->RLAR = (SAU_INIT_END##n & SAU_RLAR_LADDR_Msk) | \
  1008. ((SAU_INIT_NSC##n << SAU_RLAR_NSC_Pos) & SAU_RLAR_NSC_Msk) | 1U
  1009. /**
  1010. \brief Setup a SAU Region
  1011. \details Writes the region information contained in SAU_Region to the
  1012. registers SAU_RNR, SAU_RBAR, and SAU_RLAR
  1013. */
  1014. __STATIC_INLINE void TZ_SAU_Setup (void)
  1015. {
  1016. #if defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U)
  1017. #if defined (SAU_INIT_REGION0) && (SAU_INIT_REGION0 == 1U)
  1018. SAU_INIT_REGION(0);
  1019. #endif
  1020. #if defined (SAU_INIT_REGION1) && (SAU_INIT_REGION1 == 1U)
  1021. SAU_INIT_REGION(1);
  1022. #endif
  1023. #if defined (SAU_INIT_REGION2) && (SAU_INIT_REGION2 == 1U)
  1024. SAU_INIT_REGION(2);
  1025. #endif
  1026. #if defined (SAU_INIT_REGION3) && (SAU_INIT_REGION3 == 1U)
  1027. SAU_INIT_REGION(3);
  1028. #endif
  1029. #if defined (SAU_INIT_REGION4) && (SAU_INIT_REGION4 == 1U)
  1030. SAU_INIT_REGION(4);
  1031. #endif
  1032. #if defined (SAU_INIT_REGION5) && (SAU_INIT_REGION5 == 1U)
  1033. SAU_INIT_REGION(5);
  1034. #endif
  1035. #if defined (SAU_INIT_REGION6) && (SAU_INIT_REGION6 == 1U)
  1036. SAU_INIT_REGION(6);
  1037. #endif
  1038. #if defined (SAU_INIT_REGION7) && (SAU_INIT_REGION7 == 1U)
  1039. SAU_INIT_REGION(7);
  1040. #endif
  1041. /* repeat this for all possible SAU regions */
  1042. #endif /* defined (__SAUREGION_PRESENT) && (__SAUREGION_PRESENT == 1U) */
  1043. #if defined (SAU_INIT_CTRL) && (SAU_INIT_CTRL == 1U)
  1044. SAU->CTRL = ((SAU_INIT_CTRL_ENABLE << SAU_CTRL_ENABLE_Pos) & SAU_CTRL_ENABLE_Msk) |
  1045. ((SAU_INIT_CTRL_ALLNS << SAU_CTRL_ALLNS_Pos) & SAU_CTRL_ALLNS_Msk) ;
  1046. #endif
  1047. #if defined (SCB_CSR_AIRCR_INIT) && (SCB_CSR_AIRCR_INIT == 1U)
  1048. SCB->SCR = (SCB->SCR & ~(SCB_SCR_SLEEPDEEPS_Msk )) |
  1049. ((SCB_CSR_DEEPSLEEPS_VAL << SCB_SCR_SLEEPDEEPS_Pos) & SCB_SCR_SLEEPDEEPS_Msk);
  1050. SCB->AIRCR = (SCB->AIRCR & ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_SYSRESETREQS_Msk |
  1051. SCB_AIRCR_BFHFNMINS_Msk | SCB_AIRCR_PRIS_Msk )) |
  1052. ((0x05FAU << SCB_AIRCR_VECTKEY_Pos) & SCB_AIRCR_VECTKEY_Msk) |
  1053. ((SCB_AIRCR_SYSRESETREQS_VAL << SCB_AIRCR_SYSRESETREQS_Pos) & SCB_AIRCR_SYSRESETREQS_Msk) |
  1054. ((SCB_AIRCR_PRIS_VAL << SCB_AIRCR_PRIS_Pos) & SCB_AIRCR_PRIS_Msk) |
  1055. ((SCB_AIRCR_BFHFNMINS_VAL << SCB_AIRCR_BFHFNMINS_Pos) & SCB_AIRCR_BFHFNMINS_Msk);
  1056. #endif /* defined (SCB_CSR_AIRCR_INIT) && (SCB_CSR_AIRCR_INIT == 1U) */
  1057. #if defined (__FPU_USED) && (__FPU_USED == 1U) && \
  1058. defined (TZ_FPU_NS_USAGE) && (TZ_FPU_NS_USAGE == 1U)
  1059. SCB->NSACR = (SCB->NSACR & ~(SCB_NSACR_CP10_Msk | SCB_NSACR_CP10_Msk)) |
  1060. ((SCB_NSACR_CP10_11_VAL << SCB_NSACR_CP10_Pos) & (SCB_NSACR_CP10_Msk | SCB_NSACR_CP11_Msk));
  1061. FPU->FPCCR = (FPU->FPCCR & ~(FPU_FPCCR_TS_Msk | FPU_FPCCR_CLRONRETS_Msk | FPU_FPCCR_CLRONRET_Msk)) |
  1062. ((FPU_FPCCR_TS_VAL << FPU_FPCCR_TS_Pos ) & FPU_FPCCR_TS_Msk ) |
  1063. ((FPU_FPCCR_CLRONRETS_VAL << FPU_FPCCR_CLRONRETS_Pos) & FPU_FPCCR_CLRONRETS_Msk) |
  1064. ((FPU_FPCCR_CLRONRET_VAL << FPU_FPCCR_CLRONRET_Pos ) & FPU_FPCCR_CLRONRET_Msk );
  1065. #endif
  1066. #if defined (NVIC_INIT_ITNS0) && (NVIC_INIT_ITNS0 == 1U)
  1067. NVIC->ITNS[0] = NVIC_INIT_ITNS0_VAL;
  1068. #endif
  1069. #if defined (NVIC_INIT_ITNS1) && (NVIC_INIT_ITNS1 == 1U)
  1070. NVIC->ITNS[1] = NVIC_INIT_ITNS1_VAL;
  1071. #endif
  1072. #if defined (NVIC_INIT_ITNS2) && (NVIC_INIT_ITNS2 == 1U)
  1073. NVIC->ITNS[2] = NVIC_INIT_ITNS2_VAL;
  1074. #endif
  1075. #if defined (NVIC_INIT_ITNS3) && (NVIC_INIT_ITNS3 == 1U)
  1076. NVIC->ITNS[3] = NVIC_INIT_ITNS3_VAL;
  1077. #endif
  1078. #if defined (NVIC_INIT_ITNS4) && (NVIC_INIT_ITNS4 == 1U)
  1079. NVIC->ITNS[4] = NVIC_INIT_ITNS4_VAL;
  1080. #endif
  1081. #if defined (NVIC_INIT_ITNS5) && (NVIC_INIT_ITNS5 == 1U)
  1082. NVIC->ITNS[5] = NVIC_INIT_ITNS5_VAL;
  1083. #endif
  1084. #if defined (NVIC_INIT_ITNS6) && (NVIC_INIT_ITNS6 == 1U)
  1085. NVIC->ITNS[6] = NVIC_INIT_ITNS6_VAL;
  1086. #endif
  1087. #if defined (NVIC_INIT_ITNS7) && (NVIC_INIT_ITNS7 == 1U)
  1088. NVIC->ITNS[7] = NVIC_INIT_ITNS7_VAL;
  1089. #endif
  1090. #if defined (NVIC_INIT_ITNS8) && (NVIC_INIT_ITNS8 == 1U)
  1091. NVIC->ITNS[8] = NVIC_INIT_ITNS8_VAL;
  1092. #endif
  1093. #if defined (NVIC_INIT_ITNS9) && (NVIC_INIT_ITNS9 == 1U)
  1094. NVIC->ITNS[9] = NVIC_INIT_ITNS9_VAL;
  1095. #endif
  1096. #if defined (NVIC_INIT_ITNS10) && (NVIC_INIT_ITNS10 == 1U)
  1097. NVIC->ITNS[10] = NVIC_INIT_ITNS10_VAL;
  1098. #endif
  1099. #if defined (NVIC_INIT_ITNS11) && (NVIC_INIT_ITNS11 == 1U)
  1100. NVIC->ITNS[11] = NVIC_INIT_ITNS11_VAL;
  1101. #endif
  1102. #if defined (NVIC_INIT_ITNS12) && (NVIC_INIT_ITNS12 == 1U)
  1103. NVIC->ITNS[12] = NVIC_INIT_ITNS12_VAL;
  1104. #endif
  1105. #if defined (NVIC_INIT_ITNS13) && (NVIC_INIT_ITNS13 == 1U)
  1106. NVIC->ITNS[13] = NVIC_INIT_ITNS13_VAL;
  1107. #endif
  1108. #if defined (NVIC_INIT_ITNS14) && (NVIC_INIT_ITNS14 == 1U)
  1109. NVIC->ITNS[14] = NVIC_INIT_ITNS14_VAL;
  1110. #endif
  1111. #if defined (NVIC_INIT_ITNS15) && (NVIC_INIT_ITNS15 == 1U)
  1112. NVIC->ITNS[15] = NVIC_INIT_ITNS15_VAL;
  1113. #endif
  1114. /* repeat this for all possible ITNS elements */
  1115. }
  1116. #endif /* PARTITION_ARMCM35P_H */