1 /* 2 3 Copyright (c) 2010 - 2025, Nordic Semiconductor ASA All rights reserved. 4 5 SPDX-License-Identifier: BSD-3-Clause 6 7 Redistribution and use in source and binary forms, with or without 8 modification, are permitted provided that the following conditions are met: 9 10 1. Redistributions of source code must retain the above copyright notice, this 11 list of conditions and the following disclaimer. 12 13 2. Redistributions in binary form must reproduce the above copyright 14 notice, this list of conditions and the following disclaimer in the 15 documentation and/or other materials provided with the distribution. 16 17 3. Neither the name of Nordic Semiconductor ASA nor the names of its 18 contributors may be used to endorse or promote products derived from this 19 software without specific prior written permission. 20 21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23 IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE 24 ARE DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE 25 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 26 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 POSSIBILITY OF SUCH DAMAGE. 32 33 */ 34 35 #ifndef NRF_H 36 #define NRF_H 37 38 /* MDK version */ 39 #define MDK_MAJOR_VERSION 8 40 #define MDK_MINOR_VERSION 69 41 #define MDK_MICRO_VERSION 1 42 43 44 /* Define coprocessor domains */ 45 #if defined (NRF5340_XXAA_APPLICATION) || defined (NRF5340_XXAA_NETWORK) 46 #ifndef NRF5340_XXAA 47 #define NRF5340_XXAA 48 #endif 49 #endif 50 #if defined (NRF5340_XXAA_APPLICATION) 51 #ifndef NRF_APPLICATION 52 #define NRF_APPLICATION 53 #endif 54 #endif 55 #if defined (NRF5340_XXAA_NETWORK) 56 #ifndef NRF_NETWORK 57 #define NRF_NETWORK 58 #endif 59 #endif 60 61 /* Apply compatibility macros for old nRF5340 macros */ 62 #if defined(NRF5340_XXAA) 63 #if defined (NRF_APPLICATION) 64 #ifndef NRF5340_XXAA_APPLICATION 65 #define NRF5340_XXAA_APPLICATION 66 #endif 67 #endif 68 #if defined (NRF_NETWORK) 69 #ifndef NRF5340_XXAA_NETWORK 70 #define NRF5340_XXAA_NETWORK 71 #endif 72 #endif 73 #endif 74 75 /* Define NRF51_SERIES for common use in nRF51 series devices. Only if not previously defined. */ 76 #if defined (NRF51) ||\ 77 defined (NRF51422_XXAA) ||\ 78 defined (NRF51422_XXAB) ||\ 79 defined (NRF51422_XXAC) ||\ 80 defined (NRF51801_XXAB) ||\ 81 defined (NRF51802_XXAA) ||\ 82 defined (NRF51822_XXAA) ||\ 83 defined (NRF51822_XXAB) ||\ 84 defined (NRF51822_XXAC) ||\ 85 defined (NRF51824_XXAA) 86 #ifndef NRF51_SERIES 87 #define NRF51_SERIES 88 #endif 89 #ifndef NRF51 90 #define NRF51 91 #endif 92 #endif 93 94 /* Redefine "old" too-generic name NRF52 to NRF52832_XXAA to keep backwards compatibility. */ 95 #if defined (NRF52) 96 #ifndef NRF52832_XXAA 97 #define NRF52832_XXAA 98 #endif 99 #endif 100 101 /* Define NRF52_SERIES for common use in nRF52 series devices. Only if not previously defined. */ 102 #if defined (NRF52805_XXAA) || defined (NRF52810_XXAA) || defined (NRF52811_XXAA) || defined (NRF52820_XXAA) || defined (NRF52832_XXAA) || defined (NRF52832_XXAB) || defined (NRF52833_XXAA) || defined (NRF52840_XXAA) 103 #ifndef NRF52_SERIES 104 #define NRF52_SERIES 105 #endif 106 #endif 107 108 /* Define NRF53_SERIES for common use in nRF53 series devices. */ 109 #if defined (NRF5340_XXAA) 110 #ifndef NRF53_SERIES 111 #define NRF53_SERIES 112 #endif 113 #endif 114 115 /* Define NRF54H_SERIES for common use in nRF54H series devices */ 116 #if defined (NRF54H20_XXAA) 117 #ifndef NRF54H_SERIES 118 #define NRF54H_SERIES 119 #endif 120 #ifndef HALTIUM_XXAA 121 #define HALTIUM_XXAA 122 #endif 123 #endif 124 125 /* Define NRF54L_SERIES for common use in nRF54L series devices */ 126 #if defined (NRF54L05_XXAA) || defined (NRF54L09_ENGA_XXAA) || defined (NRF54L10_XXAA) || defined (NRF54L15_XXAA) || defined (NRF54L20_ENGA_XXAA) 127 #ifndef NRF54L_SERIES 128 #define NRF54L_SERIES 129 #endif 130 #ifndef LUMOS_XXAA 131 #define LUMOS_XXAA 132 #endif 133 #endif 134 135 /* Define NRF71_SERIES for common use in nRF71 series devices. */ 136 #if defined (NRF7120_ENGA_XXAA) 137 #ifndef NRF71_SERIES 138 #define NRF71_SERIES 139 #endif 140 #ifndef LUMOS_XXAA 141 #define LUMOS_XXAA 142 #endif 143 #endif 144 145 /* Define NRF91_SERIES for common use in nRF91 series devices. */ 146 #if defined (NRF9160_XXAA) || defined (NRF9120_XXAA) 147 #ifndef NRF91_SERIES 148 #define NRF91_SERIES 149 #endif 150 #endif 151 152 /* Define NRF92_SERIES for common use in nRF92 series devices. */ 153 #if defined(NRF9230_ENGB_XXAA) 154 #ifndef NRF92_SERIES 155 #define NRF92_SERIES 156 #endif 157 #ifndef HALTIUM_XXAA 158 #define HALTIUM_XXAA 159 #endif 160 #endif 161 162 /* Device selection for device includes. */ 163 #if defined (NRF51) 164 #include "nrf51.h" 165 #include "nrf51_bitfields.h" 166 #include "nrf51_deprecated.h" 167 168 #elif defined (NRF52805_XXAA) 169 #include "nrf52805.h" 170 #include "nrf52805_bitfields.h" 171 #include "nrf51_to_nrf52810.h" 172 #include "nrf52_to_nrf52810.h" 173 #include "nrf52810_to_nrf52811.h" 174 #elif defined (NRF52810_XXAA) 175 #include "nrf52810.h" 176 #include "nrf52810_bitfields.h" 177 #include "nrf51_to_nrf52810.h" 178 #include "nrf52_to_nrf52810.h" 179 #include "nrf52810_name_change.h" 180 #elif defined (NRF52811_XXAA) 181 #include "nrf52811.h" 182 #include "nrf52811_bitfields.h" 183 #include "nrf51_to_nrf52810.h" 184 #include "nrf52_to_nrf52810.h" 185 #include "nrf52810_to_nrf52811.h" 186 #elif defined (NRF52820_XXAA) 187 #include "nrf52820.h" 188 #include "nrf52820_bitfields.h" 189 #include "nrf51_to_nrf52.h" 190 #include "nrf52_to_nrf52833.h" 191 #include "nrf52833_to_nrf52820.h" 192 #elif defined (NRF52832_XXAA) || defined (NRF52832_XXAB) 193 #include "nrf52.h" 194 #include "nrf52_bitfields.h" 195 #include "nrf51_to_nrf52.h" 196 #include "nrf52_name_change.h" 197 #elif defined (NRF52833_XXAA) 198 #include "nrf52833.h" 199 #include "nrf52833_bitfields.h" 200 #include "nrf52_to_nrf52833.h" 201 #include "nrf51_to_nrf52.h" 202 #elif defined (NRF52840_XXAA) 203 #include "nrf52840.h" 204 #include "nrf52840_bitfields.h" 205 #include "nrf51_to_nrf52840.h" 206 #include "nrf52_to_nrf52840.h" 207 #include "nrf52840_name_change.h" 208 209 #elif defined (NRF5340_XXAA) 210 #if defined(NRF_APPLICATION) 211 #include "nrf5340_application.h" 212 #include "nrf5340_application_bitfields.h" 213 #include "nrf5340_application_name_change.h" 214 215 /* Address of locations in RAM that will be used to store a NS-accessible version of FICR */ 216 #if !defined(NRF_FICR_NS) 217 #define NRF_FICR_NS_BASE 0x2007F000 218 #define NRF_FICR_NS ((NRF_FICR_Type*) NRF_FICR_NS_BASE) 219 #endif 220 #elif defined (NRF_NETWORK) 221 #include "nrf5340_network.h" 222 #include "nrf5340_network_bitfields.h" 223 #include "nrf5340_network_name_change.h" 224 #endif 225 226 #elif defined (NRF54H20_XXAA) 227 #include "nrf54h20.h" 228 #include "nrf54h20_interim.h" 229 #include "nrf54h20_name_change.h" 230 231 #elif defined (NRF54L05_XXAA) 232 #include "nrf54l05.h" 233 #include "nrf54l05_interim.h" 234 #include "nrf54l05_name_change.h" 235 236 #elif defined (NRF54L09_ENGA_XXAA) 237 #include "nrf54l09_enga.h" 238 #include "nrf54l09_enga_interim.h" 239 #include "nrf54l09_enga_name_change.h" 240 241 #elif defined (NRF54L10_XXAA) 242 #include "nrf54l10.h" 243 #include "nrf54l10_interim.h" 244 #include "nrf54l10_name_change.h" 245 246 #elif defined (NRF54L15_XXAA) 247 #include "nrf54l15.h" 248 #include "nrf54l15_interim.h" 249 #include "nrf54l15_name_change.h" 250 251 #elif defined (NRF54L20_ENGA_XXAA) 252 #include "nrf54l20_enga.h" 253 #include "nrf54l20_enga_interim.h" 254 #include "nrf54l20_enga_name_change.h" 255 256 #elif defined (NRF7120_ENGA_XXAA) 257 #include "nrf7120_enga.h" 258 #include "nrf7120_enga_interim.h" 259 #include "nrf7120_enga_name_change.h" 260 261 #elif defined (NRF9160_XXAA) 262 #include "nrf9160.h" 263 #include "nrf9160_bitfields.h" 264 #include "nrf91_name_change.h" 265 266 /* Address of locations in RAM that will be used to store a NS-accessible version of FICR */ 267 #if !defined(NRF_FICR_NS) 268 #define NRF_FICR_NS_BASE 0x2003E000 269 #define NRF_FICR_NS ((NRF_FICR_Type*) NRF_FICR_NS_BASE) 270 #endif 271 272 #elif defined (NRF9120_XXAA) 273 #include "nrf9120.h" 274 #include "nrf9120_bitfields.h" 275 #include "nrf91_name_change.h" 276 277 /* Address of locations in RAM that will be used to store a NS-accessible version of FICR */ 278 #if !defined(NRF_FICR_NS) 279 #define NRF_FICR_NS_BASE 0x2003E000 280 #define NRF_FICR_NS ((NRF_FICR_Type*) NRF_FICR_NS_BASE) 281 #endif 282 283 #elif defined (NRF9230_ENGB_XXAA) 284 #include "nrf9230_engb.h" 285 #include "nrf9230_engb_interim.h" 286 #include "nrf9230_engb_name_change.h" 287 288 #else 289 #error "Device must be defined. See nrf.h." 290 #endif /* NRF51, NRF52805_XXAA, NRF52810_XXAA, NRF52811_XXAA, NRF52820_XXAA, NRF52832_XXAA, NRF52832_XXAB, NRF52833_XXAA, NRF52840_XXAA, NRF5340_XXAA_APPLICATION, NRF5340_XXAA_NETWORK, NRF9160_XXAA */ 291 292 #include "compiler_abstraction.h" 293 294 #endif /* NRF_H */ 295 296