nrf9160.h 161 KB

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