1 /* 2 * Copyright (c) 2018 - 2024, Nordic Semiconductor ASA 3 * 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 the copyright holder 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 THE COPYRIGHT HOLDER 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 #ifndef NRFX_CONFIG_NRF91_H__ 35 #define NRFX_CONFIG_NRF91_H__ 36 37 #ifndef NRFX_CONFIG_H__ 38 #error "This file should not be included directly. Include nrfx_config.h instead." 39 #endif 40 41 /* 42 * The MDK provides macros for accessing the peripheral register structures 43 * by using their secure and non-secure address mappings (with the names 44 * containing the suffix _S or _NS, respectively). Because the nrfx drivers 45 * use the macros without any suffixes, you must translate the names. 46 * The following section provides configuration for the name translation. 47 * It must be modified to reflect the actual configuration set in NRF_SPU. 48 */ 49 #define NRF_CLOCK NRF_CLOCK_S 50 #define NRF_DPPIC NRF_DPPIC_S 51 #define NRF_EGU0 NRF_EGU0_S 52 #define NRF_EGU1 NRF_EGU1_S 53 #define NRF_EGU2 NRF_EGU2_S 54 #define NRF_EGU3 NRF_EGU3_S 55 #define NRF_EGU4 NRF_EGU4_S 56 #define NRF_EGU5 NRF_EGU5_S 57 #define NRF_FPU NRF_FPU_S 58 #define NRF_I2S NRF_I2S_S 59 #define NRF_IPC NRF_IPC_S 60 #define NRF_KMU NRF_KMU_S 61 #define NRF_NVMC NRF_NVMC_S 62 #define NRF_P0 NRF_P0_S 63 #define NRF_PDM NRF_PDM_S 64 #define NRF_POWER NRF_POWER_S 65 #define NRF_PWM0 NRF_PWM0_S 66 #define NRF_PWM1 NRF_PWM1_S 67 #define NRF_PWM2 NRF_PWM2_S 68 #define NRF_PWM3 NRF_PWM3_S 69 #define NRF_REGULATORS NRF_REGULATORS_S 70 #define NRF_RTC0 NRF_RTC0_S 71 #define NRF_RTC1 NRF_RTC1_S 72 #define NRF_SAADC NRF_SAADC_S 73 #define NRF_SPIM0 NRF_SPIM0_S 74 #define NRF_SPIM1 NRF_SPIM1_S 75 #define NRF_SPIM2 NRF_SPIM2_S 76 #define NRF_SPIM3 NRF_SPIM3_S 77 #define NRF_SPIS0 NRF_SPIS0_S 78 #define NRF_SPIS1 NRF_SPIS1_S 79 #define NRF_SPIS2 NRF_SPIS2_S 80 #define NRF_SPIS3 NRF_SPIS3_S 81 #define NRF_TIMER0 NRF_TIMER0_S 82 #define NRF_TIMER1 NRF_TIMER1_S 83 #define NRF_TIMER2 NRF_TIMER2_S 84 #define NRF_TWIM0 NRF_TWIM0_S 85 #define NRF_TWIM1 NRF_TWIM1_S 86 #define NRF_TWIM2 NRF_TWIM2_S 87 #define NRF_TWIM3 NRF_TWIM3_S 88 #define NRF_TWIS0 NRF_TWIS0_S 89 #define NRF_TWIS1 NRF_TWIS1_S 90 #define NRF_TWIS2 NRF_TWIS2_S 91 #define NRF_TWIS3 NRF_TWIS3_S 92 #define NRF_UARTE0 NRF_UARTE0_S 93 #define NRF_UARTE1 NRF_UARTE1_S 94 #define NRF_UARTE2 NRF_UARTE2_S 95 #define NRF_UARTE3 NRF_UARTE3_S 96 #define NRF_VMC NRF_VMC_S 97 #define NRF_WDT NRF_WDT_S 98 99 /* 100 * The following section provides the name translation for peripherals with 101 * only one type of access available. For these peripherals, you cannot choose 102 * between secure and non-secure mapping. 103 */ 104 #if !defined(NRF_TRUSTZONE_NONSECURE) 105 #define NRF_CC_HOST_RGF NRF_CC_HOST_RGF_S 106 #define NRF_CRYPTOCELL NRF_CRYPTOCELL_S 107 #define NRF_CTRL_AP_PERI NRF_CTRL_AP_PERI_S 108 #define NRF_FICR NRF_FICR_S 109 #define NRF_SPU NRF_SPU_S 110 #define NRF_TAD NRF_TAD_S 111 #define NRF_UICR NRF_UICR_S 112 #endif 113 114 /* Fixups for the GPIOTE driver. */ 115 #define NRF_GPIOTE0 NRF_GPIOTE0_S 116 #define NRF_GPIOTE1 NRF_GPIOTE1_NS 117 118 /** 119 * @brief NRFX_DEFAULT_IRQ_PRIORITY 120 * 121 * Integer value. Minimum: 0. Maximum: 7. 122 */ 123 #ifndef NRFX_DEFAULT_IRQ_PRIORITY 124 #define NRFX_DEFAULT_IRQ_PRIORITY 7 125 #endif 126 127 /** 128 * @brief NRFX_CLOCK_ENABLED 129 * 130 * Boolean. Accepted values: 0 and 1. 131 */ 132 #ifndef NRFX_CLOCK_ENABLED 133 #define NRFX_CLOCK_ENABLED 0 134 #endif 135 136 /** 137 * @brief NRFX_CLOCK_CONFIG_LF_SRC 138 * 139 * Integer value. 140 * Supported values: 141 * - RC = 1 142 * - XTAL = 2 143 */ 144 #ifndef NRFX_CLOCK_CONFIG_LF_SRC 145 #define NRFX_CLOCK_CONFIG_LF_SRC 2 146 #endif 147 148 /** 149 * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 150 * 151 * Boolean. Accepted values: 0 and 1. 152 */ 153 #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 154 #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 155 #endif 156 157 /** 158 * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 159 * 160 * Integer value. Minimum: 0. Maximum: 7. 161 */ 162 #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 163 #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 164 #endif 165 166 /** 167 * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED 168 * 169 * Boolean. Accepted values: 0 and 1. 170 */ 171 #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED 172 #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 173 #endif 174 175 /** 176 * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL 177 * 178 * Integer value. 179 * Supported values: 180 * - Off = 0 181 * - Error = 1 182 * - Warning = 2 183 * - Info = 3 184 * - Debug = 4 185 */ 186 #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL 187 #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 188 #endif 189 190 /** 191 * @brief NRFX_DPPI_ENABLED 192 * 193 * Boolean. Accepted values: 0 and 1. 194 */ 195 #ifndef NRFX_DPPI_ENABLED 196 #define NRFX_DPPI_ENABLED 0 197 #endif 198 199 /** 200 * @brief NRFX_DPPI_CONFIG_LOG_ENABLED 201 * 202 * Boolean. Accepted values: 0 and 1. 203 */ 204 #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED 205 #define NRFX_DPPI_CONFIG_LOG_ENABLED 0 206 #endif 207 208 /** 209 * @brief NRFX_DPPI_CONFIG_LOG_LEVEL 210 * 211 * Integer value. 212 * Supported values: 213 * - Off = 0 214 * - Error = 1 215 * - Warning = 2 216 * - Info = 3 217 * - Debug = 4 218 */ 219 #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL 220 #define NRFX_DPPI_CONFIG_LOG_LEVEL 3 221 #endif 222 223 /** 224 * @brief NRFX_EGU_ENABLED 225 * 226 * Boolean. Accepted values: 0 and 1. 227 */ 228 #ifndef NRFX_EGU_ENABLED 229 #define NRFX_EGU_ENABLED 0 230 #endif 231 232 /** 233 * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY 234 * 235 * Integer value. Minimum: 0. Maximum: 7. 236 */ 237 #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY 238 #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 239 #endif 240 241 /** 242 * @brief NRFX_EGU0_ENABLED 243 * 244 * Boolean. Accepted values: 0 and 1. 245 */ 246 #ifndef NRFX_EGU0_ENABLED 247 #define NRFX_EGU0_ENABLED 0 248 #endif 249 250 /** 251 * @brief NRFX_EGU1_ENABLED 252 * 253 * Boolean. Accepted values: 0 and 1. 254 */ 255 #ifndef NRFX_EGU1_ENABLED 256 #define NRFX_EGU1_ENABLED 0 257 #endif 258 259 /** 260 * @brief NRFX_EGU2_ENABLED 261 * 262 * Boolean. Accepted values: 0 and 1. 263 */ 264 #ifndef NRFX_EGU2_ENABLED 265 #define NRFX_EGU2_ENABLED 0 266 #endif 267 268 /** 269 * @brief NRFX_EGU3_ENABLED 270 * 271 * Boolean. Accepted values: 0 and 1. 272 */ 273 #ifndef NRFX_EGU3_ENABLED 274 #define NRFX_EGU3_ENABLED 0 275 #endif 276 277 /** 278 * @brief NRFX_EGU4_ENABLED 279 * 280 * Boolean. Accepted values: 0 and 1. 281 */ 282 #ifndef NRFX_EGU4_ENABLED 283 #define NRFX_EGU4_ENABLED 0 284 #endif 285 286 /** 287 * @brief NRFX_EGU5_ENABLED 288 * 289 * Boolean. Accepted values: 0 and 1. 290 */ 291 #ifndef NRFX_EGU5_ENABLED 292 #define NRFX_EGU5_ENABLED 0 293 #endif 294 295 /** 296 * @brief NRFX_GPIOTE_ENABLED 297 * 298 * Boolean. Accepted values: 0 and 1. 299 */ 300 #ifndef NRFX_GPIOTE_ENABLED 301 #define NRFX_GPIOTE_ENABLED 0 302 #endif 303 304 /** 305 * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY 306 * 307 * Integer value. Minimum: 0. Maximum: 7. 308 */ 309 #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY 310 #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 311 #endif 312 313 /** 314 * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 315 * 316 * Integer value. Minimum: 0. Maximum: 15. 317 */ 318 #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 319 #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 2 320 #endif 321 322 /** 323 * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED 324 * 325 * Boolean. Accepted values: 0 and 1. 326 */ 327 #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED 328 #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 329 #endif 330 331 /** 332 * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL 333 * 334 * Integer value. 335 * Supported values: 336 * - Off = 0 337 * - Error = 1 338 * - Warning = 2 339 * - Info = 3 340 * - Debug = 4 341 */ 342 #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL 343 #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 344 #endif 345 346 /** 347 * @brief NRFX_GPIOTE0_ENABLED 348 * 349 * Boolean. Accepted values: 0 and 1. 350 */ 351 #ifndef NRFX_GPIOTE0_ENABLED 352 #define NRFX_GPIOTE0_ENABLED 0 353 #endif 354 355 /** 356 * @brief NRFX_GPIOTE1_ENABLED 357 * 358 * Boolean. Accepted values: 0 and 1. 359 */ 360 #ifndef NRFX_GPIOTE1_ENABLED 361 #define NRFX_GPIOTE1_ENABLED 0 362 #endif 363 364 /** 365 * @brief NRFX_I2S_ENABLED 366 * 367 * Boolean. Accepted values: 0 and 1. 368 */ 369 #ifndef NRFX_I2S_ENABLED 370 #define NRFX_I2S_ENABLED 0 371 #endif 372 373 /** 374 * @brief NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY 375 * 376 * Integer value. Minimum: 0. Maximum: 7. 377 */ 378 #ifndef NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY 379 #define NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 380 #endif 381 382 /** 383 * @brief NRFX_I2S_CONFIG_LOG_ENABLED 384 * 385 * Boolean. Accepted values: 0 and 1. 386 */ 387 #ifndef NRFX_I2S_CONFIG_LOG_ENABLED 388 #define NRFX_I2S_CONFIG_LOG_ENABLED 0 389 #endif 390 391 /** 392 * @brief NRFX_I2S_CONFIG_LOG_LEVEL 393 * 394 * Integer value. 395 * Supported values: 396 * - Off = 0 397 * - Error = 1 398 * - Warning = 2 399 * - Info = 3 400 * - Debug = 4 401 */ 402 #ifndef NRFX_I2S_CONFIG_LOG_LEVEL 403 #define NRFX_I2S_CONFIG_LOG_LEVEL 3 404 #endif 405 406 /** 407 * @brief NRFX_IPC_ENABLED 408 * 409 * Boolean. Accepted values: 0 and 1. 410 */ 411 #ifndef NRFX_IPC_ENABLED 412 #define NRFX_IPC_ENABLED 0 413 #endif 414 415 /** 416 * @brief NRFX_NVMC_ENABLED 417 * 418 * Boolean. Accepted values: 0 and 1. 419 */ 420 #ifndef NRFX_NVMC_ENABLED 421 #define NRFX_NVMC_ENABLED 0 422 #endif 423 424 /** 425 * @brief NRFX_PDM_ENABLED 426 * 427 * Boolean. Accepted values: 0 and 1. 428 */ 429 #ifndef NRFX_PDM_ENABLED 430 #define NRFX_PDM_ENABLED 0 431 #endif 432 433 /** 434 * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY 435 * 436 * Integer value. Minimum: 0. Maximum: 7. 437 */ 438 #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY 439 #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 440 #endif 441 442 /** 443 * @brief NRFX_PDM_CONFIG_LOG_ENABLED 444 * 445 * Boolean. Accepted values: 0 and 1. 446 */ 447 #ifndef NRFX_PDM_CONFIG_LOG_ENABLED 448 #define NRFX_PDM_CONFIG_LOG_ENABLED 0 449 #endif 450 451 /** 452 * @brief NRFX_PDM_CONFIG_LOG_LEVEL 453 * 454 * Integer value. 455 * Supported values: 456 * - Off = 0 457 * - Error = 1 458 * - Warning = 2 459 * - Info = 3 460 * - Debug = 4 461 */ 462 #ifndef NRFX_PDM_CONFIG_LOG_LEVEL 463 #define NRFX_PDM_CONFIG_LOG_LEVEL 3 464 #endif 465 466 /** 467 * @brief NRFX_POWER_ENABLED 468 * 469 * Boolean. Accepted values: 0 and 1. 470 */ 471 #ifndef NRFX_POWER_ENABLED 472 #define NRFX_POWER_ENABLED 0 473 #endif 474 475 /** 476 * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY 477 * 478 * Integer value. Minimum: 0. Maximum: 7. 479 */ 480 #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY 481 #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 482 #endif 483 484 /** 485 * @brief NRFX_PRS_ENABLED 486 * 487 * Boolean. Accepted values: 0 and 1. 488 */ 489 #ifndef NRFX_PRS_ENABLED 490 #define NRFX_PRS_ENABLED 0 491 #endif 492 493 /** 494 * @brief NRFX_PRS_CONFIG_LOG_ENABLED 495 * 496 * Boolean. Accepted values: 0 and 1. 497 */ 498 #ifndef NRFX_PRS_CONFIG_LOG_ENABLED 499 #define NRFX_PRS_CONFIG_LOG_ENABLED 0 500 #endif 501 502 /** 503 * @brief NRFX_PRS_CONFIG_LOG_LEVEL 504 * 505 * Integer value. 506 * Supported values: 507 * - Off = 0 508 * - Error = 1 509 * - Warning = 2 510 * - Info = 3 511 * - Debug = 4 512 */ 513 #ifndef NRFX_PRS_CONFIG_LOG_LEVEL 514 #define NRFX_PRS_CONFIG_LOG_LEVEL 3 515 #endif 516 517 /** 518 * @brief NRFX_PRS_BOX_0_ENABLED 519 * 520 * Boolean. Accepted values: 0 and 1. 521 */ 522 #ifndef NRFX_PRS_BOX_0_ENABLED 523 #define NRFX_PRS_BOX_0_ENABLED 0 524 #endif 525 526 /** 527 * @brief NRFX_PRS_BOX_1_ENABLED 528 * 529 * Boolean. Accepted values: 0 and 1. 530 */ 531 #ifndef NRFX_PRS_BOX_1_ENABLED 532 #define NRFX_PRS_BOX_1_ENABLED 0 533 #endif 534 535 /** 536 * @brief NRFX_PRS_BOX_2_ENABLED 537 * 538 * Boolean. Accepted values: 0 and 1. 539 */ 540 #ifndef NRFX_PRS_BOX_2_ENABLED 541 #define NRFX_PRS_BOX_2_ENABLED 0 542 #endif 543 544 /** 545 * @brief NRFX_PRS_BOX_3_ENABLED 546 * 547 * Boolean. Accepted values: 0 and 1. 548 */ 549 #ifndef NRFX_PRS_BOX_3_ENABLED 550 #define NRFX_PRS_BOX_3_ENABLED 0 551 #endif 552 553 /** 554 * @brief NRFX_PWM_ENABLED 555 * 556 * Boolean. Accepted values: 0 and 1. 557 */ 558 #ifndef NRFX_PWM_ENABLED 559 #define NRFX_PWM_ENABLED 0 560 #endif 561 562 /** 563 * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 564 * 565 * Integer value. Minimum: 0. Maximum: 7. 566 */ 567 #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 568 #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 569 #endif 570 571 /** 572 * @brief NRFX_PWM_CONFIG_LOG_ENABLED 573 * 574 * Boolean. Accepted values: 0 and 1. 575 */ 576 #ifndef NRFX_PWM_CONFIG_LOG_ENABLED 577 #define NRFX_PWM_CONFIG_LOG_ENABLED 0 578 #endif 579 580 /** 581 * @brief NRFX_PWM_CONFIG_LOG_LEVEL 582 * 583 * Integer value. 584 * Supported values: 585 * - Off = 0 586 * - Error = 1 587 * - Warning = 2 588 * - Info = 3 589 * - Debug = 4 590 */ 591 #ifndef NRFX_PWM_CONFIG_LOG_LEVEL 592 #define NRFX_PWM_CONFIG_LOG_LEVEL 3 593 #endif 594 595 /** 596 * @brief NRFX_PWM0_ENABLED 597 * 598 * Boolean. Accepted values: 0 and 1. 599 */ 600 #ifndef NRFX_PWM0_ENABLED 601 #define NRFX_PWM0_ENABLED 0 602 #endif 603 604 /** 605 * @brief NRFX_PWM1_ENABLED 606 * 607 * Boolean. Accepted values: 0 and 1. 608 */ 609 #ifndef NRFX_PWM1_ENABLED 610 #define NRFX_PWM1_ENABLED 0 611 #endif 612 613 /** 614 * @brief NRFX_PWM2_ENABLED 615 * 616 * Boolean. Accepted values: 0 and 1. 617 */ 618 #ifndef NRFX_PWM2_ENABLED 619 #define NRFX_PWM2_ENABLED 0 620 #endif 621 622 /** 623 * @brief NRFX_PWM3_ENABLED 624 * 625 * Boolean. Accepted values: 0 and 1. 626 */ 627 #ifndef NRFX_PWM3_ENABLED 628 #define NRFX_PWM3_ENABLED 0 629 #endif 630 631 /** 632 * @brief NRFX_RTC_ENABLED 633 * 634 * Boolean. Accepted values: 0 and 1. 635 */ 636 #ifndef NRFX_RTC_ENABLED 637 #define NRFX_RTC_ENABLED 0 638 #endif 639 640 /** 641 * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 642 * 643 * Integer value. Minimum: 0. Maximum: 7. 644 */ 645 #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 646 #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 647 #endif 648 649 /** 650 * @brief NRFX_RTC_CONFIG_LOG_ENABLED 651 * 652 * Boolean. Accepted values: 0 and 1. 653 */ 654 #ifndef NRFX_RTC_CONFIG_LOG_ENABLED 655 #define NRFX_RTC_CONFIG_LOG_ENABLED 0 656 #endif 657 658 /** 659 * @brief NRFX_RTC_CONFIG_LOG_LEVEL 660 * 661 * Integer value. 662 * Supported values: 663 * - Off = 0 664 * - Error = 1 665 * - Warning = 2 666 * - Info = 3 667 * - Debug = 4 668 */ 669 #ifndef NRFX_RTC_CONFIG_LOG_LEVEL 670 #define NRFX_RTC_CONFIG_LOG_LEVEL 3 671 #endif 672 673 /** 674 * @brief NRFX_RTC0_ENABLED 675 * 676 * Boolean. Accepted values: 0 and 1. 677 */ 678 #ifndef NRFX_RTC0_ENABLED 679 #define NRFX_RTC0_ENABLED 0 680 #endif 681 682 /** 683 * @brief NRFX_RTC1_ENABLED 684 * 685 * Boolean. Accepted values: 0 and 1. 686 */ 687 #ifndef NRFX_RTC1_ENABLED 688 #define NRFX_RTC1_ENABLED 0 689 #endif 690 691 /** 692 * @brief NRFX_SAADC_ENABLED 693 * 694 * Boolean. Accepted values: 0 and 1. 695 */ 696 #ifndef NRFX_SAADC_ENABLED 697 #define NRFX_SAADC_ENABLED 0 698 #endif 699 700 /** 701 * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY 702 * 703 * Integer value. Minimum: 0. Maximum: 7. 704 */ 705 #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY 706 #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 707 #endif 708 709 /** 710 * @brief NRFX_SAADC_CONFIG_LOG_ENABLED 711 * 712 * Boolean. Accepted values: 0 and 1. 713 */ 714 #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED 715 #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 716 #endif 717 718 /** 719 * @brief NRFX_SAADC_CONFIG_LOG_LEVEL 720 * 721 * Integer value. 722 * Supported values: 723 * - Off = 0 724 * - Error = 1 725 * - Warning = 2 726 * - Info = 3 727 * - Debug = 4 728 */ 729 #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL 730 #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 731 #endif 732 733 /** 734 * @brief NRFX_SPIM_ENABLED 735 * 736 * Boolean. Accepted values: 0 and 1. 737 */ 738 #ifndef NRFX_SPIM_ENABLED 739 #define NRFX_SPIM_ENABLED 0 740 #endif 741 742 /** 743 * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 744 * 745 * Integer value. Minimum: 0. Maximum: 7. 746 */ 747 #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 748 #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 749 #endif 750 751 /** 752 * @brief NRFX_SPIM_CONFIG_LOG_ENABLED 753 * 754 * Boolean. Accepted values: 0 and 1. 755 */ 756 #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED 757 #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 758 #endif 759 760 /** 761 * @brief NRFX_SPIM_CONFIG_LOG_LEVEL 762 * 763 * Integer value. 764 * Supported values: 765 * - Off = 0 766 * - Error = 1 767 * - Warning = 2 768 * - Info = 3 769 * - Debug = 4 770 */ 771 #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL 772 #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 773 #endif 774 775 /** 776 * @brief NRFX_SPIM0_ENABLED 777 * 778 * Boolean. Accepted values: 0 and 1. 779 */ 780 #ifndef NRFX_SPIM0_ENABLED 781 #define NRFX_SPIM0_ENABLED 0 782 #endif 783 784 /** 785 * @brief NRFX_SPIM1_ENABLED 786 * 787 * Boolean. Accepted values: 0 and 1. 788 */ 789 #ifndef NRFX_SPIM1_ENABLED 790 #define NRFX_SPIM1_ENABLED 0 791 #endif 792 793 /** 794 * @brief NRFX_SPIM2_ENABLED 795 * 796 * Boolean. Accepted values: 0 and 1. 797 */ 798 #ifndef NRFX_SPIM2_ENABLED 799 #define NRFX_SPIM2_ENABLED 0 800 #endif 801 802 /** 803 * @brief NRFX_SPIM3_ENABLED 804 * 805 * Boolean. Accepted values: 0 and 1. 806 */ 807 #ifndef NRFX_SPIM3_ENABLED 808 #define NRFX_SPIM3_ENABLED 0 809 #endif 810 811 /** 812 * @brief NRFX_SPIS_ENABLED 813 * 814 * Boolean. Accepted values: 0 and 1. 815 */ 816 #ifndef NRFX_SPIS_ENABLED 817 #define NRFX_SPIS_ENABLED 0 818 #endif 819 820 /** 821 * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 822 * 823 * Integer value. Minimum: 0. Maximum: 7. 824 */ 825 #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 826 #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 827 #endif 828 829 /** 830 * @brief NRFX_SPIS_CONFIG_LOG_ENABLED 831 * 832 * Boolean. Accepted values: 0 and 1. 833 */ 834 #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED 835 #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 836 #endif 837 838 /** 839 * @brief NRFX_SPIS_CONFIG_LOG_LEVEL 840 * 841 * Integer value. 842 * Supported values: 843 * - Off = 0 844 * - Error = 1 845 * - Warning = 2 846 * - Info = 3 847 * - Debug = 4 848 */ 849 #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL 850 #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 851 #endif 852 853 /** 854 * @brief NRFX_SPIS0_ENABLED 855 * 856 * Boolean. Accepted values: 0 and 1. 857 */ 858 #ifndef NRFX_SPIS0_ENABLED 859 #define NRFX_SPIS0_ENABLED 0 860 #endif 861 862 /** 863 * @brief NRFX_SPIS1_ENABLED 864 * 865 * Boolean. Accepted values: 0 and 1. 866 */ 867 #ifndef NRFX_SPIS1_ENABLED 868 #define NRFX_SPIS1_ENABLED 0 869 #endif 870 871 /** 872 * @brief NRFX_SPIS2_ENABLED 873 * 874 * Boolean. Accepted values: 0 and 1. 875 */ 876 #ifndef NRFX_SPIS2_ENABLED 877 #define NRFX_SPIS2_ENABLED 0 878 #endif 879 880 /** 881 * @brief NRFX_SPIS3_ENABLED 882 * 883 * Boolean. Accepted values: 0 and 1. 884 */ 885 #ifndef NRFX_SPIS3_ENABLED 886 #define NRFX_SPIS3_ENABLED 0 887 #endif 888 889 /** 890 * @brief NRFX_SYSTICK_ENABLED 891 * 892 * Boolean. Accepted values: 0 and 1. 893 */ 894 #ifndef NRFX_SYSTICK_ENABLED 895 #define NRFX_SYSTICK_ENABLED 0 896 #endif 897 898 /** 899 * @brief NRFX_TIMER_ENABLED 900 * 901 * Boolean. Accepted values: 0 and 1. 902 */ 903 #ifndef NRFX_TIMER_ENABLED 904 #define NRFX_TIMER_ENABLED 0 905 #endif 906 907 /** 908 * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 909 * 910 * Integer value. Minimum: 0. Maximum: 7. 911 */ 912 #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 913 #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 914 #endif 915 916 /** 917 * @brief NRFX_TIMER_CONFIG_LOG_ENABLED 918 * 919 * Boolean. Accepted values: 0 and 1. 920 */ 921 #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED 922 #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 923 #endif 924 925 /** 926 * @brief NRFX_TIMER_CONFIG_LOG_LEVEL 927 * 928 * Integer value. 929 * Supported values: 930 * - Off = 0 931 * - Error = 1 932 * - Warning = 2 933 * - Info = 3 934 * - Debug = 4 935 */ 936 #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL 937 #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 938 #endif 939 940 /** 941 * @brief NRFX_TIMER0_ENABLED 942 * 943 * Boolean. Accepted values: 0 and 1. 944 */ 945 #ifndef NRFX_TIMER0_ENABLED 946 #define NRFX_TIMER0_ENABLED 0 947 #endif 948 949 /** 950 * @brief NRFX_TIMER1_ENABLED 951 * 952 * Boolean. Accepted values: 0 and 1. 953 */ 954 #ifndef NRFX_TIMER1_ENABLED 955 #define NRFX_TIMER1_ENABLED 0 956 #endif 957 958 /** 959 * @brief NRFX_TIMER2_ENABLED 960 * 961 * Boolean. Accepted values: 0 and 1. 962 */ 963 #ifndef NRFX_TIMER2_ENABLED 964 #define NRFX_TIMER2_ENABLED 0 965 #endif 966 967 /** 968 * @brief NRFX_TWIM_ENABLED 969 * 970 * Boolean. Accepted values: 0 and 1. 971 */ 972 #ifndef NRFX_TWIM_ENABLED 973 #define NRFX_TWIM_ENABLED 0 974 #endif 975 976 /** 977 * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 978 * 979 * Integer value. Minimum: 0. Maximum: 7. 980 */ 981 #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 982 #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 983 #endif 984 985 /** 986 * @brief NRFX_TWIM_CONFIG_LOG_ENABLED 987 * 988 * Boolean. Accepted values: 0 and 1. 989 */ 990 #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED 991 #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 992 #endif 993 994 /** 995 * @brief NRFX_TWIM_CONFIG_LOG_LEVEL 996 * 997 * Integer value. 998 * Supported values: 999 * - Off = 0 1000 * - Error = 1 1001 * - Warning = 2 1002 * - Info = 3 1003 * - Debug = 4 1004 */ 1005 #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL 1006 #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 1007 #endif 1008 1009 /** 1010 * @brief NRFX_TWIM0_ENABLED 1011 * 1012 * Boolean. Accepted values: 0 and 1. 1013 */ 1014 #ifndef NRFX_TWIM0_ENABLED 1015 #define NRFX_TWIM0_ENABLED 0 1016 #endif 1017 1018 /** 1019 * @brief NRFX_TWIM1_ENABLED 1020 * 1021 * Boolean. Accepted values: 0 and 1. 1022 */ 1023 #ifndef NRFX_TWIM1_ENABLED 1024 #define NRFX_TWIM1_ENABLED 0 1025 #endif 1026 1027 /** 1028 * @brief NRFX_TWIM2_ENABLED 1029 * 1030 * Boolean. Accepted values: 0 and 1. 1031 */ 1032 #ifndef NRFX_TWIM2_ENABLED 1033 #define NRFX_TWIM2_ENABLED 0 1034 #endif 1035 1036 /** 1037 * @brief NRFX_TWIM3_ENABLED 1038 * 1039 * Boolean. Accepted values: 0 and 1. 1040 */ 1041 #ifndef NRFX_TWIM3_ENABLED 1042 #define NRFX_TWIM3_ENABLED 0 1043 #endif 1044 1045 /** 1046 * @brief NRFX_TWIS_ENABLED 1047 * 1048 * Boolean. Accepted values: 0 and 1. 1049 */ 1050 #ifndef NRFX_TWIS_ENABLED 1051 #define NRFX_TWIS_ENABLED 0 1052 #endif 1053 1054 /** 1055 * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 1056 * 1057 * Integer value. Minimum: 0. Maximum: 7. 1058 */ 1059 #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 1060 #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 1061 #endif 1062 1063 /** 1064 * @brief NRFX_TWIS_CONFIG_LOG_ENABLED 1065 * 1066 * Boolean. Accepted values: 0 and 1. 1067 */ 1068 #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED 1069 #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 1070 #endif 1071 1072 /** 1073 * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once. 1074 * 1075 * Boolean. Accepted values: 0 and 1. 1076 */ 1077 #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 1078 #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 1079 #endif 1080 1081 /** 1082 * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. 1083 * 1084 * Boolean. Accepted values: 0 and 1. 1085 */ 1086 #ifndef NRFX_TWIS_NO_SYNC_MODE 1087 #define NRFX_TWIS_NO_SYNC_MODE 0 1088 #endif 1089 1090 /** 1091 * @brief NRFX_TWIS_CONFIG_LOG_LEVEL 1092 * 1093 * Integer value. 1094 * Supported values: 1095 * - Off = 0 1096 * - Error = 1 1097 * - Warning = 2 1098 * - Info = 3 1099 * - Debug = 4 1100 */ 1101 #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL 1102 #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 1103 #endif 1104 1105 /** 1106 * @brief NRFX_TWIS0_ENABLED 1107 * 1108 * Boolean. Accepted values: 0 and 1. 1109 */ 1110 #ifndef NRFX_TWIS0_ENABLED 1111 #define NRFX_TWIS0_ENABLED 0 1112 #endif 1113 1114 /** 1115 * @brief NRFX_TWIS1_ENABLED 1116 * 1117 * Boolean. Accepted values: 0 and 1. 1118 */ 1119 #ifndef NRFX_TWIS1_ENABLED 1120 #define NRFX_TWIS1_ENABLED 0 1121 #endif 1122 1123 /** 1124 * @brief NRFX_TWIS2_ENABLED 1125 * 1126 * Boolean. Accepted values: 0 and 1. 1127 */ 1128 #ifndef NRFX_TWIS2_ENABLED 1129 #define NRFX_TWIS2_ENABLED 0 1130 #endif 1131 1132 /** 1133 * @brief NRFX_TWIS3_ENABLED 1134 * 1135 * Boolean. Accepted values: 0 and 1. 1136 */ 1137 #ifndef NRFX_TWIS3_ENABLED 1138 #define NRFX_TWIS3_ENABLED 0 1139 #endif 1140 1141 /** 1142 * @brief NRFX_UARTE_ENABLED 1143 * 1144 * Boolean. Accepted values: 0 and 1. 1145 */ 1146 #ifndef NRFX_UARTE_ENABLED 1147 #define NRFX_UARTE_ENABLED 0 1148 #endif 1149 1150 /** 1151 * @brief NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG - If enabled, support for configuring GPIO pins is removed from the driver 1152 * 1153 * Boolean. Accepted values: 0 and 1. 1154 */ 1155 #ifndef NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG 1156 #define NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG 0 1157 #endif 1158 1159 /** 1160 * @brief NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG - If enabled, support for configuring PSEL registers is removed from the driver 1161 * 1162 * Boolean. Accepted values: 0 and 1. 1163 */ 1164 #ifndef NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG 1165 #define NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG 0 1166 #endif 1167 1168 /** 1169 * @brief NRFX_UARTE_CONFIG_TX_LINK - If enabled, driver supports linking of TX transfers. 1170 * 1171 * Boolean. Accepted values: 0 and 1. 1172 */ 1173 #ifndef NRFX_UARTE_CONFIG_TX_LINK 1174 #define NRFX_UARTE_CONFIG_TX_LINK 1 1175 #endif 1176 1177 /** 1178 * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 1179 * 1180 * Integer value. Minimum: 0. Maximum: 7. 1181 */ 1182 #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 1183 #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 1184 #endif 1185 1186 /** 1187 * @brief NRFX_UARTE_CONFIG_LOG_ENABLED 1188 * 1189 * Boolean. Accepted values: 0 and 1. 1190 */ 1191 #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED 1192 #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 1193 #endif 1194 1195 /** 1196 * @brief NRFX_UARTE_CONFIG_LOG_LEVEL 1197 * 1198 * Integer value. 1199 * Supported values: 1200 * - Off = 0 1201 * - Error = 1 1202 * - Warning = 2 1203 * - Info = 3 1204 * - Debug = 4 1205 */ 1206 #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL 1207 #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 1208 #endif 1209 1210 /** 1211 * @brief NRFX_UARTE0_ENABLED 1212 * 1213 * Boolean. Accepted values: 0 and 1. 1214 */ 1215 #ifndef NRFX_UARTE0_ENABLED 1216 #define NRFX_UARTE0_ENABLED 0 1217 #endif 1218 1219 /** 1220 * @brief NRFX_UARTE1_ENABLED 1221 * 1222 * Boolean. Accepted values: 0 and 1. 1223 */ 1224 #ifndef NRFX_UARTE1_ENABLED 1225 #define NRFX_UARTE1_ENABLED 0 1226 #endif 1227 1228 /** 1229 * @brief NRFX_UARTE2_ENABLED 1230 * 1231 * Boolean. Accepted values: 0 and 1. 1232 */ 1233 #ifndef NRFX_UARTE2_ENABLED 1234 #define NRFX_UARTE2_ENABLED 0 1235 #endif 1236 1237 /** 1238 * @brief NRFX_UARTE3_ENABLED 1239 * 1240 * Boolean. Accepted values: 0 and 1. 1241 */ 1242 #ifndef NRFX_UARTE3_ENABLED 1243 #define NRFX_UARTE3_ENABLED 0 1244 #endif 1245 1246 /** 1247 * @brief NRFX_WDT_ENABLED 1248 * 1249 * Boolean. Accepted values: 0 and 1. 1250 */ 1251 #ifndef NRFX_WDT_ENABLED 1252 #define NRFX_WDT_ENABLED 0 1253 #endif 1254 1255 /** 1256 * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY 1257 * 1258 * Integer value. Minimum: 0. Maximum: 7. 1259 */ 1260 #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY 1261 #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 1262 #endif 1263 1264 /** 1265 * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver 1266 * 1267 * Boolean. Accepted values: 0 and 1. 1268 */ 1269 #ifndef NRFX_WDT_CONFIG_NO_IRQ 1270 #define NRFX_WDT_CONFIG_NO_IRQ 0 1271 #endif 1272 1273 /** 1274 * @brief NRFX_WDT_CONFIG_LOG_ENABLED 1275 * 1276 * Boolean. Accepted values: 0 and 1. 1277 */ 1278 #ifndef NRFX_WDT_CONFIG_LOG_ENABLED 1279 #define NRFX_WDT_CONFIG_LOG_ENABLED 0 1280 #endif 1281 1282 /** 1283 * @brief NRFX_WDT_CONFIG_LOG_LEVEL 1284 * 1285 * Integer value. 1286 * Supported values: 1287 * - Off = 0 1288 * - Error = 1 1289 * - Warning = 2 1290 * - Info = 3 1291 * - Debug = 4 1292 */ 1293 #ifndef NRFX_WDT_CONFIG_LOG_LEVEL 1294 #define NRFX_WDT_CONFIG_LOG_LEVEL 3 1295 #endif 1296 1297 #endif // NRFX_CONFIG_NRF91_H__ 1298