nrf9160.h 165 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259
  1. /*
  2. * Copyright (c) 2010 - 2020, Nordic Semiconductor ASA
  3. *
  4. * All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without modification,
  7. * are permitted provided that the following conditions are met:
  8. *
  9. * 1. Redistributions of source code must retain the above copyright notice, this
  10. * list of conditions and the following disclaimer.
  11. *
  12. * 2. Redistributions in binary form, except as embedded into a Nordic
  13. * Semiconductor ASA integrated circuit in a product or a software update for
  14. * such product, must reproduce the above copyright notice, this list of
  15. * conditions and the following disclaimer in the documentation and/or other
  16. * materials provided with the distribution.
  17. *
  18. * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
  19. * contributors may be used to endorse or promote products derived from this
  20. * software without specific prior written permission.
  21. *
  22. * 4. This software, with or without modification, must only be used with a
  23. * Nordic Semiconductor ASA integrated circuit.
  24. *
  25. * 5. Any software provided in binary form under this license must not be reverse
  26. * engineered, decompiled, modified and/or disassembled.
  27. *
  28. * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
  29. * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  30. * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
  31. * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
  32. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  33. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  34. * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  37. * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  38. *
  39. * @file nrf9160.h
  40. * @brief CMSIS HeaderFile
  41. * @version 1
  42. * @date 04. March 2020
  43. * @note Generated by SVDConv V3.3.25 on Wednesday, 04.03.2020 14:59:25
  44. * from File 'nrf9160.svd',
  45. * last modified on Wednesday, 04.03.2020 13:59:18
  46. */
  47. /** @addtogroup Nordic Semiconductor
  48. * @{
  49. */
  50. /** @addtogroup nrf9160
  51. * @{
  52. */
  53. #ifndef NRF9160_H
  54. #define NRF9160_H
  55. #ifdef __cplusplus
  56. extern "C" {
  57. #endif
  58. /** @addtogroup Configuration_of_CMSIS
  59. * @{
  60. */
  61. /* =========================================================================================================================== */
  62. /* ================ Interrupt Number Definition ================ */
  63. /* =========================================================================================================================== */
  64. typedef enum {
  65. /* ======================================= ARM Cortex-M33 Specific Interrupt Numbers ======================================= */
  66. Reset_IRQn = -15, /*!< -15 Reset Vector, invoked on Power up and warm reset */
  67. NonMaskableInt_IRQn = -14, /*!< -14 Non maskable Interrupt, cannot be stopped or preempted */
  68. HardFault_IRQn = -13, /*!< -13 Hard Fault, all classes of Fault */
  69. MemoryManagement_IRQn = -12, /*!< -12 Memory Management, MPU mismatch, including Access Violation
  70. and No Match */
  71. BusFault_IRQn = -11, /*!< -11 Bus Fault, Pre-Fetch-, Memory Access Fault, other address/memory
  72. related Fault */
  73. UsageFault_IRQn = -10, /*!< -10 Usage Fault, i.e. Undef Instruction, Illegal State Transition */
  74. SecureFault_IRQn = -9, /*!< -9 Secure Fault Handler */
  75. SVCall_IRQn = -5, /*!< -5 System Service Call via SVC instruction */
  76. DebugMonitor_IRQn = -4, /*!< -4 Debug Monitor */
  77. PendSV_IRQn = -2, /*!< -2 Pendable request for system service */
  78. SysTick_IRQn = -1, /*!< -1 System Tick Timer */
  79. /* ========================================== nrf9160 Specific Interrupt Numbers =========================================== */
  80. SPU_IRQn = 3, /*!< 3 SPU */
  81. CLOCK_POWER_IRQn = 5, /*!< 5 CLOCK_POWER */
  82. UARTE0_SPIM0_SPIS0_TWIM0_TWIS0_IRQn= 8, /*!< 8 UARTE0_SPIM0_SPIS0_TWIM0_TWIS0 */
  83. UARTE1_SPIM1_SPIS1_TWIM1_TWIS1_IRQn= 9, /*!< 9 UARTE1_SPIM1_SPIS1_TWIM1_TWIS1 */
  84. UARTE2_SPIM2_SPIS2_TWIM2_TWIS2_IRQn= 10, /*!< 10 UARTE2_SPIM2_SPIS2_TWIM2_TWIS2 */
  85. UARTE3_SPIM3_SPIS3_TWIM3_TWIS3_IRQn= 11, /*!< 11 UARTE3_SPIM3_SPIS3_TWIM3_TWIS3 */
  86. GPIOTE0_IRQn = 13, /*!< 13 GPIOTE0 */
  87. SAADC_IRQn = 14, /*!< 14 SAADC */
  88. TIMER0_IRQn = 15, /*!< 15 TIMER0 */
  89. TIMER1_IRQn = 16, /*!< 16 TIMER1 */
  90. TIMER2_IRQn = 17, /*!< 17 TIMER2 */
  91. RTC0_IRQn = 20, /*!< 20 RTC0 */
  92. RTC1_IRQn = 21, /*!< 21 RTC1 */
  93. WDT_IRQn = 24, /*!< 24 WDT */
  94. EGU0_IRQn = 27, /*!< 27 EGU0 */
  95. EGU1_IRQn = 28, /*!< 28 EGU1 */
  96. EGU2_IRQn = 29, /*!< 29 EGU2 */
  97. EGU3_IRQn = 30, /*!< 30 EGU3 */
  98. EGU4_IRQn = 31, /*!< 31 EGU4 */
  99. EGU5_IRQn = 32, /*!< 32 EGU5 */
  100. PWM0_IRQn = 33, /*!< 33 PWM0 */
  101. PWM1_IRQn = 34, /*!< 34 PWM1 */
  102. PWM2_IRQn = 35, /*!< 35 PWM2 */
  103. PWM3_IRQn = 36, /*!< 36 PWM3 */
  104. PDM_IRQn = 38, /*!< 38 PDM */
  105. I2S_IRQn = 40, /*!< 40 I2S */
  106. IPC_IRQn = 42, /*!< 42 IPC */
  107. FPU_IRQn = 44, /*!< 44 FPU */
  108. GPIOTE1_IRQn = 49, /*!< 49 GPIOTE1 */
  109. KMU_IRQn = 57, /*!< 57 KMU */
  110. CRYPTOCELL_IRQn = 64 /*!< 64 CRYPTOCELL */
  111. } IRQn_Type;
  112. /* =========================================================================================================================== */
  113. /* ================ Processor and Core Peripheral Section ================ */
  114. /* =========================================================================================================================== */
  115. /* ========================== Configuration of the ARM Cortex-M33 Processor and Core Peripherals =========================== */
  116. #define __CM33_REV 0x0004U /*!< CM33 Core Revision */
  117. #define __DSP_PRESENT 1 /*!< DSP present or not */
  118. #define __NVIC_PRIO_BITS 3 /*!< Number of Bits used for Priority Levels */
  119. #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
  120. #define __VTOR_PRESENT 1 /*!< Set to 1 if CPU supports Vector Table Offset Register */
  121. #define __MPU_PRESENT 1 /*!< MPU present */
  122. #define __FPU_PRESENT 1 /*!< FPU present */
  123. #define __FPU_DP 0 /*!< Double Precision FPU */
  124. #define __SAU_REGION_PRESENT 0 /*!< SAU present */
  125. /** @} */ /* End of group Configuration_of_CMSIS */
  126. #include "core_cm33.h" /*!< ARM Cortex-M33 processor and core peripherals */
  127. #include "system_nrf9160.h" /*!< nrf9160 System */
  128. #ifndef __IM /*!< Fallback for older CMSIS versions */
  129. #define __IM __I
  130. #endif
  131. #ifndef __OM /*!< Fallback for older CMSIS versions */
  132. #define __OM __O
  133. #endif
  134. #ifndef __IOM /*!< Fallback for older CMSIS versions */
  135. #define __IOM __IO
  136. #endif
  137. /* =========================================================================================================================== */
  138. /* ================ Device Specific Cluster Section ================ */
  139. /* =========================================================================================================================== */
  140. /** @addtogroup Device_Peripheral_clusters
  141. * @{
  142. */
  143. /**
  144. * @brief FICR_INFO [INFO] (Device info)
  145. */
  146. typedef struct {
  147. __IM uint32_t RESERVED;
  148. __IM uint32_t DEVICEID[2]; /*!< (@ 0x00000004) Description collection: Device identifier */
  149. __IM uint32_t PART; /*!< (@ 0x0000000C) Part code */
  150. __IM uint32_t VARIANT; /*!< (@ 0x00000010) Part Variant, Hardware version and Production
  151. configuration */
  152. __IM uint32_t PACKAGE; /*!< (@ 0x00000014) Package option */
  153. __IM uint32_t RAM; /*!< (@ 0x00000018) RAM variant */
  154. __IM uint32_t FLASH; /*!< (@ 0x0000001C) Flash variant */
  155. __IM uint32_t CODEPAGESIZE; /*!< (@ 0x00000020) Code memory page size */
  156. __IM uint32_t CODESIZE; /*!< (@ 0x00000024) Code memory size */
  157. __IM uint32_t DEVICETYPE; /*!< (@ 0x00000028) Device type */
  158. } FICR_INFO_Type; /*!< Size = 44 (0x2c) */
  159. /**
  160. * @brief FICR_TRIMCNF [TRIMCNF] (Unspecified)
  161. */
  162. typedef struct {
  163. __IM uint32_t ADDR; /*!< (@ 0x00000000) Description cluster: Address */
  164. __IM uint32_t DATA; /*!< (@ 0x00000004) Description cluster: Data */
  165. } FICR_TRIMCNF_Type; /*!< Size = 8 (0x8) */
  166. /**
  167. * @brief FICR_TRNG90B [TRNG90B] (NIST800-90B RNG calibration data)
  168. */
  169. typedef struct {
  170. __IM uint32_t BYTES; /*!< (@ 0x00000000) Amount of bytes for the required entropy bits */
  171. __IM uint32_t RCCUTOFF; /*!< (@ 0x00000004) Repetition counter cutoff */
  172. __IM uint32_t APCUTOFF; /*!< (@ 0x00000008) Adaptive proportion cutoff */
  173. __IM uint32_t STARTUP; /*!< (@ 0x0000000C) Amount of bytes for the startup tests */
  174. __IM uint32_t ROSC1; /*!< (@ 0x00000010) Sample count for ring oscillator 1 */
  175. __IM uint32_t ROSC2; /*!< (@ 0x00000014) Sample count for ring oscillator 2 */
  176. __IM uint32_t ROSC3; /*!< (@ 0x00000018) Sample count for ring oscillator 3 */
  177. __IM uint32_t ROSC4; /*!< (@ 0x0000001C) Sample count for ring oscillator 4 */
  178. } FICR_TRNG90B_Type; /*!< Size = 32 (0x20) */
  179. /**
  180. * @brief UICR_KEYSLOT_CONFIG [CONFIG] (Unspecified)
  181. */
  182. typedef struct {
  183. __IOM uint32_t DEST; /*!< (@ 0x00000000) Description cluster: Destination address where
  184. content of the key value registers (KEYSLOT.KEYn.VALUE[0-3
  185. ) will be pushed by KMU. Note that this
  186. address MUST match that of a peripherals
  187. APB mapped write-only key registers, else
  188. the KMU can push this key value into an
  189. address range which the CPU can potentially
  190. read! */
  191. __IOM uint32_t PERM; /*!< (@ 0x00000004) Description cluster: Define permissions for the
  192. key slot. Bits 0-15 and 16-31 can only be
  193. written when equal to 0xFFFF. */
  194. } UICR_KEYSLOT_CONFIG_Type; /*!< Size = 8 (0x8) */
  195. /**
  196. * @brief UICR_KEYSLOT_KEY [KEY] (Unspecified)
  197. */
  198. typedef struct {
  199. __IOM uint32_t VALUE[4]; /*!< (@ 0x00000000) Description collection: Define bits [31+o*32:0+o*32]
  200. of value assigned to KMU key slot. */
  201. } UICR_KEYSLOT_KEY_Type; /*!< Size = 16 (0x10) */
  202. /**
  203. * @brief UICR_KEYSLOT [KEYSLOT] (Unspecified)
  204. */
  205. typedef struct {
  206. __IOM UICR_KEYSLOT_CONFIG_Type CONFIG[128]; /*!< (@ 0x00000000) Unspecified */
  207. __IOM UICR_KEYSLOT_KEY_Type KEY[128]; /*!< (@ 0x00000400) Unspecified */
  208. } UICR_KEYSLOT_Type; /*!< Size = 3072 (0xc00) */
  209. /**
  210. * @brief TAD_PSEL [PSEL] (Unspecified)
  211. */
  212. typedef struct {
  213. __IOM uint32_t TRACECLK; /*!< (@ 0x00000000) Pin number configuration for TRACECLK */
  214. __IOM uint32_t TRACEDATA0; /*!< (@ 0x00000004) Pin number configuration for TRACEDATA[0] */
  215. __IOM uint32_t TRACEDATA1; /*!< (@ 0x00000008) Pin number configuration for TRACEDATA[1] */
  216. __IOM uint32_t TRACEDATA2; /*!< (@ 0x0000000C) Pin number configuration for TRACEDATA[2] */
  217. __IOM uint32_t TRACEDATA3; /*!< (@ 0x00000010) Pin number configuration for TRACEDATA[3] */
  218. } TAD_PSEL_Type; /*!< Size = 20 (0x14) */
  219. /**
  220. * @brief SPU_EXTDOMAIN [EXTDOMAIN] (Unspecified)
  221. */
  222. typedef struct {
  223. __IOM uint32_t PERM; /*!< (@ 0x00000000) Description cluster: Access for bus access generated
  224. from the external domain n List capabilities
  225. of the external domain n */
  226. } SPU_EXTDOMAIN_Type; /*!< Size = 4 (0x4) */
  227. /**
  228. * @brief SPU_DPPI [DPPI] (Unspecified)
  229. */
  230. typedef struct {
  231. __IOM uint32_t PERM; /*!< (@ 0x00000000) Description cluster: Select between secure and
  232. non-secure attribute for the DPPI channels. */
  233. __IOM uint32_t LOCK; /*!< (@ 0x00000004) Description cluster: Prevent further modification
  234. of the corresponding PERM register */
  235. } SPU_DPPI_Type; /*!< Size = 8 (0x8) */
  236. /**
  237. * @brief SPU_GPIOPORT [GPIOPORT] (Unspecified)
  238. */
  239. typedef struct {
  240. __IOM uint32_t PERM; /*!< (@ 0x00000000) Description cluster: Select between secure and
  241. non-secure attribute for pins 0 to 31 of
  242. port n. */
  243. __IOM uint32_t LOCK; /*!< (@ 0x00000004) Description cluster: Prevent further modification
  244. of the corresponding PERM register */
  245. } SPU_GPIOPORT_Type; /*!< Size = 8 (0x8) */
  246. /**
  247. * @brief SPU_FLASHNSC [FLASHNSC] (Unspecified)
  248. */
  249. typedef struct {
  250. __IOM uint32_t REGION; /*!< (@ 0x00000000) Description cluster: Define which flash region
  251. can contain the non-secure callable (NSC)
  252. region n */
  253. __IOM uint32_t SIZE; /*!< (@ 0x00000004) Description cluster: Define the size of the non-secure
  254. callable (NSC) region n */
  255. } SPU_FLASHNSC_Type; /*!< Size = 8 (0x8) */
  256. /**
  257. * @brief SPU_RAMNSC [RAMNSC] (Unspecified)
  258. */
  259. typedef struct {
  260. __IOM uint32_t REGION; /*!< (@ 0x00000000) Description cluster: Define which RAM region
  261. can contain the non-secure callable (NSC)
  262. region n */
  263. __IOM uint32_t SIZE; /*!< (@ 0x00000004) Description cluster: Define the size of the non-secure
  264. callable (NSC) region n */
  265. } SPU_RAMNSC_Type; /*!< Size = 8 (0x8) */
  266. /**
  267. * @brief SPU_FLASHREGION [FLASHREGION] (Unspecified)
  268. */
  269. typedef struct {
  270. __IOM uint32_t PERM; /*!< (@ 0x00000000) Description cluster: Access permissions for flash
  271. region n */
  272. } SPU_FLASHREGION_Type; /*!< Size = 4 (0x4) */
  273. /**
  274. * @brief SPU_RAMREGION [RAMREGION] (Unspecified)
  275. */
  276. typedef struct {
  277. __IOM uint32_t PERM; /*!< (@ 0x00000000) Description cluster: Access permissions for RAM
  278. region n */
  279. } SPU_RAMREGION_Type; /*!< Size = 4 (0x4) */
  280. /**
  281. * @brief SPU_PERIPHID [PERIPHID] (Unspecified)
  282. */
  283. typedef struct {
  284. __IOM uint32_t PERM; /*!< (@ 0x00000000) Description cluster: List capabilities and access
  285. permissions for the peripheral with ID n */
  286. } SPU_PERIPHID_Type; /*!< Size = 4 (0x4) */
  287. /**
  288. * @brief CTRLAPPERI_MAILBOX [MAILBOX] (Unspecified)
  289. */
  290. typedef struct {
  291. __IM uint32_t RXDATA; /*!< (@ 0x00000000) Data sent from the debugger to the CPU */
  292. __IM uint32_t RXSTATUS; /*!< (@ 0x00000004) Status to indicate if data sent from the debugger
  293. to the CPU has been read */
  294. __IM uint32_t RESERVED[30];
  295. __IOM uint32_t TXDATA; /*!< (@ 0x00000080) Data sent from the CPU to the debugger */
  296. __IM uint32_t TXSTATUS; /*!< (@ 0x00000084) Status to indicate if data sent from the CPU
  297. to the debugger has been read */
  298. } CTRLAPPERI_MAILBOX_Type; /*!< Size = 136 (0x88) */
  299. /**
  300. * @brief CTRLAPPERI_ERASEPROTECT [ERASEPROTECT] (Unspecified)
  301. */
  302. typedef struct {
  303. __IOM uint32_t LOCK; /*!< (@ 0x00000000) Lock register ERASEPROTECT.DISABLE from being
  304. written until next reset */
  305. __IOM uint32_t DISABLE; /*!< (@ 0x00000004) Disable ERASEPROTECT and perform ERASEALL */
  306. } CTRLAPPERI_ERASEPROTECT_Type; /*!< Size = 8 (0x8) */
  307. /**
  308. * @brief SPIM_PSEL [PSEL] (Unspecified)
  309. */
  310. typedef struct {
  311. __IOM uint32_t SCK; /*!< (@ 0x00000000) Pin select for SCK */
  312. __IOM uint32_t MOSI; /*!< (@ 0x00000004) Pin select for MOSI signal */
  313. __IOM uint32_t MISO; /*!< (@ 0x00000008) Pin select for MISO signal */
  314. } SPIM_PSEL_Type; /*!< Size = 12 (0xc) */
  315. /**
  316. * @brief SPIM_RXD [RXD] (RXD EasyDMA channel)
  317. */
  318. typedef struct {
  319. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  320. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in receive buffer */
  321. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  322. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  323. } SPIM_RXD_Type; /*!< Size = 16 (0x10) */
  324. /**
  325. * @brief SPIM_TXD [TXD] (TXD EasyDMA channel)
  326. */
  327. typedef struct {
  328. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  329. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in transmit buffer */
  330. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  331. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  332. } SPIM_TXD_Type; /*!< Size = 16 (0x10) */
  333. /**
  334. * @brief SPIS_PSEL [PSEL] (Unspecified)
  335. */
  336. typedef struct {
  337. __IOM uint32_t SCK; /*!< (@ 0x00000000) Pin select for SCK */
  338. __IOM uint32_t MISO; /*!< (@ 0x00000004) Pin select for MISO signal */
  339. __IOM uint32_t MOSI; /*!< (@ 0x00000008) Pin select for MOSI signal */
  340. __IOM uint32_t CSN; /*!< (@ 0x0000000C) Pin select for CSN signal */
  341. } SPIS_PSEL_Type; /*!< Size = 16 (0x10) */
  342. /**
  343. * @brief SPIS_RXD [RXD] (Unspecified)
  344. */
  345. typedef struct {
  346. __IOM uint32_t PTR; /*!< (@ 0x00000000) RXD data pointer */
  347. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in receive buffer */
  348. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes received in last granted transaction */
  349. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  350. } SPIS_RXD_Type; /*!< Size = 16 (0x10) */
  351. /**
  352. * @brief SPIS_TXD [TXD] (Unspecified)
  353. */
  354. typedef struct {
  355. __IOM uint32_t PTR; /*!< (@ 0x00000000) TXD data pointer */
  356. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in transmit buffer */
  357. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transmitted in last granted transaction */
  358. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  359. } SPIS_TXD_Type; /*!< Size = 16 (0x10) */
  360. /**
  361. * @brief TWIM_PSEL [PSEL] (Unspecified)
  362. */
  363. typedef struct {
  364. __IOM uint32_t SCL; /*!< (@ 0x00000000) Pin select for SCL signal */
  365. __IOM uint32_t SDA; /*!< (@ 0x00000004) Pin select for SDA signal */
  366. } TWIM_PSEL_Type; /*!< Size = 8 (0x8) */
  367. /**
  368. * @brief TWIM_RXD [RXD] (RXD EasyDMA channel)
  369. */
  370. typedef struct {
  371. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  372. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in receive buffer */
  373. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  374. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  375. } TWIM_RXD_Type; /*!< Size = 16 (0x10) */
  376. /**
  377. * @brief TWIM_TXD [TXD] (TXD EasyDMA channel)
  378. */
  379. typedef struct {
  380. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  381. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in transmit buffer */
  382. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  383. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  384. } TWIM_TXD_Type; /*!< Size = 16 (0x10) */
  385. /**
  386. * @brief TWIS_PSEL [PSEL] (Unspecified)
  387. */
  388. typedef struct {
  389. __IOM uint32_t SCL; /*!< (@ 0x00000000) Pin select for SCL signal */
  390. __IOM uint32_t SDA; /*!< (@ 0x00000004) Pin select for SDA signal */
  391. } TWIS_PSEL_Type; /*!< Size = 8 (0x8) */
  392. /**
  393. * @brief TWIS_RXD [RXD] (RXD EasyDMA channel)
  394. */
  395. typedef struct {
  396. __IOM uint32_t PTR; /*!< (@ 0x00000000) RXD Data pointer */
  397. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in RXD buffer */
  398. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last RXD transaction */
  399. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  400. } TWIS_RXD_Type; /*!< Size = 16 (0x10) */
  401. /**
  402. * @brief TWIS_TXD [TXD] (TXD EasyDMA channel)
  403. */
  404. typedef struct {
  405. __IOM uint32_t PTR; /*!< (@ 0x00000000) TXD Data pointer */
  406. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in TXD buffer */
  407. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last TXD transaction */
  408. __IOM uint32_t LIST; /*!< (@ 0x0000000C) EasyDMA list type */
  409. } TWIS_TXD_Type; /*!< Size = 16 (0x10) */
  410. /**
  411. * @brief UARTE_PSEL [PSEL] (Unspecified)
  412. */
  413. typedef struct {
  414. __IOM uint32_t RTS; /*!< (@ 0x00000000) Pin select for RTS signal */
  415. __IOM uint32_t TXD; /*!< (@ 0x00000004) Pin select for TXD signal */
  416. __IOM uint32_t CTS; /*!< (@ 0x00000008) Pin select for CTS signal */
  417. __IOM uint32_t RXD; /*!< (@ 0x0000000C) Pin select for RXD signal */
  418. } UARTE_PSEL_Type; /*!< Size = 16 (0x10) */
  419. /**
  420. * @brief UARTE_RXD [RXD] (RXD EasyDMA channel)
  421. */
  422. typedef struct {
  423. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  424. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in receive buffer */
  425. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  426. } UARTE_RXD_Type; /*!< Size = 12 (0xc) */
  427. /**
  428. * @brief UARTE_TXD [TXD] (TXD EasyDMA channel)
  429. */
  430. typedef struct {
  431. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  432. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of bytes in transmit buffer */
  433. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of bytes transferred in the last transaction */
  434. } UARTE_TXD_Type; /*!< Size = 12 (0xc) */
  435. /**
  436. * @brief SAADC_EVENTS_CH [EVENTS_CH] (Peripheral events.)
  437. */
  438. typedef struct {
  439. __IOM uint32_t LIMITH; /*!< (@ 0x00000000) Description cluster: Last results is equal or
  440. above CH[n].LIMIT.HIGH */
  441. __IOM uint32_t LIMITL; /*!< (@ 0x00000004) Description cluster: Last results is equal or
  442. below CH[n].LIMIT.LOW */
  443. } SAADC_EVENTS_CH_Type; /*!< Size = 8 (0x8) */
  444. /**
  445. * @brief SAADC_PUBLISH_CH [PUBLISH_CH] (Publish configuration for events)
  446. */
  447. typedef struct {
  448. __IOM uint32_t LIMITH; /*!< (@ 0x00000000) Description cluster: Publish configuration for
  449. event CH[n].LIMITH */
  450. __IOM uint32_t LIMITL; /*!< (@ 0x00000004) Description cluster: Publish configuration for
  451. event CH[n].LIMITL */
  452. } SAADC_PUBLISH_CH_Type; /*!< Size = 8 (0x8) */
  453. /**
  454. * @brief SAADC_CH [CH] (Unspecified)
  455. */
  456. typedef struct {
  457. __IOM uint32_t PSELP; /*!< (@ 0x00000000) Description cluster: Input positive pin selection
  458. for CH[n] */
  459. __IOM uint32_t PSELN; /*!< (@ 0x00000004) Description cluster: Input negative pin selection
  460. for CH[n] */
  461. __IOM uint32_t CONFIG; /*!< (@ 0x00000008) Description cluster: Input configuration for
  462. CH[n] */
  463. __IOM uint32_t LIMIT; /*!< (@ 0x0000000C) Description cluster: High/low limits for event
  464. monitoring a channel */
  465. } SAADC_CH_Type; /*!< Size = 16 (0x10) */
  466. /**
  467. * @brief SAADC_RESULT [RESULT] (RESULT EasyDMA channel)
  468. */
  469. typedef struct {
  470. __IOM uint32_t PTR; /*!< (@ 0x00000000) Data pointer */
  471. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Maximum number of buffer words to transfer */
  472. __IM uint32_t AMOUNT; /*!< (@ 0x00000008) Number of buffer words transferred since last
  473. START */
  474. } SAADC_RESULT_Type; /*!< Size = 12 (0xc) */
  475. /**
  476. * @brief DPPIC_TASKS_CHG [TASKS_CHG] (Channel group tasks)
  477. */
  478. typedef struct {
  479. __OM uint32_t EN; /*!< (@ 0x00000000) Description cluster: Enable channel group n */
  480. __OM uint32_t DIS; /*!< (@ 0x00000004) Description cluster: Disable channel group n */
  481. } DPPIC_TASKS_CHG_Type; /*!< Size = 8 (0x8) */
  482. /**
  483. * @brief DPPIC_SUBSCRIBE_CHG [SUBSCRIBE_CHG] (Subscribe configuration for tasks)
  484. */
  485. typedef struct {
  486. __IOM uint32_t EN; /*!< (@ 0x00000000) Description cluster: Subscribe configuration
  487. for task CHG[n].EN */
  488. __IOM uint32_t DIS; /*!< (@ 0x00000004) Description cluster: Subscribe configuration
  489. for task CHG[n].DIS */
  490. } DPPIC_SUBSCRIBE_CHG_Type; /*!< Size = 8 (0x8) */
  491. /**
  492. * @brief PWM_SEQ [SEQ] (Unspecified)
  493. */
  494. typedef struct {
  495. __IOM uint32_t PTR; /*!< (@ 0x00000000) Description cluster: Beginning address in RAM
  496. of this sequence */
  497. __IOM uint32_t CNT; /*!< (@ 0x00000004) Description cluster: Number of values (duty cycles)
  498. in this sequence */
  499. __IOM uint32_t REFRESH; /*!< (@ 0x00000008) Description cluster: Number of additional PWM
  500. periods between samples loaded into compare
  501. register */
  502. __IOM uint32_t ENDDELAY; /*!< (@ 0x0000000C) Description cluster: Time added after the sequence */
  503. __IM uint32_t RESERVED[4];
  504. } PWM_SEQ_Type; /*!< Size = 32 (0x20) */
  505. /**
  506. * @brief PWM_PSEL [PSEL] (Unspecified)
  507. */
  508. typedef struct {
  509. __IOM uint32_t OUT[4]; /*!< (@ 0x00000000) Description collection: Output pin select for
  510. PWM channel n */
  511. } PWM_PSEL_Type; /*!< Size = 16 (0x10) */
  512. /**
  513. * @brief PDM_PSEL [PSEL] (Unspecified)
  514. */
  515. typedef struct {
  516. __IOM uint32_t CLK; /*!< (@ 0x00000000) Pin number configuration for PDM CLK signal */
  517. __IOM uint32_t DIN; /*!< (@ 0x00000004) Pin number configuration for PDM DIN signal */
  518. } PDM_PSEL_Type; /*!< Size = 8 (0x8) */
  519. /**
  520. * @brief PDM_SAMPLE [SAMPLE] (Unspecified)
  521. */
  522. typedef struct {
  523. __IOM uint32_t PTR; /*!< (@ 0x00000000) RAM address pointer to write samples to with
  524. EasyDMA */
  525. __IOM uint32_t MAXCNT; /*!< (@ 0x00000004) Number of samples to allocate memory for in EasyDMA
  526. mode */
  527. } PDM_SAMPLE_Type; /*!< Size = 8 (0x8) */
  528. /**
  529. * @brief I2S_CONFIG [CONFIG] (Unspecified)
  530. */
  531. typedef struct {
  532. __IOM uint32_t MODE; /*!< (@ 0x00000000) I2S mode. */
  533. __IOM uint32_t RXEN; /*!< (@ 0x00000004) Reception (RX) enable. */
  534. __IOM uint32_t TXEN; /*!< (@ 0x00000008) Transmission (TX) enable. */
  535. __IOM uint32_t MCKEN; /*!< (@ 0x0000000C) Master clock generator enable. */
  536. __IOM uint32_t MCKFREQ; /*!< (@ 0x00000010) Master clock generator frequency. */
  537. __IOM uint32_t RATIO; /*!< (@ 0x00000014) MCK / LRCK ratio. */
  538. __IOM uint32_t SWIDTH; /*!< (@ 0x00000018) Sample width. */
  539. __IOM uint32_t ALIGN; /*!< (@ 0x0000001C) Alignment of sample within a frame. */
  540. __IOM uint32_t FORMAT; /*!< (@ 0x00000020) Frame format. */
  541. __IOM uint32_t CHANNELS; /*!< (@ 0x00000024) Enable channels. */
  542. } I2S_CONFIG_Type; /*!< Size = 40 (0x28) */
  543. /**
  544. * @brief I2S_RXD [RXD] (Unspecified)
  545. */
  546. typedef struct {
  547. __IOM uint32_t PTR; /*!< (@ 0x00000000) Receive buffer RAM start address. */
  548. } I2S_RXD_Type; /*!< Size = 4 (0x4) */
  549. /**
  550. * @brief I2S_TXD [TXD] (Unspecified)
  551. */
  552. typedef struct {
  553. __IOM uint32_t PTR; /*!< (@ 0x00000000) Transmit buffer RAM start address. */
  554. } I2S_TXD_Type; /*!< Size = 4 (0x4) */
  555. /**
  556. * @brief I2S_RXTXD [RXTXD] (Unspecified)
  557. */
  558. typedef struct {
  559. __IOM uint32_t MAXCNT; /*!< (@ 0x00000000) Size of RXD and TXD buffers. */
  560. } I2S_RXTXD_Type; /*!< Size = 4 (0x4) */
  561. /**
  562. * @brief I2S_PSEL [PSEL] (Unspecified)
  563. */
  564. typedef struct {
  565. __IOM uint32_t MCK; /*!< (@ 0x00000000) Pin select for MCK signal. */
  566. __IOM uint32_t SCK; /*!< (@ 0x00000004) Pin select for SCK signal. */
  567. __IOM uint32_t LRCK; /*!< (@ 0x00000008) Pin select for LRCK signal. */
  568. __IOM uint32_t SDIN; /*!< (@ 0x0000000C) Pin select for SDIN signal. */
  569. __IOM uint32_t SDOUT; /*!< (@ 0x00000010) Pin select for SDOUT signal. */
  570. } I2S_PSEL_Type; /*!< Size = 20 (0x14) */
  571. /**
  572. * @brief VMC_RAM [RAM] (Unspecified)
  573. */
  574. typedef struct {
  575. __IOM uint32_t POWER; /*!< (@ 0x00000000) Description cluster: RAMn power control register */
  576. __OM uint32_t POWERSET; /*!< (@ 0x00000004) Description cluster: RAMn power control set register */
  577. __OM uint32_t POWERCLR; /*!< (@ 0x00000008) Description cluster: RAMn power control clear
  578. register */
  579. __IM uint32_t RESERVED;
  580. } VMC_RAM_Type; /*!< Size = 16 (0x10) */
  581. /** @} */ /* End of group Device_Peripheral_clusters */
  582. /* =========================================================================================================================== */
  583. /* ================ Device Specific Peripheral Section ================ */
  584. /* =========================================================================================================================== */
  585. /** @addtogroup Device_Peripheral_peripherals
  586. * @{
  587. */
  588. /* =========================================================================================================================== */
  589. /* ================ FICR_S ================ */
  590. /* =========================================================================================================================== */
  591. /**
  592. * @brief Factory Information Configuration Registers (FICR_S)
  593. */
  594. typedef struct { /*!< (@ 0x00FF0000) FICR_S Structure */
  595. __IM uint32_t RESERVED[128];
  596. __IOM FICR_INFO_Type INFO; /*!< (@ 0x00000200) Device info */
  597. __IM uint32_t RESERVED1[53];
  598. __IOM FICR_TRIMCNF_Type TRIMCNF[256]; /*!< (@ 0x00000300) Unspecified */
  599. __IM uint32_t RESERVED2[64];
  600. __IOM FICR_TRNG90B_Type TRNG90B; /*!< (@ 0x00000C00) NIST800-90B RNG calibration data */
  601. } NRF_FICR_Type; /*!< Size = 3104 (0xc20) */
  602. /* =========================================================================================================================== */
  603. /* ================ UICR_S ================ */
  604. /* =========================================================================================================================== */
  605. /**
  606. * @brief User information configuration registers User information configuration registers (UICR_S)
  607. */
  608. typedef struct { /*!< (@ 0x00FF8000) UICR_S Structure */
  609. __IOM uint32_t APPROTECT; /*!< (@ 0x00000000) Access port protection */
  610. __IM uint32_t RESERVED[4];
  611. __IOM uint32_t XOSC32M; /*!< (@ 0x00000014) Oscillator control */
  612. __IM uint32_t RESERVED1;
  613. __IOM uint32_t HFXOSRC; /*!< (@ 0x0000001C) HFXO clock source selection */
  614. __IOM uint32_t HFXOCNT; /*!< (@ 0x00000020) HFXO startup counter */
  615. __IM uint32_t RESERVED2[2];
  616. __IOM uint32_t SECUREAPPROTECT; /*!< (@ 0x0000002C) Secure access port protection */
  617. __IOM uint32_t ERASEPROTECT; /*!< (@ 0x00000030) Erase protection */
  618. __IM uint32_t RESERVED3[53];
  619. __IOM uint32_t OTP[190]; /*!< (@ 0x00000108) Description collection: One time programmable
  620. memory */
  621. __IOM UICR_KEYSLOT_Type KEYSLOT; /*!< (@ 0x00000400) Unspecified */
  622. } NRF_UICR_Type; /*!< Size = 4096 (0x1000) */
  623. /* =========================================================================================================================== */
  624. /* ================ TAD_S ================ */
  625. /* =========================================================================================================================== */
  626. /**
  627. * @brief Trace and debug control (TAD_S)
  628. */
  629. typedef struct { /*!< (@ 0xE0080000) TAD_S Structure */
  630. __OM uint32_t CLOCKSTART; /*!< (@ 0x00000000) Start all trace and debug clocks. */
  631. __OM uint32_t CLOCKSTOP; /*!< (@ 0x00000004) Stop all trace and debug clocks. */
  632. __IM uint32_t RESERVED[318];
  633. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable debug domain and aquire selected GPIOs */
  634. __IOM TAD_PSEL_Type PSEL; /*!< (@ 0x00000504) Unspecified */
  635. __IOM uint32_t TRACEPORTSPEED; /*!< (@ 0x00000518) Clocking options for the Trace Port debug interface */
  636. } NRF_TAD_Type; /*!< Size = 1308 (0x51c) */
  637. /* =========================================================================================================================== */
  638. /* ================ SPU_S ================ */
  639. /* =========================================================================================================================== */
  640. /**
  641. * @brief System protection unit (SPU_S)
  642. */
  643. typedef struct { /*!< (@ 0x50003000) SPU_S Structure */
  644. __IM uint32_t RESERVED[64];
  645. __IOM uint32_t EVENTS_RAMACCERR; /*!< (@ 0x00000100) A security violation has been detected for the
  646. RAM memory space */
  647. __IOM uint32_t EVENTS_FLASHACCERR; /*!< (@ 0x00000104) A security violation has been detected for the
  648. flash memory space */
  649. __IOM uint32_t EVENTS_PERIPHACCERR; /*!< (@ 0x00000108) A security violation has been detected on one
  650. or several peripherals */
  651. __IM uint32_t RESERVED1[29];
  652. __IOM uint32_t PUBLISH_RAMACCERR; /*!< (@ 0x00000180) Publish configuration for event RAMACCERR */
  653. __IOM uint32_t PUBLISH_FLASHACCERR; /*!< (@ 0x00000184) Publish configuration for event FLASHACCERR */
  654. __IOM uint32_t PUBLISH_PERIPHACCERR; /*!< (@ 0x00000188) Publish configuration for event PERIPHACCERR */
  655. __IM uint32_t RESERVED2[93];
  656. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  657. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  658. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  659. __IM uint32_t RESERVED3[61];
  660. __IM uint32_t CAP; /*!< (@ 0x00000400) Show implemented features for the current device */
  661. __IM uint32_t RESERVED4[15];
  662. __IOM SPU_EXTDOMAIN_Type EXTDOMAIN[1]; /*!< (@ 0x00000440) Unspecified */
  663. __IM uint32_t RESERVED5[15];
  664. __IOM SPU_DPPI_Type DPPI[1]; /*!< (@ 0x00000480) Unspecified */
  665. __IM uint32_t RESERVED6[14];
  666. __IOM SPU_GPIOPORT_Type GPIOPORT[1]; /*!< (@ 0x000004C0) Unspecified */
  667. __IM uint32_t RESERVED7[14];
  668. __IOM SPU_FLASHNSC_Type FLASHNSC[2]; /*!< (@ 0x00000500) Unspecified */
  669. __IM uint32_t RESERVED8[12];
  670. __IOM SPU_RAMNSC_Type RAMNSC[2]; /*!< (@ 0x00000540) Unspecified */
  671. __IM uint32_t RESERVED9[44];
  672. __IOM SPU_FLASHREGION_Type FLASHREGION[32]; /*!< (@ 0x00000600) Unspecified */
  673. __IM uint32_t RESERVED10[32];
  674. __IOM SPU_RAMREGION_Type RAMREGION[32]; /*!< (@ 0x00000700) Unspecified */
  675. __IM uint32_t RESERVED11[32];
  676. __IOM SPU_PERIPHID_Type PERIPHID[67]; /*!< (@ 0x00000800) Unspecified */
  677. } NRF_SPU_Type; /*!< Size = 2316 (0x90c) */
  678. /* =========================================================================================================================== */
  679. /* ================ REGULATORS_NS ================ */
  680. /* =========================================================================================================================== */
  681. /**
  682. * @brief Voltage regulators control 0 (REGULATORS_NS)
  683. */
  684. typedef struct { /*!< (@ 0x40004000) REGULATORS_NS Structure */
  685. __IM uint32_t RESERVED[320];
  686. __OM uint32_t SYSTEMOFF; /*!< (@ 0x00000500) System OFF register */
  687. __IM uint32_t RESERVED1[29];
  688. __IOM uint32_t DCDCEN; /*!< (@ 0x00000578) Enable DC/DC mode of the main voltage regulator. */
  689. } NRF_REGULATORS_Type; /*!< Size = 1404 (0x57c) */
  690. /* =========================================================================================================================== */
  691. /* ================ CLOCK_NS ================ */
  692. /* =========================================================================================================================== */
  693. /**
  694. * @brief Clock management 0 (CLOCK_NS)
  695. */
  696. typedef struct { /*!< (@ 0x40005000) CLOCK_NS Structure */
  697. __OM uint32_t TASKS_HFCLKSTART; /*!< (@ 0x00000000) Start HFCLK source */
  698. __OM uint32_t TASKS_HFCLKSTOP; /*!< (@ 0x00000004) Stop HFCLK source */
  699. __OM uint32_t TASKS_LFCLKSTART; /*!< (@ 0x00000008) Start LFCLK source */
  700. __OM uint32_t TASKS_LFCLKSTOP; /*!< (@ 0x0000000C) Stop LFCLK source */
  701. __IM uint32_t RESERVED[28];
  702. __IOM uint32_t SUBSCRIBE_HFCLKSTART; /*!< (@ 0x00000080) Subscribe configuration for task HFCLKSTART */
  703. __IOM uint32_t SUBSCRIBE_HFCLKSTOP; /*!< (@ 0x00000084) Subscribe configuration for task HFCLKSTOP */
  704. __IOM uint32_t SUBSCRIBE_LFCLKSTART; /*!< (@ 0x00000088) Subscribe configuration for task LFCLKSTART */
  705. __IOM uint32_t SUBSCRIBE_LFCLKSTOP; /*!< (@ 0x0000008C) Subscribe configuration for task LFCLKSTOP */
  706. __IM uint32_t RESERVED1[28];
  707. __IOM uint32_t EVENTS_HFCLKSTARTED; /*!< (@ 0x00000100) HFCLK oscillator started */
  708. __IOM uint32_t EVENTS_LFCLKSTARTED; /*!< (@ 0x00000104) LFCLK started */
  709. __IM uint32_t RESERVED2[30];
  710. __IOM uint32_t PUBLISH_HFCLKSTARTED; /*!< (@ 0x00000180) Publish configuration for event HFCLKSTARTED */
  711. __IOM uint32_t PUBLISH_LFCLKSTARTED; /*!< (@ 0x00000184) Publish configuration for event LFCLKSTARTED */
  712. __IM uint32_t RESERVED3[94];
  713. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  714. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  715. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  716. __IM uint32_t INTPEND; /*!< (@ 0x0000030C) Pending interrupts */
  717. __IM uint32_t RESERVED4[62];
  718. __IM uint32_t HFCLKRUN; /*!< (@ 0x00000408) Status indicating that HFCLKSTART task has been
  719. triggered */
  720. __IM uint32_t HFCLKSTAT; /*!< (@ 0x0000040C) The register shows if HFXO has been requested
  721. by triggering HFCLKSTART task and if it
  722. has been started (STATE) */
  723. __IM uint32_t RESERVED5;
  724. __IM uint32_t LFCLKRUN; /*!< (@ 0x00000414) Status indicating that LFCLKSTART task has been
  725. triggered */
  726. __IM uint32_t LFCLKSTAT; /*!< (@ 0x00000418) The register shows which LFCLK source has been
  727. requested (SRC) when triggering LFCLKSTART
  728. task and if the source has been started
  729. (STATE) */
  730. __IM uint32_t LFCLKSRCCOPY; /*!< (@ 0x0000041C) Copy of LFCLKSRC register, set after LFCLKSTART
  731. task has been triggered */
  732. __IM uint32_t RESERVED6[62];
  733. __IOM uint32_t LFCLKSRC; /*!< (@ 0x00000518) Clock source for the LFCLK. LFCLKSTART task starts
  734. starts a clock source selected with this
  735. register. */
  736. } NRF_CLOCK_Type; /*!< Size = 1308 (0x51c) */
  737. /* =========================================================================================================================== */
  738. /* ================ POWER_NS ================ */
  739. /* =========================================================================================================================== */
  740. /**
  741. * @brief Power control 0 (POWER_NS)
  742. */
  743. typedef struct { /*!< (@ 0x40005000) POWER_NS Structure */
  744. __IM uint32_t RESERVED[30];
  745. __OM uint32_t TASKS_CONSTLAT; /*!< (@ 0x00000078) Enable constant latency mode. */
  746. __OM uint32_t TASKS_LOWPWR; /*!< (@ 0x0000007C) Enable low power mode (variable latency) */
  747. __IM uint32_t RESERVED1[30];
  748. __IOM uint32_t SUBSCRIBE_CONSTLAT; /*!< (@ 0x000000F8) Subscribe configuration for task CONSTLAT */
  749. __IOM uint32_t SUBSCRIBE_LOWPWR; /*!< (@ 0x000000FC) Subscribe configuration for task LOWPWR */
  750. __IM uint32_t RESERVED2[2];
  751. __IOM uint32_t EVENTS_POFWARN; /*!< (@ 0x00000108) Power failure warning */
  752. __IM uint32_t RESERVED3[2];
  753. __IOM uint32_t EVENTS_SLEEPENTER; /*!< (@ 0x00000114) CPU entered WFI/WFE sleep */
  754. __IOM uint32_t EVENTS_SLEEPEXIT; /*!< (@ 0x00000118) CPU exited WFI/WFE sleep */
  755. __IM uint32_t RESERVED4[27];
  756. __IOM uint32_t PUBLISH_POFWARN; /*!< (@ 0x00000188) Publish configuration for event POFWARN */
  757. __IM uint32_t RESERVED5[2];
  758. __IOM uint32_t PUBLISH_SLEEPENTER; /*!< (@ 0x00000194) Publish configuration for event SLEEPENTER */
  759. __IOM uint32_t PUBLISH_SLEEPEXIT; /*!< (@ 0x00000198) Publish configuration for event SLEEPEXIT */
  760. __IM uint32_t RESERVED6[89];
  761. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  762. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  763. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  764. __IM uint32_t RESERVED7[61];
  765. __IOM uint32_t RESETREAS; /*!< (@ 0x00000400) Reset reason */
  766. __IM uint32_t RESERVED8[15];
  767. __IM uint32_t POWERSTATUS; /*!< (@ 0x00000440) Modem domain power status */
  768. __IM uint32_t RESERVED9[54];
  769. __IOM uint32_t GPREGRET[2]; /*!< (@ 0x0000051C) Description collection: General purpose retention
  770. register */
  771. } NRF_POWER_Type; /*!< Size = 1316 (0x524) */
  772. /* =========================================================================================================================== */
  773. /* ================ CTRL_AP_PERI_S ================ */
  774. /* =========================================================================================================================== */
  775. /**
  776. * @brief Control access port (CTRL_AP_PERI_S)
  777. */
  778. typedef struct { /*!< (@ 0x50006000) CTRL_AP_PERI_S Structure */
  779. __IM uint32_t RESERVED[256];
  780. __IOM CTRLAPPERI_MAILBOX_Type MAILBOX; /*!< (@ 0x00000400) Unspecified */
  781. __IM uint32_t RESERVED1[30];
  782. __IOM CTRLAPPERI_ERASEPROTECT_Type ERASEPROTECT;/*!< (@ 0x00000500) Unspecified */
  783. } NRF_CTRLAPPERI_Type; /*!< Size = 1288 (0x508) */
  784. /* =========================================================================================================================== */
  785. /* ================ SPIM0_NS ================ */
  786. /* =========================================================================================================================== */
  787. /**
  788. * @brief Serial Peripheral Interface Master with EasyDMA 0 (SPIM0_NS)
  789. */
  790. typedef struct { /*!< (@ 0x40008000) SPIM0_NS Structure */
  791. __IM uint32_t RESERVED[4];
  792. __OM uint32_t TASKS_START; /*!< (@ 0x00000010) Start SPI transaction */
  793. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000014) Stop SPI transaction */
  794. __IM uint32_t RESERVED1;
  795. __OM uint32_t TASKS_SUSPEND; /*!< (@ 0x0000001C) Suspend SPI transaction */
  796. __OM uint32_t TASKS_RESUME; /*!< (@ 0x00000020) Resume SPI transaction */
  797. __IM uint32_t RESERVED2[27];
  798. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000090) Subscribe configuration for task START */
  799. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000094) Subscribe configuration for task STOP */
  800. __IM uint32_t RESERVED3;
  801. __IOM uint32_t SUBSCRIBE_SUSPEND; /*!< (@ 0x0000009C) Subscribe configuration for task SUSPEND */
  802. __IOM uint32_t SUBSCRIBE_RESUME; /*!< (@ 0x000000A0) Subscribe configuration for task RESUME */
  803. __IM uint32_t RESERVED4[24];
  804. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) SPI transaction has stopped */
  805. __IM uint32_t RESERVED5[2];
  806. __IOM uint32_t EVENTS_ENDRX; /*!< (@ 0x00000110) End of RXD buffer reached */
  807. __IM uint32_t RESERVED6;
  808. __IOM uint32_t EVENTS_END; /*!< (@ 0x00000118) End of RXD buffer and TXD buffer reached */
  809. __IM uint32_t RESERVED7;
  810. __IOM uint32_t EVENTS_ENDTX; /*!< (@ 0x00000120) End of TXD buffer reached */
  811. __IM uint32_t RESERVED8[10];
  812. __IOM uint32_t EVENTS_STARTED; /*!< (@ 0x0000014C) Transaction started */
  813. __IM uint32_t RESERVED9[13];
  814. __IOM uint32_t PUBLISH_STOPPED; /*!< (@ 0x00000184) Publish configuration for event STOPPED */
  815. __IM uint32_t RESERVED10[2];
  816. __IOM uint32_t PUBLISH_ENDRX; /*!< (@ 0x00000190) Publish configuration for event ENDRX */
  817. __IM uint32_t RESERVED11;
  818. __IOM uint32_t PUBLISH_END; /*!< (@ 0x00000198) Publish configuration for event END */
  819. __IM uint32_t RESERVED12;
  820. __IOM uint32_t PUBLISH_ENDTX; /*!< (@ 0x000001A0) Publish configuration for event ENDTX */
  821. __IM uint32_t RESERVED13[10];
  822. __IOM uint32_t PUBLISH_STARTED; /*!< (@ 0x000001CC) Publish configuration for event STARTED */
  823. __IM uint32_t RESERVED14[12];
  824. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  825. __IM uint32_t RESERVED15[64];
  826. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  827. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  828. __IM uint32_t RESERVED16[125];
  829. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable SPIM */
  830. __IM uint32_t RESERVED17;
  831. __IOM SPIM_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  832. __IM uint32_t RESERVED18[4];
  833. __IOM uint32_t FREQUENCY; /*!< (@ 0x00000524) SPI frequency. Accuracy depends on the HFCLK
  834. source selected. */
  835. __IM uint32_t RESERVED19[3];
  836. __IOM SPIM_RXD_Type RXD; /*!< (@ 0x00000534) RXD EasyDMA channel */
  837. __IOM SPIM_TXD_Type TXD; /*!< (@ 0x00000544) TXD EasyDMA channel */
  838. __IOM uint32_t CONFIG; /*!< (@ 0x00000554) Configuration register */
  839. __IM uint32_t RESERVED20[26];
  840. __IOM uint32_t ORC; /*!< (@ 0x000005C0) Over-read character. Character clocked out in
  841. case an over-read of the TXD buffer. */
  842. } NRF_SPIM_Type; /*!< Size = 1476 (0x5c4) */
  843. /* =========================================================================================================================== */
  844. /* ================ SPIS0_NS ================ */
  845. /* =========================================================================================================================== */
  846. /**
  847. * @brief SPI Slave 0 (SPIS0_NS)
  848. */
  849. typedef struct { /*!< (@ 0x40008000) SPIS0_NS Structure */
  850. __IM uint32_t RESERVED[9];
  851. __OM uint32_t TASKS_ACQUIRE; /*!< (@ 0x00000024) Acquire SPI semaphore */
  852. __OM uint32_t TASKS_RELEASE; /*!< (@ 0x00000028) Release SPI semaphore, enabling the SPI slave
  853. to acquire it */
  854. __IM uint32_t RESERVED1[30];
  855. __IOM uint32_t SUBSCRIBE_ACQUIRE; /*!< (@ 0x000000A4) Subscribe configuration for task ACQUIRE */
  856. __IOM uint32_t SUBSCRIBE_RELEASE; /*!< (@ 0x000000A8) Subscribe configuration for task RELEASE */
  857. __IM uint32_t RESERVED2[22];
  858. __IOM uint32_t EVENTS_END; /*!< (@ 0x00000104) Granted transaction completed */
  859. __IM uint32_t RESERVED3[2];
  860. __IOM uint32_t EVENTS_ENDRX; /*!< (@ 0x00000110) End of RXD buffer reached */
  861. __IM uint32_t RESERVED4[5];
  862. __IOM uint32_t EVENTS_ACQUIRED; /*!< (@ 0x00000128) Semaphore acquired */
  863. __IM uint32_t RESERVED5[22];
  864. __IOM uint32_t PUBLISH_END; /*!< (@ 0x00000184) Publish configuration for event END */
  865. __IM uint32_t RESERVED6[2];
  866. __IOM uint32_t PUBLISH_ENDRX; /*!< (@ 0x00000190) Publish configuration for event ENDRX */
  867. __IM uint32_t RESERVED7[5];
  868. __IOM uint32_t PUBLISH_ACQUIRED; /*!< (@ 0x000001A8) Publish configuration for event ACQUIRED */
  869. __IM uint32_t RESERVED8[21];
  870. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  871. __IM uint32_t RESERVED9[64];
  872. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  873. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  874. __IM uint32_t RESERVED10[61];
  875. __IM uint32_t SEMSTAT; /*!< (@ 0x00000400) Semaphore status register */
  876. __IM uint32_t RESERVED11[15];
  877. __IOM uint32_t STATUS; /*!< (@ 0x00000440) Status from last transaction */
  878. __IM uint32_t RESERVED12[47];
  879. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable SPI slave */
  880. __IM uint32_t RESERVED13;
  881. __IOM SPIS_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  882. __IM uint32_t RESERVED14[7];
  883. __IOM SPIS_RXD_Type RXD; /*!< (@ 0x00000534) Unspecified */
  884. __IOM SPIS_TXD_Type TXD; /*!< (@ 0x00000544) Unspecified */
  885. __IOM uint32_t CONFIG; /*!< (@ 0x00000554) Configuration register */
  886. __IM uint32_t RESERVED15;
  887. __IOM uint32_t DEF; /*!< (@ 0x0000055C) Default character. Character clocked out in case
  888. of an ignored transaction. */
  889. __IM uint32_t RESERVED16[24];
  890. __IOM uint32_t ORC; /*!< (@ 0x000005C0) Over-read character */
  891. } NRF_SPIS_Type; /*!< Size = 1476 (0x5c4) */
  892. /* =========================================================================================================================== */
  893. /* ================ TWIM0_NS ================ */
  894. /* =========================================================================================================================== */
  895. /**
  896. * @brief I2C compatible Two-Wire Master Interface with EasyDMA 0 (TWIM0_NS)
  897. */
  898. typedef struct { /*!< (@ 0x40008000) TWIM0_NS Structure */
  899. __OM uint32_t TASKS_STARTRX; /*!< (@ 0x00000000) Start TWI receive sequence */
  900. __IM uint32_t RESERVED;
  901. __OM uint32_t TASKS_STARTTX; /*!< (@ 0x00000008) Start TWI transmit sequence */
  902. __IM uint32_t RESERVED1[2];
  903. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000014) Stop TWI transaction. Must be issued while the
  904. TWI master is not suspended. */
  905. __IM uint32_t RESERVED2;
  906. __OM uint32_t TASKS_SUSPEND; /*!< (@ 0x0000001C) Suspend TWI transaction */
  907. __OM uint32_t TASKS_RESUME; /*!< (@ 0x00000020) Resume TWI transaction */
  908. __IM uint32_t RESERVED3[23];
  909. __IOM uint32_t SUBSCRIBE_STARTRX; /*!< (@ 0x00000080) Subscribe configuration for task STARTRX */
  910. __IM uint32_t RESERVED4;
  911. __IOM uint32_t SUBSCRIBE_STARTTX; /*!< (@ 0x00000088) Subscribe configuration for task STARTTX */
  912. __IM uint32_t RESERVED5[2];
  913. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000094) Subscribe configuration for task STOP */
  914. __IM uint32_t RESERVED6;
  915. __IOM uint32_t SUBSCRIBE_SUSPEND; /*!< (@ 0x0000009C) Subscribe configuration for task SUSPEND */
  916. __IOM uint32_t SUBSCRIBE_RESUME; /*!< (@ 0x000000A0) Subscribe configuration for task RESUME */
  917. __IM uint32_t RESERVED7[24];
  918. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) TWI stopped */
  919. __IM uint32_t RESERVED8[7];
  920. __IOM uint32_t EVENTS_ERROR; /*!< (@ 0x00000124) TWI error */
  921. __IM uint32_t RESERVED9[8];
  922. __IOM uint32_t EVENTS_SUSPENDED; /*!< (@ 0x00000148) SUSPEND task has been issued, TWI traffic is
  923. now suspended. */
  924. __IOM uint32_t EVENTS_RXSTARTED; /*!< (@ 0x0000014C) Receive sequence started */
  925. __IOM uint32_t EVENTS_TXSTARTED; /*!< (@ 0x00000150) Transmit sequence started */
  926. __IM uint32_t RESERVED10[2];
  927. __IOM uint32_t EVENTS_LASTRX; /*!< (@ 0x0000015C) Byte boundary, starting to receive the last byte */
  928. __IOM uint32_t EVENTS_LASTTX; /*!< (@ 0x00000160) Byte boundary, starting to transmit the last
  929. byte */
  930. __IM uint32_t RESERVED11[8];
  931. __IOM uint32_t PUBLISH_STOPPED; /*!< (@ 0x00000184) Publish configuration for event STOPPED */
  932. __IM uint32_t RESERVED12[7];
  933. __IOM uint32_t PUBLISH_ERROR; /*!< (@ 0x000001A4) Publish configuration for event ERROR */
  934. __IM uint32_t RESERVED13[8];
  935. __IOM uint32_t PUBLISH_SUSPENDED; /*!< (@ 0x000001C8) Publish configuration for event SUSPENDED */
  936. __IOM uint32_t PUBLISH_RXSTARTED; /*!< (@ 0x000001CC) Publish configuration for event RXSTARTED */
  937. __IOM uint32_t PUBLISH_TXSTARTED; /*!< (@ 0x000001D0) Publish configuration for event TXSTARTED */
  938. __IM uint32_t RESERVED14[2];
  939. __IOM uint32_t PUBLISH_LASTRX; /*!< (@ 0x000001DC) Publish configuration for event LASTRX */
  940. __IOM uint32_t PUBLISH_LASTTX; /*!< (@ 0x000001E0) Publish configuration for event LASTTX */
  941. __IM uint32_t RESERVED15[7];
  942. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  943. __IM uint32_t RESERVED16[63];
  944. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  945. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  946. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  947. __IM uint32_t RESERVED17[110];
  948. __IOM uint32_t ERRORSRC; /*!< (@ 0x000004C4) Error source */
  949. __IM uint32_t RESERVED18[14];
  950. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable TWIM */
  951. __IM uint32_t RESERVED19;
  952. __IOM TWIM_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  953. __IM uint32_t RESERVED20[5];
  954. __IOM uint32_t FREQUENCY; /*!< (@ 0x00000524) TWI frequency. Accuracy depends on the HFCLK
  955. source selected. */
  956. __IM uint32_t RESERVED21[3];
  957. __IOM TWIM_RXD_Type RXD; /*!< (@ 0x00000534) RXD EasyDMA channel */
  958. __IOM TWIM_TXD_Type TXD; /*!< (@ 0x00000544) TXD EasyDMA channel */
  959. __IM uint32_t RESERVED22[13];
  960. __IOM uint32_t ADDRESS; /*!< (@ 0x00000588) Address used in the TWI transfer */
  961. } NRF_TWIM_Type; /*!< Size = 1420 (0x58c) */
  962. /* =========================================================================================================================== */
  963. /* ================ TWIS0_NS ================ */
  964. /* =========================================================================================================================== */
  965. /**
  966. * @brief I2C compatible Two-Wire Slave Interface with EasyDMA 0 (TWIS0_NS)
  967. */
  968. typedef struct { /*!< (@ 0x40008000) TWIS0_NS Structure */
  969. __IM uint32_t RESERVED[5];
  970. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000014) Stop TWI transaction */
  971. __IM uint32_t RESERVED1;
  972. __OM uint32_t TASKS_SUSPEND; /*!< (@ 0x0000001C) Suspend TWI transaction */
  973. __OM uint32_t TASKS_RESUME; /*!< (@ 0x00000020) Resume TWI transaction */
  974. __IM uint32_t RESERVED2[3];
  975. __OM uint32_t TASKS_PREPARERX; /*!< (@ 0x00000030) Prepare the TWI slave to respond to a write command */
  976. __OM uint32_t TASKS_PREPARETX; /*!< (@ 0x00000034) Prepare the TWI slave to respond to a read command */
  977. __IM uint32_t RESERVED3[23];
  978. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000094) Subscribe configuration for task STOP */
  979. __IM uint32_t RESERVED4;
  980. __IOM uint32_t SUBSCRIBE_SUSPEND; /*!< (@ 0x0000009C) Subscribe configuration for task SUSPEND */
  981. __IOM uint32_t SUBSCRIBE_RESUME; /*!< (@ 0x000000A0) Subscribe configuration for task RESUME */
  982. __IM uint32_t RESERVED5[3];
  983. __IOM uint32_t SUBSCRIBE_PREPARERX; /*!< (@ 0x000000B0) Subscribe configuration for task PREPARERX */
  984. __IOM uint32_t SUBSCRIBE_PREPARETX; /*!< (@ 0x000000B4) Subscribe configuration for task PREPARETX */
  985. __IM uint32_t RESERVED6[19];
  986. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) TWI stopped */
  987. __IM uint32_t RESERVED7[7];
  988. __IOM uint32_t EVENTS_ERROR; /*!< (@ 0x00000124) TWI error */
  989. __IM uint32_t RESERVED8[9];
  990. __IOM uint32_t EVENTS_RXSTARTED; /*!< (@ 0x0000014C) Receive sequence started */
  991. __IOM uint32_t EVENTS_TXSTARTED; /*!< (@ 0x00000150) Transmit sequence started */
  992. __IM uint32_t RESERVED9[4];
  993. __IOM uint32_t EVENTS_WRITE; /*!< (@ 0x00000164) Write command received */
  994. __IOM uint32_t EVENTS_READ; /*!< (@ 0x00000168) Read command received */
  995. __IM uint32_t RESERVED10[6];
  996. __IOM uint32_t PUBLISH_STOPPED; /*!< (@ 0x00000184) Publish configuration for event STOPPED */
  997. __IM uint32_t RESERVED11[7];
  998. __IOM uint32_t PUBLISH_ERROR; /*!< (@ 0x000001A4) Publish configuration for event ERROR */
  999. __IM uint32_t RESERVED12[9];
  1000. __IOM uint32_t PUBLISH_RXSTARTED; /*!< (@ 0x000001CC) Publish configuration for event RXSTARTED */
  1001. __IOM uint32_t PUBLISH_TXSTARTED; /*!< (@ 0x000001D0) Publish configuration for event TXSTARTED */
  1002. __IM uint32_t RESERVED13[4];
  1003. __IOM uint32_t PUBLISH_WRITE; /*!< (@ 0x000001E4) Publish configuration for event WRITE */
  1004. __IOM uint32_t PUBLISH_READ; /*!< (@ 0x000001E8) Publish configuration for event READ */
  1005. __IM uint32_t RESERVED14[5];
  1006. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1007. __IM uint32_t RESERVED15[63];
  1008. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1009. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1010. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1011. __IM uint32_t RESERVED16[113];
  1012. __IOM uint32_t ERRORSRC; /*!< (@ 0x000004D0) Error source */
  1013. __IM uint32_t MATCH; /*!< (@ 0x000004D4) Status register indicating which address had
  1014. a match */
  1015. __IM uint32_t RESERVED17[10];
  1016. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable TWIS */
  1017. __IM uint32_t RESERVED18;
  1018. __IOM TWIS_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  1019. __IM uint32_t RESERVED19[9];
  1020. __IOM TWIS_RXD_Type RXD; /*!< (@ 0x00000534) RXD EasyDMA channel */
  1021. __IOM TWIS_TXD_Type TXD; /*!< (@ 0x00000544) TXD EasyDMA channel */
  1022. __IM uint32_t RESERVED20[13];
  1023. __IOM uint32_t ADDRESS[2]; /*!< (@ 0x00000588) Description collection: TWI slave address n */
  1024. __IM uint32_t RESERVED21;
  1025. __IOM uint32_t CONFIG; /*!< (@ 0x00000594) Configuration register for the address match
  1026. mechanism */
  1027. __IM uint32_t RESERVED22[10];
  1028. __IOM uint32_t ORC; /*!< (@ 0x000005C0) Over-read character. Character sent out in case
  1029. of an over-read of the transmit buffer. */
  1030. } NRF_TWIS_Type; /*!< Size = 1476 (0x5c4) */
  1031. /* =========================================================================================================================== */
  1032. /* ================ UARTE0_NS ================ */
  1033. /* =========================================================================================================================== */
  1034. /**
  1035. * @brief UART with EasyDMA 0 (UARTE0_NS)
  1036. */
  1037. typedef struct { /*!< (@ 0x40008000) UARTE0_NS Structure */
  1038. __OM uint32_t TASKS_STARTRX; /*!< (@ 0x00000000) Start UART receiver */
  1039. __OM uint32_t TASKS_STOPRX; /*!< (@ 0x00000004) Stop UART receiver */
  1040. __OM uint32_t TASKS_STARTTX; /*!< (@ 0x00000008) Start UART transmitter */
  1041. __OM uint32_t TASKS_STOPTX; /*!< (@ 0x0000000C) Stop UART transmitter */
  1042. __IM uint32_t RESERVED[7];
  1043. __OM uint32_t TASKS_FLUSHRX; /*!< (@ 0x0000002C) Flush RX FIFO into RX buffer */
  1044. __IM uint32_t RESERVED1[20];
  1045. __IOM uint32_t SUBSCRIBE_STARTRX; /*!< (@ 0x00000080) Subscribe configuration for task STARTRX */
  1046. __IOM uint32_t SUBSCRIBE_STOPRX; /*!< (@ 0x00000084) Subscribe configuration for task STOPRX */
  1047. __IOM uint32_t SUBSCRIBE_STARTTX; /*!< (@ 0x00000088) Subscribe configuration for task STARTTX */
  1048. __IOM uint32_t SUBSCRIBE_STOPTX; /*!< (@ 0x0000008C) Subscribe configuration for task STOPTX */
  1049. __IM uint32_t RESERVED2[7];
  1050. __IOM uint32_t SUBSCRIBE_FLUSHRX; /*!< (@ 0x000000AC) Subscribe configuration for task FLUSHRX */
  1051. __IM uint32_t RESERVED3[20];
  1052. __IOM uint32_t EVENTS_CTS; /*!< (@ 0x00000100) CTS is activated (set low). Clear To Send. */
  1053. __IOM uint32_t EVENTS_NCTS; /*!< (@ 0x00000104) CTS is deactivated (set high). Not Clear To Send. */
  1054. __IOM uint32_t EVENTS_RXDRDY; /*!< (@ 0x00000108) Data received in RXD (but potentially not yet
  1055. transferred to Data RAM) */
  1056. __IM uint32_t RESERVED4;
  1057. __IOM uint32_t EVENTS_ENDRX; /*!< (@ 0x00000110) Receive buffer is filled up */
  1058. __IM uint32_t RESERVED5[2];
  1059. __IOM uint32_t EVENTS_TXDRDY; /*!< (@ 0x0000011C) Data sent from TXD */
  1060. __IOM uint32_t EVENTS_ENDTX; /*!< (@ 0x00000120) Last TX byte transmitted */
  1061. __IOM uint32_t EVENTS_ERROR; /*!< (@ 0x00000124) Error detected */
  1062. __IM uint32_t RESERVED6[7];
  1063. __IOM uint32_t EVENTS_RXTO; /*!< (@ 0x00000144) Receiver timeout */
  1064. __IM uint32_t RESERVED7;
  1065. __IOM uint32_t EVENTS_RXSTARTED; /*!< (@ 0x0000014C) UART receiver has started */
  1066. __IOM uint32_t EVENTS_TXSTARTED; /*!< (@ 0x00000150) UART transmitter has started */
  1067. __IM uint32_t RESERVED8;
  1068. __IOM uint32_t EVENTS_TXSTOPPED; /*!< (@ 0x00000158) Transmitter stopped */
  1069. __IM uint32_t RESERVED9[9];
  1070. __IOM uint32_t PUBLISH_CTS; /*!< (@ 0x00000180) Publish configuration for event CTS */
  1071. __IOM uint32_t PUBLISH_NCTS; /*!< (@ 0x00000184) Publish configuration for event NCTS */
  1072. __IOM uint32_t PUBLISH_RXDRDY; /*!< (@ 0x00000188) Publish configuration for event RXDRDY */
  1073. __IM uint32_t RESERVED10;
  1074. __IOM uint32_t PUBLISH_ENDRX; /*!< (@ 0x00000190) Publish configuration for event ENDRX */
  1075. __IM uint32_t RESERVED11[2];
  1076. __IOM uint32_t PUBLISH_TXDRDY; /*!< (@ 0x0000019C) Publish configuration for event TXDRDY */
  1077. __IOM uint32_t PUBLISH_ENDTX; /*!< (@ 0x000001A0) Publish configuration for event ENDTX */
  1078. __IOM uint32_t PUBLISH_ERROR; /*!< (@ 0x000001A4) Publish configuration for event ERROR */
  1079. __IM uint32_t RESERVED12[7];
  1080. __IOM uint32_t PUBLISH_RXTO; /*!< (@ 0x000001C4) Publish configuration for event RXTO */
  1081. __IM uint32_t RESERVED13;
  1082. __IOM uint32_t PUBLISH_RXSTARTED; /*!< (@ 0x000001CC) Publish configuration for event RXSTARTED */
  1083. __IOM uint32_t PUBLISH_TXSTARTED; /*!< (@ 0x000001D0) Publish configuration for event TXSTARTED */
  1084. __IM uint32_t RESERVED14;
  1085. __IOM uint32_t PUBLISH_TXSTOPPED; /*!< (@ 0x000001D8) Publish configuration for event TXSTOPPED */
  1086. __IM uint32_t RESERVED15[9];
  1087. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1088. __IM uint32_t RESERVED16[63];
  1089. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1090. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1091. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1092. __IM uint32_t RESERVED17[93];
  1093. __IOM uint32_t ERRORSRC; /*!< (@ 0x00000480) Error source Note : this register is read / write
  1094. one to clear. */
  1095. __IM uint32_t RESERVED18[31];
  1096. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable UART */
  1097. __IM uint32_t RESERVED19;
  1098. __IOM UARTE_PSEL_Type PSEL; /*!< (@ 0x00000508) Unspecified */
  1099. __IM uint32_t RESERVED20[3];
  1100. __IOM uint32_t BAUDRATE; /*!< (@ 0x00000524) Baud rate. Accuracy depends on the HFCLK source
  1101. selected. */
  1102. __IM uint32_t RESERVED21[3];
  1103. __IOM UARTE_RXD_Type RXD; /*!< (@ 0x00000534) RXD EasyDMA channel */
  1104. __IM uint32_t RESERVED22;
  1105. __IOM UARTE_TXD_Type TXD; /*!< (@ 0x00000544) TXD EasyDMA channel */
  1106. __IM uint32_t RESERVED23[7];
  1107. __IOM uint32_t CONFIG; /*!< (@ 0x0000056C) Configuration of parity and hardware flow control */
  1108. } NRF_UARTE_Type; /*!< Size = 1392 (0x570) */
  1109. /* =========================================================================================================================== */
  1110. /* ================ GPIOTE0_S ================ */
  1111. /* =========================================================================================================================== */
  1112. /**
  1113. * @brief GPIO Tasks and Events 0 (GPIOTE0_S)
  1114. */
  1115. typedef struct { /*!< (@ 0x5000D000) GPIOTE0_S Structure */
  1116. __OM uint32_t TASKS_OUT[8]; /*!< (@ 0x00000000) Description collection: Task for writing to pin
  1117. specified in CONFIG[n].PSEL. Action on pin
  1118. is configured in CONFIG[n].POLARITY. */
  1119. __IM uint32_t RESERVED[4];
  1120. __OM uint32_t TASKS_SET[8]; /*!< (@ 0x00000030) Description collection: Task for writing to pin
  1121. specified in CONFIG[n].PSEL. Action on pin
  1122. is to set it high. */
  1123. __IM uint32_t RESERVED1[4];
  1124. __OM uint32_t TASKS_CLR[8]; /*!< (@ 0x00000060) Description collection: Task for writing to pin
  1125. specified in CONFIG[n].PSEL. Action on pin
  1126. is to set it low. */
  1127. __IOM uint32_t SUBSCRIBE_OUT[8]; /*!< (@ 0x00000080) Description collection: Subscribe configuration
  1128. for task OUT[n] */
  1129. __IM uint32_t RESERVED2[4];
  1130. __IOM uint32_t SUBSCRIBE_SET[8]; /*!< (@ 0x000000B0) Description collection: Subscribe configuration
  1131. for task SET[n] */
  1132. __IM uint32_t RESERVED3[4];
  1133. __IOM uint32_t SUBSCRIBE_CLR[8]; /*!< (@ 0x000000E0) Description collection: Subscribe configuration
  1134. for task CLR[n] */
  1135. __IOM uint32_t EVENTS_IN[8]; /*!< (@ 0x00000100) Description collection: Event generated from
  1136. pin specified in CONFIG[n].PSEL */
  1137. __IM uint32_t RESERVED4[23];
  1138. __IOM uint32_t EVENTS_PORT; /*!< (@ 0x0000017C) Event generated from multiple input GPIO pins
  1139. with SENSE mechanism enabled */
  1140. __IOM uint32_t PUBLISH_IN[8]; /*!< (@ 0x00000180) Description collection: Publish configuration
  1141. for event IN[n] */
  1142. __IM uint32_t RESERVED5[23];
  1143. __IOM uint32_t PUBLISH_PORT; /*!< (@ 0x000001FC) Publish configuration for event PORT */
  1144. __IM uint32_t RESERVED6[65];
  1145. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1146. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1147. __IM uint32_t RESERVED7[129];
  1148. __IOM uint32_t CONFIG[8]; /*!< (@ 0x00000510) Description collection: Configuration for OUT[n],
  1149. SET[n] and CLR[n] tasks and IN[n] event */
  1150. } NRF_GPIOTE_Type; /*!< Size = 1328 (0x530) */
  1151. /* =========================================================================================================================== */
  1152. /* ================ SAADC_NS ================ */
  1153. /* =========================================================================================================================== */
  1154. /**
  1155. * @brief Analog to Digital Converter 0 (SAADC_NS)
  1156. */
  1157. typedef struct { /*!< (@ 0x4000E000) SAADC_NS Structure */
  1158. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start the ADC and prepare the result buffer in
  1159. RAM */
  1160. __OM uint32_t TASKS_SAMPLE; /*!< (@ 0x00000004) Take one ADC sample, if scan is enabled all channels
  1161. are sampled */
  1162. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000008) Stop the ADC and terminate any on-going conversion */
  1163. __OM uint32_t TASKS_CALIBRATEOFFSET; /*!< (@ 0x0000000C) Starts offset auto-calibration */
  1164. __IM uint32_t RESERVED[28];
  1165. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000080) Subscribe configuration for task START */
  1166. __IOM uint32_t SUBSCRIBE_SAMPLE; /*!< (@ 0x00000084) Subscribe configuration for task SAMPLE */
  1167. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000088) Subscribe configuration for task STOP */
  1168. __IOM uint32_t SUBSCRIBE_CALIBRATEOFFSET; /*!< (@ 0x0000008C) Subscribe configuration for task CALIBRATEOFFSET */
  1169. __IM uint32_t RESERVED1[28];
  1170. __IOM uint32_t EVENTS_STARTED; /*!< (@ 0x00000100) The ADC has started */
  1171. __IOM uint32_t EVENTS_END; /*!< (@ 0x00000104) The ADC has filled up the Result buffer */
  1172. __IOM uint32_t EVENTS_DONE; /*!< (@ 0x00000108) A conversion task has been completed. Depending
  1173. on the mode, multiple conversions might
  1174. be needed for a result to be transferred
  1175. to RAM. */
  1176. __IOM uint32_t EVENTS_RESULTDONE; /*!< (@ 0x0000010C) A result is ready to get transferred to RAM. */
  1177. __IOM uint32_t EVENTS_CALIBRATEDONE; /*!< (@ 0x00000110) Calibration is complete */
  1178. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000114) The ADC has stopped */
  1179. __IOM SAADC_EVENTS_CH_Type EVENTS_CH[8]; /*!< (@ 0x00000118) Peripheral events. */
  1180. __IM uint32_t RESERVED2[10];
  1181. __IOM uint32_t PUBLISH_STARTED; /*!< (@ 0x00000180) Publish configuration for event STARTED */
  1182. __IOM uint32_t PUBLISH_END; /*!< (@ 0x00000184) Publish configuration for event END */
  1183. __IOM uint32_t PUBLISH_DONE; /*!< (@ 0x00000188) Publish configuration for event DONE */
  1184. __IOM uint32_t PUBLISH_RESULTDONE; /*!< (@ 0x0000018C) Publish configuration for event RESULTDONE */
  1185. __IOM uint32_t PUBLISH_CALIBRATEDONE; /*!< (@ 0x00000190) Publish configuration for event CALIBRATEDONE */
  1186. __IOM uint32_t PUBLISH_STOPPED; /*!< (@ 0x00000194) Publish configuration for event STOPPED */
  1187. __IOM SAADC_PUBLISH_CH_Type PUBLISH_CH[8]; /*!< (@ 0x00000198) Publish configuration for events */
  1188. __IM uint32_t RESERVED3[74];
  1189. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1190. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1191. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1192. __IM uint32_t RESERVED4[61];
  1193. __IM uint32_t STATUS; /*!< (@ 0x00000400) Status */
  1194. __IM uint32_t RESERVED5[63];
  1195. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable or disable ADC */
  1196. __IM uint32_t RESERVED6[3];
  1197. __IOM SAADC_CH_Type CH[8]; /*!< (@ 0x00000510) Unspecified */
  1198. __IM uint32_t RESERVED7[24];
  1199. __IOM uint32_t RESOLUTION; /*!< (@ 0x000005F0) Resolution configuration */
  1200. __IOM uint32_t OVERSAMPLE; /*!< (@ 0x000005F4) Oversampling configuration. OVERSAMPLE should
  1201. not be combined with SCAN. The RESOLUTION
  1202. is applied before averaging, thus for high
  1203. OVERSAMPLE a higher RESOLUTION should be
  1204. used. */
  1205. __IOM uint32_t SAMPLERATE; /*!< (@ 0x000005F8) Controls normal or continuous sample rate */
  1206. __IM uint32_t RESERVED8[12];
  1207. __IOM SAADC_RESULT_Type RESULT; /*!< (@ 0x0000062C) RESULT EasyDMA channel */
  1208. } NRF_SAADC_Type; /*!< Size = 1592 (0x638) */
  1209. /* =========================================================================================================================== */
  1210. /* ================ TIMER0_NS ================ */
  1211. /* =========================================================================================================================== */
  1212. /**
  1213. * @brief Timer/Counter 0 (TIMER0_NS)
  1214. */
  1215. typedef struct { /*!< (@ 0x4000F000) TIMER0_NS Structure */
  1216. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start Timer */
  1217. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stop Timer */
  1218. __OM uint32_t TASKS_COUNT; /*!< (@ 0x00000008) Increment Timer (Counter mode only) */
  1219. __OM uint32_t TASKS_CLEAR; /*!< (@ 0x0000000C) Clear time */
  1220. __OM uint32_t TASKS_SHUTDOWN; /*!< (@ 0x00000010) Deprecated register - Shut down timer */
  1221. __IM uint32_t RESERVED[11];
  1222. __OM uint32_t TASKS_CAPTURE[6]; /*!< (@ 0x00000040) Description collection: Capture Timer value to
  1223. CC[n] register */
  1224. __IM uint32_t RESERVED1[10];
  1225. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000080) Subscribe configuration for task START */
  1226. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000084) Subscribe configuration for task STOP */
  1227. __IOM uint32_t SUBSCRIBE_COUNT; /*!< (@ 0x00000088) Subscribe configuration for task COUNT */
  1228. __IOM uint32_t SUBSCRIBE_CLEAR; /*!< (@ 0x0000008C) Subscribe configuration for task CLEAR */
  1229. __IOM uint32_t SUBSCRIBE_SHUTDOWN; /*!< (@ 0x00000090) Deprecated register - Subscribe configuration
  1230. for task SHUTDOWN */
  1231. __IM uint32_t RESERVED2[11];
  1232. __IOM uint32_t SUBSCRIBE_CAPTURE[6]; /*!< (@ 0x000000C0) Description collection: Subscribe configuration
  1233. for task CAPTURE[n] */
  1234. __IM uint32_t RESERVED3[26];
  1235. __IOM uint32_t EVENTS_COMPARE[6]; /*!< (@ 0x00000140) Description collection: Compare event on CC[n]
  1236. match */
  1237. __IM uint32_t RESERVED4[26];
  1238. __IOM uint32_t PUBLISH_COMPARE[6]; /*!< (@ 0x000001C0) Description collection: Publish configuration
  1239. for event COMPARE[n] */
  1240. __IM uint32_t RESERVED5[10];
  1241. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1242. __IM uint32_t RESERVED6[64];
  1243. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1244. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1245. __IM uint32_t RESERVED7[126];
  1246. __IOM uint32_t MODE; /*!< (@ 0x00000504) Timer mode selection */
  1247. __IOM uint32_t BITMODE; /*!< (@ 0x00000508) Configure the number of bits used by the TIMER */
  1248. __IM uint32_t RESERVED8;
  1249. __IOM uint32_t PRESCALER; /*!< (@ 0x00000510) Timer prescaler register */
  1250. __IOM uint32_t ONESHOTEN[6]; /*!< (@ 0x00000514) Description collection: Enable one-shot operation
  1251. for Capture/Compare channel n */
  1252. __IM uint32_t RESERVED9[5];
  1253. __IOM uint32_t CC[6]; /*!< (@ 0x00000540) Description collection: Capture/Compare register
  1254. n */
  1255. } NRF_TIMER_Type; /*!< Size = 1368 (0x558) */
  1256. /* =========================================================================================================================== */
  1257. /* ================ RTC0_NS ================ */
  1258. /* =========================================================================================================================== */
  1259. /**
  1260. * @brief Real-time counter 0 (RTC0_NS)
  1261. */
  1262. typedef struct { /*!< (@ 0x40014000) RTC0_NS Structure */
  1263. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start RTC counter */
  1264. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stop RTC counter */
  1265. __OM uint32_t TASKS_CLEAR; /*!< (@ 0x00000008) Clear RTC counter */
  1266. __OM uint32_t TASKS_TRIGOVRFLW; /*!< (@ 0x0000000C) Set counter to 0xFFFFF0 */
  1267. __IM uint32_t RESERVED[28];
  1268. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000080) Subscribe configuration for task START */
  1269. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000084) Subscribe configuration for task STOP */
  1270. __IOM uint32_t SUBSCRIBE_CLEAR; /*!< (@ 0x00000088) Subscribe configuration for task CLEAR */
  1271. __IOM uint32_t SUBSCRIBE_TRIGOVRFLW; /*!< (@ 0x0000008C) Subscribe configuration for task TRIGOVRFLW */
  1272. __IM uint32_t RESERVED1[28];
  1273. __IOM uint32_t EVENTS_TICK; /*!< (@ 0x00000100) Event on counter increment */
  1274. __IOM uint32_t EVENTS_OVRFLW; /*!< (@ 0x00000104) Event on counter overflow */
  1275. __IM uint32_t RESERVED2[14];
  1276. __IOM uint32_t EVENTS_COMPARE[4]; /*!< (@ 0x00000140) Description collection: Compare event on CC[n]
  1277. match */
  1278. __IM uint32_t RESERVED3[12];
  1279. __IOM uint32_t PUBLISH_TICK; /*!< (@ 0x00000180) Publish configuration for event TICK */
  1280. __IOM uint32_t PUBLISH_OVRFLW; /*!< (@ 0x00000184) Publish configuration for event OVRFLW */
  1281. __IM uint32_t RESERVED4[14];
  1282. __IOM uint32_t PUBLISH_COMPARE[4]; /*!< (@ 0x000001C0) Description collection: Publish configuration
  1283. for event COMPARE[n] */
  1284. __IM uint32_t RESERVED5[77];
  1285. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1286. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1287. __IM uint32_t RESERVED6[13];
  1288. __IOM uint32_t EVTEN; /*!< (@ 0x00000340) Enable or disable event routing */
  1289. __IOM uint32_t EVTENSET; /*!< (@ 0x00000344) Enable event routing */
  1290. __IOM uint32_t EVTENCLR; /*!< (@ 0x00000348) Disable event routing */
  1291. __IM uint32_t RESERVED7[110];
  1292. __IM uint32_t COUNTER; /*!< (@ 0x00000504) Current counter value */
  1293. __IOM uint32_t PRESCALER; /*!< (@ 0x00000508) 12-bit prescaler for counter frequency (32768/(PRESCALER+1)).
  1294. Must be written when RTC is stopped. */
  1295. __IM uint32_t RESERVED8[13];
  1296. __IOM uint32_t CC[4]; /*!< (@ 0x00000540) Description collection: Compare register n */
  1297. } NRF_RTC_Type; /*!< Size = 1360 (0x550) */
  1298. /* =========================================================================================================================== */
  1299. /* ================ DPPIC_NS ================ */
  1300. /* =========================================================================================================================== */
  1301. /**
  1302. * @brief Distributed Programmable Peripheral Interconnect Controller 0 (DPPIC_NS)
  1303. */
  1304. typedef struct { /*!< (@ 0x40017000) DPPIC_NS Structure */
  1305. __OM DPPIC_TASKS_CHG_Type TASKS_CHG[6]; /*!< (@ 0x00000000) Channel group tasks */
  1306. __IM uint32_t RESERVED[20];
  1307. __IOM DPPIC_SUBSCRIBE_CHG_Type SUBSCRIBE_CHG[6];/*!< (@ 0x00000080) Subscribe configuration for tasks */
  1308. __IM uint32_t RESERVED1[276];
  1309. __IOM uint32_t CHEN; /*!< (@ 0x00000500) Channel enable register */
  1310. __IOM uint32_t CHENSET; /*!< (@ 0x00000504) Channel enable set register */
  1311. __IOM uint32_t CHENCLR; /*!< (@ 0x00000508) Channel enable clear register */
  1312. __IM uint32_t RESERVED2[189];
  1313. __IOM uint32_t CHG[6]; /*!< (@ 0x00000800) Description collection: Channel group n Note:
  1314. Writes to this register is ignored if either
  1315. SUBSCRIBE_CHG[n].EN/DIS are enabled. */
  1316. } NRF_DPPIC_Type; /*!< Size = 2072 (0x818) */
  1317. /* =========================================================================================================================== */
  1318. /* ================ WDT_NS ================ */
  1319. /* =========================================================================================================================== */
  1320. /**
  1321. * @brief Watchdog Timer 0 (WDT_NS)
  1322. */
  1323. typedef struct { /*!< (@ 0x40018000) WDT_NS Structure */
  1324. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Start the watchdog */
  1325. __IM uint32_t RESERVED[31];
  1326. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000080) Subscribe configuration for task START */
  1327. __IM uint32_t RESERVED1[31];
  1328. __IOM uint32_t EVENTS_TIMEOUT; /*!< (@ 0x00000100) Watchdog timeout */
  1329. __IM uint32_t RESERVED2[31];
  1330. __IOM uint32_t PUBLISH_TIMEOUT; /*!< (@ 0x00000180) Publish configuration for event TIMEOUT */
  1331. __IM uint32_t RESERVED3[96];
  1332. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1333. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1334. __IM uint32_t RESERVED4[61];
  1335. __IM uint32_t RUNSTATUS; /*!< (@ 0x00000400) Run status */
  1336. __IM uint32_t REQSTATUS; /*!< (@ 0x00000404) Request status */
  1337. __IM uint32_t RESERVED5[63];
  1338. __IOM uint32_t CRV; /*!< (@ 0x00000504) Counter reload value */
  1339. __IOM uint32_t RREN; /*!< (@ 0x00000508) Enable register for reload request registers */
  1340. __IOM uint32_t CONFIG; /*!< (@ 0x0000050C) Configuration register */
  1341. __IM uint32_t RESERVED6[60];
  1342. __OM uint32_t RR[8]; /*!< (@ 0x00000600) Description collection: Reload request n */
  1343. } NRF_WDT_Type; /*!< Size = 1568 (0x620) */
  1344. /* =========================================================================================================================== */
  1345. /* ================ EGU0_NS ================ */
  1346. /* =========================================================================================================================== */
  1347. /**
  1348. * @brief Event generator unit 0 (EGU0_NS)
  1349. */
  1350. typedef struct { /*!< (@ 0x4001B000) EGU0_NS Structure */
  1351. __OM uint32_t TASKS_TRIGGER[16]; /*!< (@ 0x00000000) Description collection: Trigger n for triggering
  1352. the corresponding TRIGGERED[n] event */
  1353. __IM uint32_t RESERVED[16];
  1354. __IOM uint32_t SUBSCRIBE_TRIGGER[16]; /*!< (@ 0x00000080) Description collection: Subscribe configuration
  1355. for task TRIGGER[n] */
  1356. __IM uint32_t RESERVED1[16];
  1357. __IOM uint32_t EVENTS_TRIGGERED[16]; /*!< (@ 0x00000100) Description collection: Event number n generated
  1358. by triggering the corresponding TRIGGER[n]
  1359. task */
  1360. __IM uint32_t RESERVED2[16];
  1361. __IOM uint32_t PUBLISH_TRIGGERED[16]; /*!< (@ 0x00000180) Description collection: Publish configuration
  1362. for event TRIGGERED[n] */
  1363. __IM uint32_t RESERVED3[80];
  1364. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1365. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1366. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1367. } NRF_EGU_Type; /*!< Size = 780 (0x30c) */
  1368. /* =========================================================================================================================== */
  1369. /* ================ PWM0_NS ================ */
  1370. /* =========================================================================================================================== */
  1371. /**
  1372. * @brief Pulse width modulation unit 0 (PWM0_NS)
  1373. */
  1374. typedef struct { /*!< (@ 0x40021000) PWM0_NS Structure */
  1375. __IM uint32_t RESERVED;
  1376. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stops PWM pulse generation on all channels at
  1377. the end of current PWM period, and stops
  1378. sequence playback */
  1379. __OM uint32_t TASKS_SEQSTART[2]; /*!< (@ 0x00000008) Description collection: Loads the first PWM value
  1380. on all enabled channels from sequence n,
  1381. and starts playing that sequence at the
  1382. rate defined in SEQ[n]REFRESH and/or DECODER.MODE.
  1383. Causes PWM generation to start if not running. */
  1384. __OM uint32_t TASKS_NEXTSTEP; /*!< (@ 0x00000010) Steps by one value in the current sequence on
  1385. all enabled channels if DECODER.MODE=NextStep.
  1386. Does not cause PWM generation to start if
  1387. not running. */
  1388. __IM uint32_t RESERVED1[28];
  1389. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000084) Subscribe configuration for task STOP */
  1390. __IOM uint32_t SUBSCRIBE_SEQSTART[2]; /*!< (@ 0x00000088) Description collection: Subscribe configuration
  1391. for task SEQSTART[n] */
  1392. __IOM uint32_t SUBSCRIBE_NEXTSTEP; /*!< (@ 0x00000090) Subscribe configuration for task NEXTSTEP */
  1393. __IM uint32_t RESERVED2[28];
  1394. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) Response to STOP task, emitted when PWM pulses
  1395. are no longer generated */
  1396. __IOM uint32_t EVENTS_SEQSTARTED[2]; /*!< (@ 0x00000108) Description collection: First PWM period started
  1397. on sequence n */
  1398. __IOM uint32_t EVENTS_SEQEND[2]; /*!< (@ 0x00000110) Description collection: Emitted at end of every
  1399. sequence n, when last value from RAM has
  1400. been applied to wave counter */
  1401. __IOM uint32_t EVENTS_PWMPERIODEND; /*!< (@ 0x00000118) Emitted at the end of each PWM period */
  1402. __IOM uint32_t EVENTS_LOOPSDONE; /*!< (@ 0x0000011C) Concatenated sequences have been played the amount
  1403. of times defined in LOOP.CNT */
  1404. __IM uint32_t RESERVED3[25];
  1405. __IOM uint32_t PUBLISH_STOPPED; /*!< (@ 0x00000184) Publish configuration for event STOPPED */
  1406. __IOM uint32_t PUBLISH_SEQSTARTED[2]; /*!< (@ 0x00000188) Description collection: Publish configuration
  1407. for event SEQSTARTED[n] */
  1408. __IOM uint32_t PUBLISH_SEQEND[2]; /*!< (@ 0x00000190) Description collection: Publish configuration
  1409. for event SEQEND[n] */
  1410. __IOM uint32_t PUBLISH_PWMPERIODEND; /*!< (@ 0x00000198) Publish configuration for event PWMPERIODEND */
  1411. __IOM uint32_t PUBLISH_LOOPSDONE; /*!< (@ 0x0000019C) Publish configuration for event LOOPSDONE */
  1412. __IM uint32_t RESERVED4[24];
  1413. __IOM uint32_t SHORTS; /*!< (@ 0x00000200) Shortcuts between local events and tasks */
  1414. __IM uint32_t RESERVED5[63];
  1415. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1416. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1417. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1418. __IM uint32_t RESERVED6[125];
  1419. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) PWM module enable register */
  1420. __IOM uint32_t MODE; /*!< (@ 0x00000504) Selects operating mode of the wave counter */
  1421. __IOM uint32_t COUNTERTOP; /*!< (@ 0x00000508) Value up to which the pulse generator counter
  1422. counts */
  1423. __IOM uint32_t PRESCALER; /*!< (@ 0x0000050C) Configuration for PWM_CLK */
  1424. __IOM uint32_t DECODER; /*!< (@ 0x00000510) Configuration of the decoder */
  1425. __IOM uint32_t LOOP; /*!< (@ 0x00000514) Number of playbacks of a loop */
  1426. __IM uint32_t RESERVED7[2];
  1427. __IOM PWM_SEQ_Type SEQ[2]; /*!< (@ 0x00000520) Unspecified */
  1428. __IOM PWM_PSEL_Type PSEL; /*!< (@ 0x00000560) Unspecified */
  1429. } NRF_PWM_Type; /*!< Size = 1392 (0x570) */
  1430. /* =========================================================================================================================== */
  1431. /* ================ PDM_NS ================ */
  1432. /* =========================================================================================================================== */
  1433. /**
  1434. * @brief Pulse Density Modulation (Digital Microphone) Interface 0 (PDM_NS)
  1435. */
  1436. typedef struct { /*!< (@ 0x40026000) PDM_NS Structure */
  1437. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Starts continuous PDM transfer */
  1438. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stops PDM transfer */
  1439. __IM uint32_t RESERVED[30];
  1440. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000080) Subscribe configuration for task START */
  1441. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000084) Subscribe configuration for task STOP */
  1442. __IM uint32_t RESERVED1[30];
  1443. __IOM uint32_t EVENTS_STARTED; /*!< (@ 0x00000100) PDM transfer has started */
  1444. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000104) PDM transfer has finished */
  1445. __IOM uint32_t EVENTS_END; /*!< (@ 0x00000108) The PDM has written the last sample specified
  1446. by SAMPLE.MAXCNT (or the last sample after
  1447. a STOP task has been received) to Data RAM */
  1448. __IM uint32_t RESERVED2[29];
  1449. __IOM uint32_t PUBLISH_STARTED; /*!< (@ 0x00000180) Publish configuration for event STARTED */
  1450. __IOM uint32_t PUBLISH_STOPPED; /*!< (@ 0x00000184) Publish configuration for event STOPPED */
  1451. __IOM uint32_t PUBLISH_END; /*!< (@ 0x00000188) Publish configuration for event END */
  1452. __IM uint32_t RESERVED3[93];
  1453. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1454. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1455. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1456. __IM uint32_t RESERVED4[125];
  1457. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) PDM module enable register */
  1458. __IOM uint32_t PDMCLKCTRL; /*!< (@ 0x00000504) PDM clock generator control */
  1459. __IOM uint32_t MODE; /*!< (@ 0x00000508) Defines the routing of the connected PDM microphones'
  1460. signals */
  1461. __IM uint32_t RESERVED5[3];
  1462. __IOM uint32_t GAINL; /*!< (@ 0x00000518) Left output gain adjustment */
  1463. __IOM uint32_t GAINR; /*!< (@ 0x0000051C) Right output gain adjustment */
  1464. __IOM uint32_t RATIO; /*!< (@ 0x00000520) Selects the ratio between PDM_CLK and output
  1465. sample rate. Change PDMCLKCTRL accordingly. */
  1466. __IM uint32_t RESERVED6[7];
  1467. __IOM PDM_PSEL_Type PSEL; /*!< (@ 0x00000540) Unspecified */
  1468. __IM uint32_t RESERVED7[6];
  1469. __IOM PDM_SAMPLE_Type SAMPLE; /*!< (@ 0x00000560) Unspecified */
  1470. } NRF_PDM_Type; /*!< Size = 1384 (0x568) */
  1471. /* =========================================================================================================================== */
  1472. /* ================ I2S_NS ================ */
  1473. /* =========================================================================================================================== */
  1474. /**
  1475. * @brief Inter-IC Sound 0 (I2S_NS)
  1476. */
  1477. typedef struct { /*!< (@ 0x40028000) I2S_NS Structure */
  1478. __OM uint32_t TASKS_START; /*!< (@ 0x00000000) Starts continuous I2S transfer. Also starts MCK
  1479. generator when this is enabled. */
  1480. __OM uint32_t TASKS_STOP; /*!< (@ 0x00000004) Stops I2S transfer. Also stops MCK generator.
  1481. Triggering this task will cause the STOPPED
  1482. event to be generated. */
  1483. __IM uint32_t RESERVED[30];
  1484. __IOM uint32_t SUBSCRIBE_START; /*!< (@ 0x00000080) Subscribe configuration for task START */
  1485. __IOM uint32_t SUBSCRIBE_STOP; /*!< (@ 0x00000084) Subscribe configuration for task STOP */
  1486. __IM uint32_t RESERVED1[31];
  1487. __IOM uint32_t EVENTS_RXPTRUPD; /*!< (@ 0x00000104) The RXD.PTR register has been copied to internal
  1488. double-buffers. When the I2S module is started
  1489. and RX is enabled, this event will be generated
  1490. for every RXTXD.MAXCNT words that are received
  1491. on the SDIN pin. */
  1492. __IOM uint32_t EVENTS_STOPPED; /*!< (@ 0x00000108) I2S transfer stopped. */
  1493. __IM uint32_t RESERVED2[2];
  1494. __IOM uint32_t EVENTS_TXPTRUPD; /*!< (@ 0x00000114) The TDX.PTR register has been copied to internal
  1495. double-buffers. When the I2S module is started
  1496. and TX is enabled, this event will be generated
  1497. for every RXTXD.MAXCNT words that are sent
  1498. on the SDOUT pin. */
  1499. __IM uint32_t RESERVED3[27];
  1500. __IOM uint32_t PUBLISH_RXPTRUPD; /*!< (@ 0x00000184) Publish configuration for event RXPTRUPD */
  1501. __IOM uint32_t PUBLISH_STOPPED; /*!< (@ 0x00000188) Publish configuration for event STOPPED */
  1502. __IM uint32_t RESERVED4[2];
  1503. __IOM uint32_t PUBLISH_TXPTRUPD; /*!< (@ 0x00000194) Publish configuration for event TXPTRUPD */
  1504. __IM uint32_t RESERVED5[90];
  1505. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1506. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1507. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1508. __IM uint32_t RESERVED6[125];
  1509. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable I2S module. */
  1510. __IOM I2S_CONFIG_Type CONFIG; /*!< (@ 0x00000504) Unspecified */
  1511. __IM uint32_t RESERVED7[3];
  1512. __IOM I2S_RXD_Type RXD; /*!< (@ 0x00000538) Unspecified */
  1513. __IM uint32_t RESERVED8;
  1514. __IOM I2S_TXD_Type TXD; /*!< (@ 0x00000540) Unspecified */
  1515. __IM uint32_t RESERVED9[3];
  1516. __IOM I2S_RXTXD_Type RXTXD; /*!< (@ 0x00000550) Unspecified */
  1517. __IM uint32_t RESERVED10[3];
  1518. __IOM I2S_PSEL_Type PSEL; /*!< (@ 0x00000560) Unspecified */
  1519. } NRF_I2S_Type; /*!< Size = 1396 (0x574) */
  1520. /* =========================================================================================================================== */
  1521. /* ================ IPC_NS ================ */
  1522. /* =========================================================================================================================== */
  1523. /**
  1524. * @brief Inter Processor Communication 0 (IPC_NS)
  1525. */
  1526. typedef struct { /*!< (@ 0x4002A000) IPC_NS Structure */
  1527. __OM uint32_t TASKS_SEND[8]; /*!< (@ 0x00000000) Description collection: Trigger events on channel
  1528. enabled in SEND_CNF[n]. */
  1529. __IM uint32_t RESERVED[24];
  1530. __IOM uint32_t SUBSCRIBE_SEND[8]; /*!< (@ 0x00000080) Description collection: Subscribe configuration
  1531. for task SEND[n] */
  1532. __IM uint32_t RESERVED1[24];
  1533. __IOM uint32_t EVENTS_RECEIVE[8]; /*!< (@ 0x00000100) Description collection: Event received on one
  1534. or more of the enabled channels in RECEIVE_CNF[n]. */
  1535. __IM uint32_t RESERVED2[24];
  1536. __IOM uint32_t PUBLISH_RECEIVE[8]; /*!< (@ 0x00000180) Description collection: Publish configuration
  1537. for event RECEIVE[n] */
  1538. __IM uint32_t RESERVED3[88];
  1539. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1540. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1541. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1542. __IM uint32_t INTPEND; /*!< (@ 0x0000030C) Pending interrupts */
  1543. __IM uint32_t RESERVED4[128];
  1544. __IOM uint32_t SEND_CNF[8]; /*!< (@ 0x00000510) Description collection: Send event configuration
  1545. for TASKS_SEND[n]. */
  1546. __IM uint32_t RESERVED5[24];
  1547. __IOM uint32_t RECEIVE_CNF[8]; /*!< (@ 0x00000590) Description collection: Receive event configuration
  1548. for EVENTS_RECEIVE[n]. */
  1549. __IM uint32_t RESERVED6[24];
  1550. __IOM uint32_t GPMEM[4]; /*!< (@ 0x00000610) Description collection: General purpose memory. */
  1551. } NRF_IPC_Type; /*!< Size = 1568 (0x620) */
  1552. /* =========================================================================================================================== */
  1553. /* ================ FPU_NS ================ */
  1554. /* =========================================================================================================================== */
  1555. /**
  1556. * @brief FPU 0 (FPU_NS)
  1557. */
  1558. typedef struct { /*!< (@ 0x4002C000) FPU_NS Structure */
  1559. __IM uint32_t UNUSED; /*!< (@ 0x00000000) Unused. */
  1560. } NRF_FPU_Type; /*!< Size = 4 (0x4) */
  1561. /* =========================================================================================================================== */
  1562. /* ================ KMU_NS ================ */
  1563. /* =========================================================================================================================== */
  1564. /**
  1565. * @brief Key management unit 0 (KMU_NS)
  1566. */
  1567. typedef struct { /*!< (@ 0x40039000) KMU_NS Structure */
  1568. __OM uint32_t TASKS_PUSH_KEYSLOT; /*!< (@ 0x00000000) Push a key slot over secure APB */
  1569. __IM uint32_t RESERVED[63];
  1570. __IOM uint32_t EVENTS_KEYSLOT_PUSHED; /*!< (@ 0x00000100) Key slot successfully pushed over secure APB */
  1571. __IOM uint32_t EVENTS_KEYSLOT_REVOKED; /*!< (@ 0x00000104) Key slot has been revoked and cannot be tasked
  1572. for selection */
  1573. __IOM uint32_t EVENTS_KEYSLOT_ERROR; /*!< (@ 0x00000108) No key slot selected, no destination address
  1574. defined, or error during push operation */
  1575. __IM uint32_t RESERVED1[125];
  1576. __IOM uint32_t INTEN; /*!< (@ 0x00000300) Enable or disable interrupt */
  1577. __IOM uint32_t INTENSET; /*!< (@ 0x00000304) Enable interrupt */
  1578. __IOM uint32_t INTENCLR; /*!< (@ 0x00000308) Disable interrupt */
  1579. __IM uint32_t INTPEND; /*!< (@ 0x0000030C) Pending interrupts */
  1580. __IM uint32_t RESERVED2[63];
  1581. __IM uint32_t STATUS; /*!< (@ 0x0000040C) Status bits for KMU operation */
  1582. __IM uint32_t RESERVED3[60];
  1583. __IOM uint32_t SELECTKEYSLOT; /*!< (@ 0x00000500) Select key slot to be read over AHB or pushed
  1584. over secure APB when TASKS_PUSH_KEYSLOT
  1585. is started */
  1586. } NRF_KMU_Type; /*!< Size = 1284 (0x504) */
  1587. /* =========================================================================================================================== */
  1588. /* ================ NVMC_NS ================ */
  1589. /* =========================================================================================================================== */
  1590. /**
  1591. * @brief Non-volatile memory controller 0 (NVMC_NS)
  1592. */
  1593. typedef struct { /*!< (@ 0x40039000) NVMC_NS Structure */
  1594. __IM uint32_t RESERVED[256];
  1595. __IM uint32_t READY; /*!< (@ 0x00000400) Ready flag */
  1596. __IM uint32_t RESERVED1;
  1597. __IM uint32_t READYNEXT; /*!< (@ 0x00000408) Ready flag */
  1598. __IM uint32_t RESERVED2[62];
  1599. __IOM uint32_t CONFIG; /*!< (@ 0x00000504) Configuration register */
  1600. __IM uint32_t RESERVED3;
  1601. __OM uint32_t ERASEALL; /*!< (@ 0x0000050C) Register for erasing all non-volatile user memory */
  1602. __IM uint32_t RESERVED4[3];
  1603. __IOM uint32_t ERASEPAGEPARTIALCFG; /*!< (@ 0x0000051C) Register for partial erase configuration */
  1604. __IM uint32_t RESERVED5[8];
  1605. __IOM uint32_t ICACHECNF; /*!< (@ 0x00000540) I-code cache configuration register */
  1606. __IM uint32_t RESERVED6;
  1607. __IOM uint32_t IHIT; /*!< (@ 0x00000548) I-code cache hit counter */
  1608. __IOM uint32_t IMISS; /*!< (@ 0x0000054C) I-code cache miss counter */
  1609. __IM uint32_t RESERVED7[13];
  1610. __IOM uint32_t CONFIGNS; /*!< (@ 0x00000584) Unspecified */
  1611. __OM uint32_t WRITEUICRNS; /*!< (@ 0x00000588) Non-secure APPROTECT enable register */
  1612. } NRF_NVMC_Type; /*!< Size = 1420 (0x58c) */
  1613. /* =========================================================================================================================== */
  1614. /* ================ VMC_NS ================ */
  1615. /* =========================================================================================================================== */
  1616. /**
  1617. * @brief Volatile Memory controller 0 (VMC_NS)
  1618. */
  1619. typedef struct { /*!< (@ 0x4003A000) VMC_NS Structure */
  1620. __IM uint32_t RESERVED[384];
  1621. __IOM VMC_RAM_Type RAM[8]; /*!< (@ 0x00000600) Unspecified */
  1622. } NRF_VMC_Type; /*!< Size = 1664 (0x680) */
  1623. /* =========================================================================================================================== */
  1624. /* ================ CC_HOST_RGF_S ================ */
  1625. /* =========================================================================================================================== */
  1626. /**
  1627. * @brief CRYPTOCELL HOST_RGF interface (CC_HOST_RGF_S)
  1628. */
  1629. typedef struct { /*!< (@ 0x50840000) CC_HOST_RGF_S Structure */
  1630. __IM uint32_t RESERVED[1678];
  1631. __IOM uint32_t HOST_CRYPTOKEY_SEL; /*!< (@ 0x00001A38) AES hardware key select */
  1632. __IM uint32_t RESERVED1[4];
  1633. __IOM uint32_t HOST_IOT_KPRTL_LOCK; /*!< (@ 0x00001A4C) This write-once register is the K_PRTL lock register.
  1634. When this register is set, K_PRTL cannot
  1635. be used and a zeroed key will be used instead.
  1636. The value of this register is saved in the
  1637. CRYPTOCELL AO power domain. */
  1638. __IOM uint32_t HOST_IOT_KDR0; /*!< (@ 0x00001A50) This register holds bits 31:0 of K_DR. The value
  1639. of this register is saved in the CRYPTOCELL
  1640. AO power domain. Reading from this address
  1641. returns the K_DR valid status indicating
  1642. if K_DR is successfully retained. */
  1643. __OM uint32_t HOST_IOT_KDR1; /*!< (@ 0x00001A54) This register holds bits 63:32 of K_DR. The value
  1644. of this register is saved in the CRYPTOCELL
  1645. AO power domain. */
  1646. __OM uint32_t HOST_IOT_KDR2; /*!< (@ 0x00001A58) This register holds bits 95:64 of K_DR. The value
  1647. of this register is saved in the CRYPTOCELL
  1648. AO power domain. */
  1649. __OM uint32_t HOST_IOT_KDR3; /*!< (@ 0x00001A5C) This register holds bits 127:96 of K_DR. The
  1650. value of this register is saved in the CRYPTOCELL
  1651. AO power domain. */
  1652. __IOM uint32_t HOST_IOT_LCS; /*!< (@ 0x00001A60) Controls lifecycle state (LCS) for CRYPTOCELL
  1653. subsystem */
  1654. } NRF_CC_HOST_RGF_Type; /*!< Size = 6756 (0x1a64) */
  1655. /* =========================================================================================================================== */
  1656. /* ================ CRYPTOCELL_S ================ */
  1657. /* =========================================================================================================================== */
  1658. /**
  1659. * @brief ARM TrustZone CryptoCell register interface (CRYPTOCELL_S)
  1660. */
  1661. typedef struct { /*!< (@ 0x50840000) CRYPTOCELL_S Structure */
  1662. __IM uint32_t RESERVED[320];
  1663. __IOM uint32_t ENABLE; /*!< (@ 0x00000500) Enable CRYPTOCELL subsystem */
  1664. } NRF_CRYPTOCELL_Type; /*!< Size = 1284 (0x504) */
  1665. /* =========================================================================================================================== */
  1666. /* ================ P0_NS ================ */
  1667. /* =========================================================================================================================== */
  1668. /**
  1669. * @brief GPIO Port 0 (P0_NS)
  1670. */
  1671. typedef struct { /*!< (@ 0x40842500) P0_NS Structure */
  1672. __IM uint32_t RESERVED;
  1673. __IOM uint32_t OUT; /*!< (@ 0x00000004) Write GPIO port */
  1674. __IOM uint32_t OUTSET; /*!< (@ 0x00000008) Set individual bits in GPIO port */
  1675. __IOM uint32_t OUTCLR; /*!< (@ 0x0000000C) Clear individual bits in GPIO port */
  1676. __IM uint32_t IN; /*!< (@ 0x00000010) Read GPIO port */
  1677. __IOM uint32_t DIR; /*!< (@ 0x00000014) Direction of GPIO pins */
  1678. __IOM uint32_t DIRSET; /*!< (@ 0x00000018) DIR set register */
  1679. __IOM uint32_t DIRCLR; /*!< (@ 0x0000001C) DIR clear register */
  1680. __IOM uint32_t LATCH; /*!< (@ 0x00000020) Latch register indicating what GPIO pins that
  1681. have met the criteria set in the PIN_CNF[n].SENSE
  1682. registers */
  1683. __IOM uint32_t DETECTMODE; /*!< (@ 0x00000024) Select between default DETECT signal behavior
  1684. and LDETECT mode (For non-secure pin only) */
  1685. __IOM uint32_t DETECTMODE_SEC; /*!< (@ 0x00000028) Select between default DETECT signal behavior
  1686. and LDETECT mode (For secure pin only) */
  1687. __IM uint32_t RESERVED1[117];
  1688. __IOM uint32_t PIN_CNF[32]; /*!< (@ 0x00000200) Description collection: Configuration of GPIO
  1689. pins */
  1690. } NRF_GPIO_Type; /*!< Size = 640 (0x280) */
  1691. /** @} */ /* End of group Device_Peripheral_peripherals */
  1692. /* =========================================================================================================================== */
  1693. /* ================ Device Specific Peripheral Address Map ================ */
  1694. /* =========================================================================================================================== */
  1695. /** @addtogroup Device_Peripheral_peripheralAddr
  1696. * @{
  1697. */
  1698. #define NRF_FICR_S_BASE 0x00FF0000UL
  1699. #define NRF_UICR_S_BASE 0x00FF8000UL
  1700. #define NRF_TAD_S_BASE 0xE0080000UL
  1701. #define NRF_SPU_S_BASE 0x50003000UL
  1702. #define NRF_REGULATORS_NS_BASE 0x40004000UL
  1703. #define NRF_REGULATORS_S_BASE 0x50004000UL
  1704. #define NRF_CLOCK_NS_BASE 0x40005000UL
  1705. #define NRF_POWER_NS_BASE 0x40005000UL
  1706. #define NRF_CLOCK_S_BASE 0x50005000UL
  1707. #define NRF_POWER_S_BASE 0x50005000UL
  1708. #define NRF_CTRL_AP_PERI_S_BASE 0x50006000UL
  1709. #define NRF_SPIM0_NS_BASE 0x40008000UL
  1710. #define NRF_SPIS0_NS_BASE 0x40008000UL
  1711. #define NRF_TWIM0_NS_BASE 0x40008000UL
  1712. #define NRF_TWIS0_NS_BASE 0x40008000UL
  1713. #define NRF_UARTE0_NS_BASE 0x40008000UL
  1714. #define NRF_SPIM0_S_BASE 0x50008000UL
  1715. #define NRF_SPIS0_S_BASE 0x50008000UL
  1716. #define NRF_TWIM0_S_BASE 0x50008000UL
  1717. #define NRF_TWIS0_S_BASE 0x50008000UL
  1718. #define NRF_UARTE0_S_BASE 0x50008000UL
  1719. #define NRF_SPIM1_NS_BASE 0x40009000UL
  1720. #define NRF_SPIS1_NS_BASE 0x40009000UL
  1721. #define NRF_TWIM1_NS_BASE 0x40009000UL
  1722. #define NRF_TWIS1_NS_BASE 0x40009000UL
  1723. #define NRF_UARTE1_NS_BASE 0x40009000UL
  1724. #define NRF_SPIM1_S_BASE 0x50009000UL
  1725. #define NRF_SPIS1_S_BASE 0x50009000UL
  1726. #define NRF_TWIM1_S_BASE 0x50009000UL
  1727. #define NRF_TWIS1_S_BASE 0x50009000UL
  1728. #define NRF_UARTE1_S_BASE 0x50009000UL
  1729. #define NRF_SPIM2_NS_BASE 0x4000A000UL
  1730. #define NRF_SPIS2_NS_BASE 0x4000A000UL
  1731. #define NRF_TWIM2_NS_BASE 0x4000A000UL
  1732. #define NRF_TWIS2_NS_BASE 0x4000A000UL
  1733. #define NRF_UARTE2_NS_BASE 0x4000A000UL
  1734. #define NRF_SPIM2_S_BASE 0x5000A000UL
  1735. #define NRF_SPIS2_S_BASE 0x5000A000UL
  1736. #define NRF_TWIM2_S_BASE 0x5000A000UL
  1737. #define NRF_TWIS2_S_BASE 0x5000A000UL
  1738. #define NRF_UARTE2_S_BASE 0x5000A000UL
  1739. #define NRF_SPIM3_NS_BASE 0x4000B000UL
  1740. #define NRF_SPIS3_NS_BASE 0x4000B000UL
  1741. #define NRF_TWIM3_NS_BASE 0x4000B000UL
  1742. #define NRF_TWIS3_NS_BASE 0x4000B000UL
  1743. #define NRF_UARTE3_NS_BASE 0x4000B000UL
  1744. #define NRF_SPIM3_S_BASE 0x5000B000UL
  1745. #define NRF_SPIS3_S_BASE 0x5000B000UL
  1746. #define NRF_TWIM3_S_BASE 0x5000B000UL
  1747. #define NRF_TWIS3_S_BASE 0x5000B000UL
  1748. #define NRF_UARTE3_S_BASE 0x5000B000UL
  1749. #define NRF_GPIOTE0_S_BASE 0x5000D000UL
  1750. #define NRF_SAADC_NS_BASE 0x4000E000UL
  1751. #define NRF_SAADC_S_BASE 0x5000E000UL
  1752. #define NRF_TIMER0_NS_BASE 0x4000F000UL
  1753. #define NRF_TIMER0_S_BASE 0x5000F000UL
  1754. #define NRF_TIMER1_NS_BASE 0x40010000UL
  1755. #define NRF_TIMER1_S_BASE 0x50010000UL
  1756. #define NRF_TIMER2_NS_BASE 0x40011000UL
  1757. #define NRF_TIMER2_S_BASE 0x50011000UL
  1758. #define NRF_RTC0_NS_BASE 0x40014000UL
  1759. #define NRF_RTC0_S_BASE 0x50014000UL
  1760. #define NRF_RTC1_NS_BASE 0x40015000UL
  1761. #define NRF_RTC1_S_BASE 0x50015000UL
  1762. #define NRF_DPPIC_NS_BASE 0x40017000UL
  1763. #define NRF_DPPIC_S_BASE 0x50017000UL
  1764. #define NRF_WDT_NS_BASE 0x40018000UL
  1765. #define NRF_WDT_S_BASE 0x50018000UL
  1766. #define NRF_EGU0_NS_BASE 0x4001B000UL
  1767. #define NRF_EGU0_S_BASE 0x5001B000UL
  1768. #define NRF_EGU1_NS_BASE 0x4001C000UL
  1769. #define NRF_EGU1_S_BASE 0x5001C000UL
  1770. #define NRF_EGU2_NS_BASE 0x4001D000UL
  1771. #define NRF_EGU2_S_BASE 0x5001D000UL
  1772. #define NRF_EGU3_NS_BASE 0x4001E000UL
  1773. #define NRF_EGU3_S_BASE 0x5001E000UL
  1774. #define NRF_EGU4_NS_BASE 0x4001F000UL
  1775. #define NRF_EGU4_S_BASE 0x5001F000UL
  1776. #define NRF_EGU5_NS_BASE 0x40020000UL
  1777. #define NRF_EGU5_S_BASE 0x50020000UL
  1778. #define NRF_PWM0_NS_BASE 0x40021000UL
  1779. #define NRF_PWM0_S_BASE 0x50021000UL
  1780. #define NRF_PWM1_NS_BASE 0x40022000UL
  1781. #define NRF_PWM1_S_BASE 0x50022000UL
  1782. #define NRF_PWM2_NS_BASE 0x40023000UL
  1783. #define NRF_PWM2_S_BASE 0x50023000UL
  1784. #define NRF_PWM3_NS_BASE 0x40024000UL
  1785. #define NRF_PWM3_S_BASE 0x50024000UL
  1786. #define NRF_PDM_NS_BASE 0x40026000UL
  1787. #define NRF_PDM_S_BASE 0x50026000UL
  1788. #define NRF_I2S_NS_BASE 0x40028000UL
  1789. #define NRF_I2S_S_BASE 0x50028000UL
  1790. #define NRF_IPC_NS_BASE 0x4002A000UL
  1791. #define NRF_IPC_S_BASE 0x5002A000UL
  1792. #define NRF_FPU_NS_BASE 0x4002C000UL
  1793. #define NRF_FPU_S_BASE 0x5002C000UL
  1794. #define NRF_GPIOTE1_NS_BASE 0x40031000UL
  1795. #define NRF_KMU_NS_BASE 0x40039000UL
  1796. #define NRF_NVMC_NS_BASE 0x40039000UL
  1797. #define NRF_KMU_S_BASE 0x50039000UL
  1798. #define NRF_NVMC_S_BASE 0x50039000UL
  1799. #define NRF_VMC_NS_BASE 0x4003A000UL
  1800. #define NRF_VMC_S_BASE 0x5003A000UL
  1801. #define NRF_CC_HOST_RGF_S_BASE 0x50840000UL
  1802. #define NRF_CRYPTOCELL_S_BASE 0x50840000UL
  1803. #define NRF_P0_NS_BASE 0x40842500UL
  1804. #define NRF_P0_S_BASE 0x50842500UL
  1805. /** @} */ /* End of group Device_Peripheral_peripheralAddr */
  1806. /* =========================================================================================================================== */
  1807. /* ================ Peripheral declaration ================ */
  1808. /* =========================================================================================================================== */
  1809. /** @addtogroup Device_Peripheral_declaration
  1810. * @{
  1811. */
  1812. #define NRF_FICR_S ((NRF_FICR_Type*) NRF_FICR_S_BASE)
  1813. #define NRF_UICR_S ((NRF_UICR_Type*) NRF_UICR_S_BASE)
  1814. #define NRF_TAD_S ((NRF_TAD_Type*) NRF_TAD_S_BASE)
  1815. #define NRF_SPU_S ((NRF_SPU_Type*) NRF_SPU_S_BASE)
  1816. #define NRF_REGULATORS_NS ((NRF_REGULATORS_Type*) NRF_REGULATORS_NS_BASE)
  1817. #define NRF_REGULATORS_S ((NRF_REGULATORS_Type*) NRF_REGULATORS_S_BASE)
  1818. #define NRF_CLOCK_NS ((NRF_CLOCK_Type*) NRF_CLOCK_NS_BASE)
  1819. #define NRF_POWER_NS ((NRF_POWER_Type*) NRF_POWER_NS_BASE)
  1820. #define NRF_CLOCK_S ((NRF_CLOCK_Type*) NRF_CLOCK_S_BASE)
  1821. #define NRF_POWER_S ((NRF_POWER_Type*) NRF_POWER_S_BASE)
  1822. #define NRF_CTRL_AP_PERI_S ((NRF_CTRLAPPERI_Type*) NRF_CTRL_AP_PERI_S_BASE)
  1823. #define NRF_SPIM0_NS ((NRF_SPIM_Type*) NRF_SPIM0_NS_BASE)
  1824. #define NRF_SPIS0_NS ((NRF_SPIS_Type*) NRF_SPIS0_NS_BASE)
  1825. #define NRF_TWIM0_NS ((NRF_TWIM_Type*) NRF_TWIM0_NS_BASE)
  1826. #define NRF_TWIS0_NS ((NRF_TWIS_Type*) NRF_TWIS0_NS_BASE)
  1827. #define NRF_UARTE0_NS ((NRF_UARTE_Type*) NRF_UARTE0_NS_BASE)
  1828. #define NRF_SPIM0_S ((NRF_SPIM_Type*) NRF_SPIM0_S_BASE)
  1829. #define NRF_SPIS0_S ((NRF_SPIS_Type*) NRF_SPIS0_S_BASE)
  1830. #define NRF_TWIM0_S ((NRF_TWIM_Type*) NRF_TWIM0_S_BASE)
  1831. #define NRF_TWIS0_S ((NRF_TWIS_Type*) NRF_TWIS0_S_BASE)
  1832. #define NRF_UARTE0_S ((NRF_UARTE_Type*) NRF_UARTE0_S_BASE)
  1833. #define NRF_SPIM1_NS ((NRF_SPIM_Type*) NRF_SPIM1_NS_BASE)
  1834. #define NRF_SPIS1_NS ((NRF_SPIS_Type*) NRF_SPIS1_NS_BASE)
  1835. #define NRF_TWIM1_NS ((NRF_TWIM_Type*) NRF_TWIM1_NS_BASE)
  1836. #define NRF_TWIS1_NS ((NRF_TWIS_Type*) NRF_TWIS1_NS_BASE)
  1837. #define NRF_UARTE1_NS ((NRF_UARTE_Type*) NRF_UARTE1_NS_BASE)
  1838. #define NRF_SPIM1_S ((NRF_SPIM_Type*) NRF_SPIM1_S_BASE)
  1839. #define NRF_SPIS1_S ((NRF_SPIS_Type*) NRF_SPIS1_S_BASE)
  1840. #define NRF_TWIM1_S ((NRF_TWIM_Type*) NRF_TWIM1_S_BASE)
  1841. #define NRF_TWIS1_S ((NRF_TWIS_Type*) NRF_TWIS1_S_BASE)
  1842. #define NRF_UARTE1_S ((NRF_UARTE_Type*) NRF_UARTE1_S_BASE)
  1843. #define NRF_SPIM2_NS ((NRF_SPIM_Type*) NRF_SPIM2_NS_BASE)
  1844. #define NRF_SPIS2_NS ((NRF_SPIS_Type*) NRF_SPIS2_NS_BASE)
  1845. #define NRF_TWIM2_NS ((NRF_TWIM_Type*) NRF_TWIM2_NS_BASE)
  1846. #define NRF_TWIS2_NS ((NRF_TWIS_Type*) NRF_TWIS2_NS_BASE)
  1847. #define NRF_UARTE2_NS ((NRF_UARTE_Type*) NRF_UARTE2_NS_BASE)
  1848. #define NRF_SPIM2_S ((NRF_SPIM_Type*) NRF_SPIM2_S_BASE)
  1849. #define NRF_SPIS2_S ((NRF_SPIS_Type*) NRF_SPIS2_S_BASE)
  1850. #define NRF_TWIM2_S ((NRF_TWIM_Type*) NRF_TWIM2_S_BASE)
  1851. #define NRF_TWIS2_S ((NRF_TWIS_Type*) NRF_TWIS2_S_BASE)
  1852. #define NRF_UARTE2_S ((NRF_UARTE_Type*) NRF_UARTE2_S_BASE)
  1853. #define NRF_SPIM3_NS ((NRF_SPIM_Type*) NRF_SPIM3_NS_BASE)
  1854. #define NRF_SPIS3_NS ((NRF_SPIS_Type*) NRF_SPIS3_NS_BASE)
  1855. #define NRF_TWIM3_NS ((NRF_TWIM_Type*) NRF_TWIM3_NS_BASE)
  1856. #define NRF_TWIS3_NS ((NRF_TWIS_Type*) NRF_TWIS3_NS_BASE)
  1857. #define NRF_UARTE3_NS ((NRF_UARTE_Type*) NRF_UARTE3_NS_BASE)
  1858. #define NRF_SPIM3_S ((NRF_SPIM_Type*) NRF_SPIM3_S_BASE)
  1859. #define NRF_SPIS3_S ((NRF_SPIS_Type*) NRF_SPIS3_S_BASE)
  1860. #define NRF_TWIM3_S ((NRF_TWIM_Type*) NRF_TWIM3_S_BASE)
  1861. #define NRF_TWIS3_S ((NRF_TWIS_Type*) NRF_TWIS3_S_BASE)
  1862. #define NRF_UARTE3_S ((NRF_UARTE_Type*) NRF_UARTE3_S_BASE)
  1863. #define NRF_GPIOTE0_S ((NRF_GPIOTE_Type*) NRF_GPIOTE0_S_BASE)
  1864. #define NRF_SAADC_NS ((NRF_SAADC_Type*) NRF_SAADC_NS_BASE)
  1865. #define NRF_SAADC_S ((NRF_SAADC_Type*) NRF_SAADC_S_BASE)
  1866. #define NRF_TIMER0_NS ((NRF_TIMER_Type*) NRF_TIMER0_NS_BASE)
  1867. #define NRF_TIMER0_S ((NRF_TIMER_Type*) NRF_TIMER0_S_BASE)
  1868. #define NRF_TIMER1_NS ((NRF_TIMER_Type*) NRF_TIMER1_NS_BASE)
  1869. #define NRF_TIMER1_S ((NRF_TIMER_Type*) NRF_TIMER1_S_BASE)
  1870. #define NRF_TIMER2_NS ((NRF_TIMER_Type*) NRF_TIMER2_NS_BASE)
  1871. #define NRF_TIMER2_S ((NRF_TIMER_Type*) NRF_TIMER2_S_BASE)
  1872. #define NRF_RTC0_NS ((NRF_RTC_Type*) NRF_RTC0_NS_BASE)
  1873. #define NRF_RTC0_S ((NRF_RTC_Type*) NRF_RTC0_S_BASE)
  1874. #define NRF_RTC1_NS ((NRF_RTC_Type*) NRF_RTC1_NS_BASE)
  1875. #define NRF_RTC1_S ((NRF_RTC_Type*) NRF_RTC1_S_BASE)
  1876. #define NRF_DPPIC_NS ((NRF_DPPIC_Type*) NRF_DPPIC_NS_BASE)
  1877. #define NRF_DPPIC_S ((NRF_DPPIC_Type*) NRF_DPPIC_S_BASE)
  1878. #define NRF_WDT_NS ((NRF_WDT_Type*) NRF_WDT_NS_BASE)
  1879. #define NRF_WDT_S ((NRF_WDT_Type*) NRF_WDT_S_BASE)
  1880. #define NRF_EGU0_NS ((NRF_EGU_Type*) NRF_EGU0_NS_BASE)
  1881. #define NRF_EGU0_S ((NRF_EGU_Type*) NRF_EGU0_S_BASE)
  1882. #define NRF_EGU1_NS ((NRF_EGU_Type*) NRF_EGU1_NS_BASE)
  1883. #define NRF_EGU1_S ((NRF_EGU_Type*) NRF_EGU1_S_BASE)
  1884. #define NRF_EGU2_NS ((NRF_EGU_Type*) NRF_EGU2_NS_BASE)
  1885. #define NRF_EGU2_S ((NRF_EGU_Type*) NRF_EGU2_S_BASE)
  1886. #define NRF_EGU3_NS ((NRF_EGU_Type*) NRF_EGU3_NS_BASE)
  1887. #define NRF_EGU3_S ((NRF_EGU_Type*) NRF_EGU3_S_BASE)
  1888. #define NRF_EGU4_NS ((NRF_EGU_Type*) NRF_EGU4_NS_BASE)
  1889. #define NRF_EGU4_S ((NRF_EGU_Type*) NRF_EGU4_S_BASE)
  1890. #define NRF_EGU5_NS ((NRF_EGU_Type*) NRF_EGU5_NS_BASE)
  1891. #define NRF_EGU5_S ((NRF_EGU_Type*) NRF_EGU5_S_BASE)
  1892. #define NRF_PWM0_NS ((NRF_PWM_Type*) NRF_PWM0_NS_BASE)
  1893. #define NRF_PWM0_S ((NRF_PWM_Type*) NRF_PWM0_S_BASE)
  1894. #define NRF_PWM1_NS ((NRF_PWM_Type*) NRF_PWM1_NS_BASE)
  1895. #define NRF_PWM1_S ((NRF_PWM_Type*) NRF_PWM1_S_BASE)
  1896. #define NRF_PWM2_NS ((NRF_PWM_Type*) NRF_PWM2_NS_BASE)
  1897. #define NRF_PWM2_S ((NRF_PWM_Type*) NRF_PWM2_S_BASE)
  1898. #define NRF_PWM3_NS ((NRF_PWM_Type*) NRF_PWM3_NS_BASE)
  1899. #define NRF_PWM3_S ((NRF_PWM_Type*) NRF_PWM3_S_BASE)
  1900. #define NRF_PDM_NS ((NRF_PDM_Type*) NRF_PDM_NS_BASE)
  1901. #define NRF_PDM_S ((NRF_PDM_Type*) NRF_PDM_S_BASE)
  1902. #define NRF_I2S_NS ((NRF_I2S_Type*) NRF_I2S_NS_BASE)
  1903. #define NRF_I2S_S ((NRF_I2S_Type*) NRF_I2S_S_BASE)
  1904. #define NRF_IPC_NS ((NRF_IPC_Type*) NRF_IPC_NS_BASE)
  1905. #define NRF_IPC_S ((NRF_IPC_Type*) NRF_IPC_S_BASE)
  1906. #define NRF_FPU_NS ((NRF_FPU_Type*) NRF_FPU_NS_BASE)
  1907. #define NRF_FPU_S ((NRF_FPU_Type*) NRF_FPU_S_BASE)
  1908. #define NRF_GPIOTE1_NS ((NRF_GPIOTE_Type*) NRF_GPIOTE1_NS_BASE)
  1909. #define NRF_KMU_NS ((NRF_KMU_Type*) NRF_KMU_NS_BASE)
  1910. #define NRF_NVMC_NS ((NRF_NVMC_Type*) NRF_NVMC_NS_BASE)
  1911. #define NRF_KMU_S ((NRF_KMU_Type*) NRF_KMU_S_BASE)
  1912. #define NRF_NVMC_S ((NRF_NVMC_Type*) NRF_NVMC_S_BASE)
  1913. #define NRF_VMC_NS ((NRF_VMC_Type*) NRF_VMC_NS_BASE)
  1914. #define NRF_VMC_S ((NRF_VMC_Type*) NRF_VMC_S_BASE)
  1915. #define NRF_CC_HOST_RGF_S ((NRF_CC_HOST_RGF_Type*) NRF_CC_HOST_RGF_S_BASE)
  1916. #define NRF_CRYPTOCELL_S ((NRF_CRYPTOCELL_Type*) NRF_CRYPTOCELL_S_BASE)
  1917. #define NRF_P0_NS ((NRF_GPIO_Type*) NRF_P0_NS_BASE)
  1918. #define NRF_P0_S ((NRF_GPIO_Type*) NRF_P0_S_BASE)
  1919. /** @} */ /* End of group Device_Peripheral_declaration */
  1920. #ifdef __cplusplus
  1921. }
  1922. #endif
  1923. #endif /* NRF9160_H */
  1924. /** @} */ /* End of group nrf9160 */
  1925. /** @} */ /* End of group Nordic Semiconductor */