1 /* 2 * Copyright (c) 2019 - 2020, Nordic Semiconductor ASA 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, this 9 * list of conditions and the following disclaimer. 10 * 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 15 * 3. Neither the name of the copyright holder nor the names of its 16 * contributors may be used to endorse or promote products derived from this 17 * software without specific prior written permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32 #ifndef NRFX_CONFIG_NRF5340_NETWORK_H__ 33 #define NRFX_CONFIG_NRF5340_NETWORK_H__ 34 35 #ifndef NRFX_CONFIG_H__ 36 #error "This file should not be included directly. Include nrfx_config.h instead." 37 #endif 38 39 /* 40 * The MDK provides macros for accessing the peripheral register structures 41 * by using their secure and non-secure address mappings (with the names 42 * containing the suffix _S or _NS, respectively). Because the nrfx drivers 43 * use the macros without any suffixes, you must translate the names. 44 * The following section provides configuration for the name translation. 45 */ 46 #define NRF_AAR NRF_AAR_NS 47 #define NRF_ACL NRF_ACL_NS 48 #define NRF_CCM NRF_CCM_NS 49 #define NRF_CLOCK NRF_CLOCK_NS 50 #define NRF_CTI NRF_CTI_NS 51 #define NRF_CTRLAP NRF_CTRLAP_NS 52 #define NRF_DCNF NRF_DCNF_NS 53 #define NRF_DPPIC NRF_DPPIC_NS 54 #define NRF_ECB NRF_ECB_NS 55 #define NRF_EGU0 NRF_EGU0_NS 56 #define NRF_FICR NRF_FICR_NS 57 #define NRF_GPIOTE NRF_GPIOTE_NS 58 #define NRF_IPC NRF_IPC_NS 59 #define NRF_NVMC NRF_NVMC_NS 60 #define NRF_P0 NRF_P0_NS 61 #define NRF_P1 NRF_P1_NS 62 #define NRF_POWER NRF_POWER_NS 63 #define NRF_RADIO NRF_RADIO_NS 64 #define NRF_RESET NRF_RESET_NS 65 #define NRF_RNG NRF_RNG_NS 66 #define NRF_RTC0 NRF_RTC0_NS 67 #define NRF_RTC1 NRF_RTC1_NS 68 #define NRF_SPIM0 NRF_SPIM0_NS 69 #define NRF_SPIS0 NRF_SPIS0_NS 70 #define NRF_SWI0 NRF_SWI0_NS 71 #define NRF_SWI1 NRF_SWI1_NS 72 #define NRF_SWI2 NRF_SWI2_NS 73 #define NRF_SWI3 NRF_SWI3_NS 74 #define NRF_TEMP NRF_TEMP_NS 75 #define NRF_TIMER0 NRF_TIMER0_NS 76 #define NRF_TIMER1 NRF_TIMER1_NS 77 #define NRF_TIMER2 NRF_TIMER2_NS 78 #define NRF_TWIM0 NRF_TWIM0_NS 79 #define NRF_TWIS0 NRF_TWIS0_NS 80 #define NRF_UARTE0 NRF_UARTE0_NS 81 #define NRF_UICR NRF_UICR_NS 82 #define NRF_VMC NRF_VMC_NS 83 #define NRF_VREQCTRL NRF_VREQCTRL_NS 84 #define NRF_WDT NRF_WDT_NS 85 86 // <<< Use Configuration Wizard in Context Menu >>>\n 87 88 // <h> nRF_Drivers 89 90 // <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver. 91 //========================================================== 92 #ifndef NRFX_CLOCK_ENABLED 93 #define NRFX_CLOCK_ENABLED 0 94 #endif 95 // <o> NRFX_CLOCK_CONFIG_LF_SRC - LF clock source. 96 97 // <0=> ULP 98 // <1=> RC 99 // <2=> XTAL 100 // <3=> Synth 101 102 #ifndef NRFX_CLOCK_CONFIG_LF_SRC 103 #define NRFX_CLOCK_CONFIG_LF_SRC 2 104 #endif 105 106 // <q> NRFX_CLOCK_CONFIG_LF_CAL_ENABLED - Enables LF Clock Calibration Support 107 108 #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 109 #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 110 #endif 111 112 // <q> NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED - Enables two-stage LFXO start procedure 113 114 // <i> If set to a non-zero value, LFRC will be started before LFXO and corresponding 115 // <i> event will be generated. It means that CPU will be woken up when LFRC 116 // <i> oscillator starts, but user callback will be invoked only after LFXO 117 // <i> finally starts. 118 119 #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 120 #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 121 #endif 122 123 // <o> NRFX_CLOCK_CONFIG_HFCLK192M_SRC - HFCLK192M source. 124 125 // <0=> HFINT 126 // <1=> HFXO 127 128 #ifndef NRFX_CLOCK_CONFIG_HFCLK192M_SRC 129 #define NRFX_CLOCK_CONFIG_HFCLK192M_SRC 1 130 #endif 131 132 133 // <o> NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 134 135 // <0=> 0 (highest) 136 // <1=> 1 137 // <2=> 2 138 // <3=> 3 139 // <4=> 4 140 // <5=> 5 141 // <6=> 6 142 // <7=> 7 143 144 #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 145 #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7 146 #endif 147 148 // <e> NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module. 149 //========================================================== 150 #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED 151 #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 152 #endif 153 // <o> NRFX_CLOCK_CONFIG_LOG_LEVEL - Default severity level. 154 155 // <0=> Off 156 // <1=> Error 157 // <2=> Warning 158 // <3=> Info 159 // <4=> Debug 160 161 #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL 162 #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 163 #endif 164 165 // <o> NRFX_CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix. 166 167 // <0=> Default 168 // <1=> Black 169 // <2=> Red 170 // <3=> Green 171 // <4=> Yellow 172 // <5=> Blue 173 // <6=> Magenta 174 // <7=> Cyan 175 // <8=> White 176 177 #ifndef NRFX_CLOCK_CONFIG_INFO_COLOR 178 #define NRFX_CLOCK_CONFIG_INFO_COLOR 0 179 #endif 180 181 // <o> NRFX_CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 182 183 // <0=> Default 184 // <1=> Black 185 // <2=> Red 186 // <3=> Green 187 // <4=> Yellow 188 // <5=> Blue 189 // <6=> Magenta 190 // <7=> Cyan 191 // <8=> White 192 193 #ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR 194 #define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0 195 #endif 196 197 // </e> 198 199 // </e> 200 201 // <e> NRFX_DPPI_ENABLED - nrfx_dppi - DPPI allocator. 202 //========================================================== 203 #ifndef NRFX_DPPI_ENABLED 204 #define NRFX_DPPI_ENABLED 0 205 #endif 206 // <e> NRFX_DPPI_CONFIG_LOG_ENABLED - Enables logging in the module. 207 //========================================================== 208 #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED 209 #define NRFX_DPPI_CONFIG_LOG_ENABLED 0 210 #endif 211 // <o> NRFX_DPPI_CONFIG_LOG_LEVEL - Default severity level. 212 213 // <0=> Off 214 // <1=> Error 215 // <2=> Warning 216 // <3=> Info 217 // <4=> Debug 218 219 #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL 220 #define NRFX_DPPI_CONFIG_LOG_LEVEL 3 221 #endif 222 223 // <o> NRFX_DPPI_CONFIG_INFO_COLOR - ANSI escape code prefix. 224 225 // <0=> Default 226 // <1=> Black 227 // <2=> Red 228 // <3=> Green 229 // <4=> Yellow 230 // <5=> Blue 231 // <6=> Magenta 232 // <7=> Cyan 233 // <8=> White 234 235 #ifndef NRFX_DPPI_CONFIG_INFO_COLOR 236 #define NRFX_DPPI_CONFIG_INFO_COLOR 0 237 #endif 238 239 // <o> NRFX_DPPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 240 241 // <0=> Default 242 // <1=> Black 243 // <2=> Red 244 // <3=> Green 245 // <4=> Yellow 246 // <5=> Blue 247 // <6=> Magenta 248 // <7=> Cyan 249 // <8=> White 250 251 #ifndef NRFX_DPPI_CONFIG_DEBUG_COLOR 252 #define NRFX_DPPI_CONFIG_DEBUG_COLOR 0 253 #endif 254 255 // </e> 256 257 // </e> 258 259 // <e> NRFX_EGU_ENABLED - nrfx_egu - EGU peripheral driver. 260 //========================================================== 261 #ifndef NRFX_EGU_ENABLED 262 #define NRFX_EGU_ENABLED 0 263 #endif 264 265 // <q> NRFX_EGU0_ENABLED - Enable EGU0 instance. 266 267 #ifndef NRFX_EGU0_ENABLED 268 #define NRFX_EGU0_ENABLED 0 269 #endif 270 271 // <o> NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 272 273 // <0=> 0 (highest) 274 // <1=> 1 275 // <2=> 2 276 // <3=> 3 277 // <4=> 4 278 // <5=> 5 279 // <6=> 6 280 // <7=> 7 281 282 #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY 283 #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY 7 284 #endif 285 286 // </e> 287 288 // <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver. 289 //========================================================== 290 #ifndef NRFX_GPIOTE_ENABLED 291 #define NRFX_GPIOTE_ENABLED 0 292 #endif 293 // <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins. 294 #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 295 #define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1 296 #endif 297 298 // <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 299 300 // <0=> 0 (highest) 301 // <1=> 1 302 // <2=> 2 303 // <3=> 3 304 // <4=> 4 305 // <5=> 5 306 // <6=> 6 307 // <7=> 7 308 309 #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY 310 #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY 7 311 #endif 312 313 // <e> NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module. 314 //========================================================== 315 #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED 316 #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 317 #endif 318 // <o> NRFX_GPIOTE_CONFIG_LOG_LEVEL - Default severity level. 319 320 // <0=> Off 321 // <1=> Error 322 // <2=> Warning 323 // <3=> Info 324 // <4=> Debug 325 326 #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL 327 #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 328 #endif 329 330 // <o> NRFX_GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix. 331 332 // <0=> Default 333 // <1=> Black 334 // <2=> Red 335 // <3=> Green 336 // <4=> Yellow 337 // <5=> Blue 338 // <6=> Magenta 339 // <7=> Cyan 340 // <8=> White 341 342 #ifndef NRFX_GPIOTE_CONFIG_INFO_COLOR 343 #define NRFX_GPIOTE_CONFIG_INFO_COLOR 0 344 #endif 345 346 // <o> NRFX_GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 347 348 // <0=> Default 349 // <1=> Black 350 // <2=> Red 351 // <3=> Green 352 // <4=> Yellow 353 // <5=> Blue 354 // <6=> Magenta 355 // <7=> Cyan 356 // <8=> White 357 358 #ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR 359 #define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0 360 #endif 361 362 // </e> 363 364 // </e> 365 366 // <e> NRFX_IPC_ENABLED - nrfx_ipc - IPC peripheral driver 367 //========================================================== 368 #ifndef NRFX_IPC_ENABLED 369 #define NRFX_IPC_ENABLED 0 370 #endif 371 372 // </e> 373 374 // <e> NRFX_NVMC_ENABLED - nrfx_nvmc - NVMC peripheral driver 375 //========================================================== 376 #ifndef NRFX_NVMC_ENABLED 377 #define NRFX_NVMC_ENABLED 0 378 #endif 379 380 // </e> 381 382 // <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver. 383 //========================================================== 384 #ifndef NRFX_POWER_ENABLED 385 #define NRFX_POWER_ENABLED 0 386 #endif 387 // <o> NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 388 389 // <0=> 0 (highest) 390 // <1=> 1 391 // <2=> 2 392 // <3=> 3 393 // <4=> 4 394 // <5=> 5 395 // <6=> 6 396 // <7=> 7 397 398 #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY 399 #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY 7 400 #endif 401 402 // </e> 403 404 // <e> NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing (PRS) module. 405 //========================================================== 406 #ifndef NRFX_PRS_ENABLED 407 #define NRFX_PRS_ENABLED 0 408 #endif 409 // <q> NRFX_PRS_BOX_0_ENABLED - Enables box 0 in the module. 410 411 412 #ifndef NRFX_PRS_BOX_0_ENABLED 413 #define NRFX_PRS_BOX_0_ENABLED 0 414 #endif 415 416 417 // <e> NRFX_PRS_CONFIG_LOG_ENABLED - Enables logging in the module. 418 //========================================================== 419 #ifndef NRFX_PRS_CONFIG_LOG_ENABLED 420 #define NRFX_PRS_CONFIG_LOG_ENABLED 0 421 #endif 422 // <o> NRFX_PRS_CONFIG_LOG_LEVEL - Default severity level. 423 424 // <0=> Off 425 // <1=> Error 426 // <2=> Warning 427 // <3=> Info 428 // <4=> Debug 429 430 #ifndef NRFX_PRS_CONFIG_LOG_LEVEL 431 #define NRFX_PRS_CONFIG_LOG_LEVEL 3 432 #endif 433 434 // <o> NRFX_PRS_CONFIG_INFO_COLOR - ANSI escape code prefix. 435 436 // <0=> Default 437 // <1=> Black 438 // <2=> Red 439 // <3=> Green 440 // <4=> Yellow 441 // <5=> Blue 442 // <6=> Magenta 443 // <7=> Cyan 444 // <8=> White 445 446 #ifndef NRFX_PRS_CONFIG_INFO_COLOR 447 #define NRFX_PRS_CONFIG_INFO_COLOR 0 448 #endif 449 450 // <o> NRFX_PRS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 451 452 // <0=> Default 453 // <1=> Black 454 // <2=> Red 455 // <3=> Green 456 // <4=> Yellow 457 // <5=> Blue 458 // <6=> Magenta 459 // <7=> Cyan 460 // <8=> White 461 462 #ifndef NRFX_PRS_CONFIG_DEBUG_COLOR 463 #define NRFX_PRS_CONFIG_DEBUG_COLOR 0 464 #endif 465 466 // </e> 467 468 // </e> 469 470 // <e> NRFX_RNG_ENABLED - nrfx_rng - RNG peripheral driver 471 //========================================================== 472 #ifndef NRFX_RNG_ENABLED 473 #define NRFX_RNG_ENABLED 0 474 #endif 475 476 // <o> NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 477 478 // <0=> 0 (highest) 479 // <1=> 1 480 // <2=> 2 481 // <3=> 3 482 // <4=> 4 483 // <5=> 5 484 // <6=> 6 485 // <7=> 7 486 487 #ifndef NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY 488 #define NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY 7 489 #endif 490 491 // <e> NRFX_RNG_CONFIG_LOG_ENABLED - Enables logging in the module. 492 //========================================================== 493 #ifndef NRFX_RNG_CONFIG_LOG_ENABLED 494 #define NRFX_RNG_CONFIG_LOG_ENABLED 0 495 #endif 496 // <o> NRFX_RNG_CONFIG_LOG_LEVEL - Default Severity level 497 498 // <0=> Off 499 // <1=> Error 500 // <2=> Warning 501 // <3=> Info 502 // <4=> Debug 503 504 #ifndef NRFX_RNG_CONFIG_LOG_LEVEL 505 #define NRFX_RNG_CONFIG_LOG_LEVEL 3 506 #endif 507 508 // <o> NRFX_RNG_CONFIG_INFO_COLOR - ANSI escape code prefix. 509 510 // <0=> Default 511 // <1=> Black 512 // <2=> Red 513 // <3=> Green 514 // <4=> Yellow 515 // <5=> Blue 516 // <6=> Magenta 517 // <7=> Cyan 518 // <8=> White 519 520 #ifndef NRFX_RNG_CONFIG_INFO_COLOR 521 #define NRFX_RNG_CONFIG_INFO_COLOR 0 522 #endif 523 524 // <o> NRFX_RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 525 526 // <0=> Default 527 // <1=> Black 528 // <2=> Red 529 // <3=> Green 530 // <4=> Yellow 531 // <5=> Blue 532 // <6=> Magenta 533 // <7=> Cyan 534 // <8=> White 535 536 #ifndef NRFX_RNG_CONFIG_DEBUG_COLOR 537 #define NRFX_RNG_CONFIG_DEBUG_COLOR 0 538 #endif 539 540 // </e> 541 542 // </e> 543 544 // <e> NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver. 545 //========================================================== 546 #ifndef NRFX_RTC_ENABLED 547 #define NRFX_RTC_ENABLED 0 548 #endif 549 // <q> NRFX_RTC0_ENABLED - Enables RTC0 instance. 550 551 552 #ifndef NRFX_RTC0_ENABLED 553 #define NRFX_RTC0_ENABLED 0 554 #endif 555 556 // <q> NRFX_RTC1_ENABLED - Enables RTC1 instance. 557 558 559 #ifndef NRFX_RTC1_ENABLED 560 #define NRFX_RTC1_ENABLED 0 561 #endif 562 563 // <o> NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 564 565 // <0=> 0 (highest) 566 // <1=> 1 567 // <2=> 2 568 // <3=> 3 569 // <4=> 4 570 // <5=> 5 571 // <6=> 6 572 // <7=> 7 573 574 #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 575 #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 7 576 #endif 577 578 // <e> NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module. 579 //========================================================== 580 #ifndef NRFX_RTC_CONFIG_LOG_ENABLED 581 #define NRFX_RTC_CONFIG_LOG_ENABLED 0 582 #endif 583 // <o> NRFX_RTC_CONFIG_LOG_LEVEL - Default severity level. 584 585 // <0=> Off 586 // <1=> Error 587 // <2=> Warning 588 // <3=> Info 589 // <4=> Debug 590 591 #ifndef NRFX_RTC_CONFIG_LOG_LEVEL 592 #define NRFX_RTC_CONFIG_LOG_LEVEL 3 593 #endif 594 595 // <o> NRFX_RTC_CONFIG_INFO_COLOR - ANSI escape code prefix. 596 597 // <0=> Default 598 // <1=> Black 599 // <2=> Red 600 // <3=> Green 601 // <4=> Yellow 602 // <5=> Blue 603 // <6=> Magenta 604 // <7=> Cyan 605 // <8=> White 606 607 #ifndef NRFX_RTC_CONFIG_INFO_COLOR 608 #define NRFX_RTC_CONFIG_INFO_COLOR 0 609 #endif 610 611 // <o> NRFX_RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 612 613 // <0=> Default 614 // <1=> Black 615 // <2=> Red 616 // <3=> Green 617 // <4=> Yellow 618 // <5=> Blue 619 // <6=> Magenta 620 // <7=> Cyan 621 // <8=> White 622 623 #ifndef NRFX_RTC_CONFIG_DEBUG_COLOR 624 #define NRFX_RTC_CONFIG_DEBUG_COLOR 0 625 #endif 626 627 // </e> 628 629 // </e> 630 631 632 // <e> NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver. 633 //========================================================== 634 #ifndef NRFX_SPIM_ENABLED 635 #define NRFX_SPIM_ENABLED 0 636 #endif 637 // <q> NRFX_SPIM0_ENABLED - Enables SPIM0 instance. 638 639 640 #ifndef NRFX_SPIM0_ENABLED 641 #define NRFX_SPIM0_ENABLED 0 642 #endif 643 644 645 // <o> NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 646 647 // <0=> 0 (highest) 648 // <1=> 1 649 // <2=> 2 650 // <3=> 3 651 // <4=> 4 652 // <5=> 5 653 // <6=> 6 654 // <7=> 7 655 656 #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 657 #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 7 658 #endif 659 660 // <e> NRFX_SPIM_CONFIG_LOG_ENABLED - Enables logging in the module. 661 //========================================================== 662 #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED 663 #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 664 #endif 665 // <o> NRFX_SPIM_CONFIG_LOG_LEVEL - Default severity level. 666 667 // <0=> Off 668 // <1=> Error 669 // <2=> Warning 670 // <3=> Info 671 // <4=> Debug 672 673 #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL 674 #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 675 #endif 676 677 // <o> NRFX_SPIM_CONFIG_INFO_COLOR - ANSI escape code prefix. 678 679 // <0=> Default 680 // <1=> Black 681 // <2=> Red 682 // <3=> Green 683 // <4=> Yellow 684 // <5=> Blue 685 // <6=> Magenta 686 // <7=> Cyan 687 // <8=> White 688 689 #ifndef NRFX_SPIM_CONFIG_INFO_COLOR 690 #define NRFX_SPIM_CONFIG_INFO_COLOR 0 691 #endif 692 693 // <o> NRFX_SPIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 694 695 // <0=> Default 696 // <1=> Black 697 // <2=> Red 698 // <3=> Green 699 // <4=> Yellow 700 // <5=> Blue 701 // <6=> Magenta 702 // <7=> Cyan 703 // <8=> White 704 705 #ifndef NRFX_SPIM_CONFIG_DEBUG_COLOR 706 #define NRFX_SPIM_CONFIG_DEBUG_COLOR 0 707 #endif 708 709 // </e> 710 711 // </e> 712 713 // <e> NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver. 714 //========================================================== 715 #ifndef NRFX_SPIS_ENABLED 716 #define NRFX_SPIS_ENABLED 0 717 #endif 718 // <q> NRFX_SPIS0_ENABLED - Enables SPIS0 instance. 719 720 721 #ifndef NRFX_SPIS0_ENABLED 722 #define NRFX_SPIS0_ENABLED 0 723 #endif 724 725 726 // <o> NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 727 728 // <0=> 0 (highest) 729 // <1=> 1 730 // <2=> 2 731 // <3=> 3 732 // <4=> 4 733 // <5=> 5 734 // <6=> 6 735 // <7=> 7 736 737 #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 738 #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 739 #endif 740 741 // <e> NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module. 742 //========================================================== 743 #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED 744 #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 745 #endif 746 // <o> NRFX_SPIS_CONFIG_LOG_LEVEL - Default severity level. 747 748 // <0=> Off 749 // <1=> Error 750 // <2=> Warning 751 // <3=> Info 752 // <4=> Debug 753 754 #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL 755 #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 756 #endif 757 758 // <o> NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix. 759 760 // <0=> Default 761 // <1=> Black 762 // <2=> Red 763 // <3=> Green 764 // <4=> Yellow 765 // <5=> Blue 766 // <6=> Magenta 767 // <7=> Cyan 768 // <8=> White 769 770 #ifndef NRFX_SPIS_CONFIG_INFO_COLOR 771 #define NRFX_SPIS_CONFIG_INFO_COLOR 0 772 #endif 773 774 // <o> NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 775 776 // <0=> Default 777 // <1=> Black 778 // <2=> Red 779 // <3=> Green 780 // <4=> Yellow 781 // <5=> Blue 782 // <6=> Magenta 783 // <7=> Cyan 784 // <8=> White 785 786 #ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR 787 #define NRFX_SPIS_CONFIG_DEBUG_COLOR 0 788 #endif 789 790 // </e> 791 792 // </e> 793 794 // <q> NRFX_SYSTICK_ENABLED - nrfx_systick - ARM(R) SysTick driver. 795 796 797 #ifndef NRFX_SYSTICK_ENABLED 798 #define NRFX_SYSTICK_ENABLED 0 799 #endif 800 801 // <e> NRFX_TEMP_ENABLED - nrfx_temp - TEMP peripheral driver 802 //========================================================== 803 #ifndef NRFX_TEMP_ENABLED 804 #define NRFX_TEMP_ENABLED 0 805 #endif 806 807 // <o> NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 808 809 // <0=> 0 (highest) 810 // <1=> 1 811 // <2=> 2 812 // <3=> 3 813 // <4=> 4 814 // <5=> 5 815 // <6=> 6 816 // <7=> 7 817 818 #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY 819 #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY 7 820 #endif 821 822 // </e> 823 824 // <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver. 825 //========================================================== 826 #ifndef NRFX_TIMER_ENABLED 827 #define NRFX_TIMER_ENABLED 0 828 #endif 829 // <q> NRFX_TIMER0_ENABLED - Enables TIMER0 instance. 830 831 832 #ifndef NRFX_TIMER0_ENABLED 833 #define NRFX_TIMER0_ENABLED 0 834 #endif 835 836 // <q> NRFX_TIMER1_ENABLED - Enables TIMER1 instance. 837 838 839 #ifndef NRFX_TIMER1_ENABLED 840 #define NRFX_TIMER1_ENABLED 0 841 #endif 842 843 // <q> NRFX_TIMER2_ENABLED - Enables TIMER2 instance. 844 845 846 #ifndef NRFX_TIMER2_ENABLED 847 #define NRFX_TIMER2_ENABLED 0 848 #endif 849 850 // <o> NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 851 852 // <0=> 0 (highest) 853 // <1=> 1 854 // <2=> 2 855 // <3=> 3 856 // <4=> 4 857 // <5=> 5 858 // <6=> 6 859 // <7=> 7 860 861 #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 862 #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 7 863 #endif 864 865 // <e> NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. 866 //========================================================== 867 #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED 868 #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 869 #endif 870 // <o> NRFX_TIMER_CONFIG_LOG_LEVEL - Default severity level. 871 872 // <0=> Off 873 // <1=> Error 874 // <2=> Warning 875 // <3=> Info 876 // <4=> Debug 877 878 #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL 879 #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 880 #endif 881 882 // <o> NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. 883 884 // <0=> Default 885 // <1=> Black 886 // <2=> Red 887 // <3=> Green 888 // <4=> Yellow 889 // <5=> Blue 890 // <6=> Magenta 891 // <7=> Cyan 892 // <8=> White 893 894 #ifndef NRFX_TIMER_CONFIG_INFO_COLOR 895 #define NRFX_TIMER_CONFIG_INFO_COLOR 0 896 #endif 897 898 // <o> NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 899 900 // <0=> Default 901 // <1=> Black 902 // <2=> Red 903 // <3=> Green 904 // <4=> Yellow 905 // <5=> Blue 906 // <6=> Magenta 907 // <7=> Cyan 908 // <8=> White 909 910 #ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR 911 #define NRFX_TIMER_CONFIG_DEBUG_COLOR 0 912 #endif 913 914 // </e> 915 916 // </e> 917 918 // <e> NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver. 919 //========================================================== 920 #ifndef NRFX_TWIM_ENABLED 921 #define NRFX_TWIM_ENABLED 0 922 #endif 923 // <q> NRFX_TWIM0_ENABLED - Enables TWIM0 instance. 924 925 926 #ifndef NRFX_TWIM0_ENABLED 927 #define NRFX_TWIM0_ENABLED 0 928 #endif 929 930 // <o> NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 931 932 // <0=> 0 (highest) 933 // <1=> 1 934 // <2=> 2 935 // <3=> 3 936 // <4=> 4 937 // <5=> 5 938 // <6=> 6 939 // <7=> 7 940 941 #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 942 #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 7 943 #endif 944 945 // <e> NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module. 946 //========================================================== 947 #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED 948 #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 949 #endif 950 // <o> NRFX_TWIM_CONFIG_LOG_LEVEL - Default severity level. 951 952 // <0=> Off 953 // <1=> Error 954 // <2=> Warning 955 // <3=> Info 956 // <4=> Debug 957 958 #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL 959 #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 960 #endif 961 962 // <o> NRFX_TWIM_CONFIG_INFO_COLOR - ANSI escape code prefix. 963 964 // <0=> Default 965 // <1=> Black 966 // <2=> Red 967 // <3=> Green 968 // <4=> Yellow 969 // <5=> Blue 970 // <6=> Magenta 971 // <7=> Cyan 972 // <8=> White 973 974 #ifndef NRFX_TWIM_CONFIG_INFO_COLOR 975 #define NRFX_TWIM_CONFIG_INFO_COLOR 0 976 #endif 977 978 // <o> NRFX_TWIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 979 980 // <0=> Default 981 // <1=> Black 982 // <2=> Red 983 // <3=> Green 984 // <4=> Yellow 985 // <5=> Blue 986 // <6=> Magenta 987 // <7=> Cyan 988 // <8=> White 989 990 #ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR 991 #define NRFX_TWIM_CONFIG_DEBUG_COLOR 0 992 #endif 993 994 // </e> 995 996 // </e> 997 998 // <e> NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver. 999 //========================================================== 1000 #ifndef NRFX_TWIS_ENABLED 1001 #define NRFX_TWIS_ENABLED 0 1002 #endif 1003 1004 // <q> NRFX_TWIS0_ENABLED - Enables TWIS0 instance. 1005 1006 #ifndef NRFX_TWIS0_ENABLED 1007 #define NRFX_TWIS0_ENABLED 0 1008 #endif 1009 1010 1011 // <q> NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assumes that any instance would be initialized only once. 1012 1013 // <i> Optimization flag. Registers used by TWIS are shared by other peripherals. Normally, during initialization driver tries to clear all registers to known state before doing the initialization itself. This gives initialization safe procedure, no matter when it would be called. If you activate TWIS only once and do never uninitialize it - set this flag to 1 what gives more optimal code. 1014 1015 #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 1016 #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 1017 #endif 1018 1019 // <q> NRFX_TWIS_NO_SYNC_MODE - Removes support for synchronous mode. 1020 1021 // <i> Synchronous mode would be used in specific situations. And it uses some additional code and data memory to safely process state machine by polling it in status functions. If this functionality is not required it may be disabled to free some resources. 1022 1023 #ifndef NRFX_TWIS_NO_SYNC_MODE 1024 #define NRFX_TWIS_NO_SYNC_MODE 0 1025 #endif 1026 1027 // <o> NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 1028 1029 // <0=> 0 (highest) 1030 // <1=> 1 1031 // <2=> 2 1032 // <3=> 3 1033 // <4=> 4 1034 // <5=> 5 1035 // <6=> 6 1036 // <7=> 7 1037 1038 #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 1039 #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 1040 #endif 1041 1042 // <e> NRFX_TWIS_CONFIG_LOG_ENABLED - Enables logging in the module. 1043 //========================================================== 1044 #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED 1045 #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 1046 #endif 1047 // <o> NRFX_TWIS_CONFIG_LOG_LEVEL - Default severity level. 1048 1049 // <0=> Off 1050 // <1=> Error 1051 // <2=> Warning 1052 // <3=> Info 1053 // <4=> Debug 1054 1055 #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL 1056 #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 1057 #endif 1058 1059 // <o> NRFX_TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix. 1060 1061 // <0=> Default 1062 // <1=> Black 1063 // <2=> Red 1064 // <3=> Green 1065 // <4=> Yellow 1066 // <5=> Blue 1067 // <6=> Magenta 1068 // <7=> Cyan 1069 // <8=> White 1070 1071 #ifndef NRFX_TWIS_CONFIG_INFO_COLOR 1072 #define NRFX_TWIS_CONFIG_INFO_COLOR 0 1073 #endif 1074 1075 // <o> NRFX_TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1076 1077 // <0=> Default 1078 // <1=> Black 1079 // <2=> Red 1080 // <3=> Green 1081 // <4=> Yellow 1082 // <5=> Blue 1083 // <6=> Magenta 1084 // <7=> Cyan 1085 // <8=> White 1086 1087 #ifndef NRFX_TWIS_CONFIG_DEBUG_COLOR 1088 #define NRFX_TWIS_CONFIG_DEBUG_COLOR 0 1089 #endif 1090 1091 // </e> 1092 1093 // </e> 1094 1095 // <e> NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver. 1096 //========================================================== 1097 #ifndef NRFX_UARTE_ENABLED 1098 #define NRFX_UARTE_ENABLED 0 1099 #endif 1100 // <o> NRFX_UARTE0_ENABLED - Enables UARTE0 instances 1101 #ifndef NRFX_UARTE0_ENABLED 1102 #define NRFX_UARTE0_ENABLED 0 1103 #endif 1104 1105 // <o> NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 1106 1107 // <0=> 0 (highest) 1108 // <1=> 1 1109 // <2=> 2 1110 // <3=> 3 1111 // <4=> 4 1112 // <5=> 5 1113 // <6=> 6 1114 // <7=> 7 1115 1116 #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 1117 #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 7 1118 #endif 1119 1120 // <e> NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module. 1121 //========================================================== 1122 #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED 1123 #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 1124 #endif 1125 // <o> NRFX_UARTE_CONFIG_LOG_LEVEL - Default severity level. 1126 1127 // <0=> Off 1128 // <1=> Error 1129 // <2=> Warning 1130 // <3=> Info 1131 // <4=> Debug 1132 1133 #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL 1134 #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 1135 #endif 1136 1137 // <o> NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix. 1138 1139 // <0=> Default 1140 // <1=> Black 1141 // <2=> Red 1142 // <3=> Green 1143 // <4=> Yellow 1144 // <5=> Blue 1145 // <6=> Magenta 1146 // <7=> Cyan 1147 // <8=> White 1148 1149 #ifndef NRFX_UARTE_CONFIG_INFO_COLOR 1150 #define NRFX_UARTE_CONFIG_INFO_COLOR 0 1151 #endif 1152 1153 // <o> NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1154 1155 // <0=> Default 1156 // <1=> Black 1157 // <2=> Red 1158 // <3=> Green 1159 // <4=> Yellow 1160 // <5=> Blue 1161 // <6=> Magenta 1162 // <7=> Cyan 1163 // <8=> White 1164 1165 #ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR 1166 #define NRFX_UARTE_CONFIG_DEBUG_COLOR 0 1167 #endif 1168 1169 // </e> 1170 1171 // </e> 1172 1173 // <e> NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver. 1174 //========================================================== 1175 #ifndef NRFX_WDT_ENABLED 1176 #define NRFX_WDT_ENABLED 0 1177 #endif 1178 // <q> NRFX_WDT0_ENABLED - Enable WDT0 instance. 1179 1180 1181 #ifndef NRFX_WDT0_ENABLED 1182 #define NRFX_WDT0_ENABLED 0 1183 #endif 1184 1185 // <o> NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver. 1186 1187 // <0=> Include WDT IRQ handling 1188 // <1=> Remove WDT IRQ handling 1189 1190 #ifndef NRFX_WDT_CONFIG_NO_IRQ 1191 #define NRFX_WDT_CONFIG_NO_IRQ 0 1192 #endif 1193 1194 // <o> NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 1195 1196 // <0=> 0 (highest) 1197 // <1=> 1 1198 // <2=> 2 1199 // <3=> 3 1200 // <4=> 4 1201 // <5=> 5 1202 // <6=> 6 1203 // <7=> 7 1204 1205 #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY 1206 #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY 7 1207 #endif 1208 1209 // <e> NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module. 1210 //========================================================== 1211 #ifndef NRFX_WDT_CONFIG_LOG_ENABLED 1212 #define NRFX_WDT_CONFIG_LOG_ENABLED 0 1213 #endif 1214 // <o> NRFX_WDT_CONFIG_LOG_LEVEL - Default severity level. 1215 1216 // <0=> Off 1217 // <1=> Error 1218 // <2=> Warning 1219 // <3=> Info 1220 // <4=> Debug 1221 1222 #ifndef NRFX_WDT_CONFIG_LOG_LEVEL 1223 #define NRFX_WDT_CONFIG_LOG_LEVEL 3 1224 #endif 1225 1226 // <o> NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix. 1227 1228 // <0=> Default 1229 // <1=> Black 1230 // <2=> Red 1231 // <3=> Green 1232 // <4=> Yellow 1233 // <5=> Blue 1234 // <6=> Magenta 1235 // <7=> Cyan 1236 // <8=> White 1237 1238 #ifndef NRFX_WDT_CONFIG_INFO_COLOR 1239 #define NRFX_WDT_CONFIG_INFO_COLOR 0 1240 #endif 1241 1242 // <o> NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1243 1244 // <0=> Default 1245 // <1=> Black 1246 // <2=> Red 1247 // <3=> Green 1248 // <4=> Yellow 1249 // <5=> Blue 1250 // <6=> Magenta 1251 // <7=> Cyan 1252 // <8=> White 1253 1254 #ifndef NRFX_WDT_CONFIG_DEBUG_COLOR 1255 #define NRFX_WDT_CONFIG_DEBUG_COLOR 0 1256 #endif 1257 1258 // </e> 1259 1260 // </e> 1261 1262 // </h> 1263 1264 #endif // NRFX_CONFIG_NRF5340_NETWORK_H__ 1265