1 #ifndef NRFX_CONFIG_H__ 2 #define NRFX_CONFIG_H__ 3 4 // <<< Use Configuration Wizard in Context Menu >>>\n 5 6 // <h> nRF_Drivers 7 8 // <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver 9 //========================================================== 10 #ifndef NRFX_CLOCK_ENABLED 11 #define NRFX_CLOCK_ENABLED 1 12 #endif 13 // <o> NRFX_CLOCK_CONFIG_LF_SRC - LF Clock Source 14 15 // <0=> RC 16 // <1=> XTAL 17 // <2=> Synth 18 // <131073=> External Low Swing 19 // <196609=> External Full Swing 20 21 #ifndef NRFX_CLOCK_CONFIG_LF_SRC 22 #define NRFX_CLOCK_CONFIG_LF_SRC 1 23 #endif 24 25 // <q> NRFX_CLOCK_CONFIG_LF_CAL_ENABLED - Enables LF Clock Calibration Support 26 27 #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 28 #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 29 #endif 30 31 // <o> NRFX_CLOCK_CONFIG_IRQ_PRIORITY - Interrupt priority 32 33 // <0=> 0 (highest) 34 // <1=> 1 35 // <2=> 2 36 // <3=> 3 37 // <4=> 4 38 // <5=> 5 39 // <6=> 6 40 // <7=> 7 41 42 #ifndef NRFX_CLOCK_CONFIG_IRQ_PRIORITY 43 #define NRFX_CLOCK_CONFIG_IRQ_PRIORITY 7 44 #endif 45 46 // <e> NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module. 47 //========================================================== 48 #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED 49 #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 50 #endif 51 // <o> NRFX_CLOCK_CONFIG_LOG_LEVEL - Default Severity level 52 53 // <0=> Off 54 // <1=> Error 55 // <2=> Warning 56 // <3=> Info 57 // <4=> Debug 58 59 #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL 60 #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 61 #endif 62 63 // <o> NRFX_CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix. 64 65 // <0=> Default 66 // <1=> Black 67 // <2=> Red 68 // <3=> Green 69 // <4=> Yellow 70 // <5=> Blue 71 // <6=> Magenta 72 // <7=> Cyan 73 // <8=> White 74 75 #ifndef NRFX_CLOCK_CONFIG_INFO_COLOR 76 #define NRFX_CLOCK_CONFIG_INFO_COLOR 0 77 #endif 78 79 // <o> NRFX_CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 80 81 // <0=> Default 82 // <1=> Black 83 // <2=> Red 84 // <3=> Green 85 // <4=> Yellow 86 // <5=> Blue 87 // <6=> Magenta 88 // <7=> Cyan 89 // <8=> White 90 91 #ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR 92 #define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0 93 #endif 94 95 // </e> 96 97 // </e> 98 99 // <e> NRFX_COMP_ENABLED - nrfx_comp - COMP peripheral driver 100 //========================================================== 101 #ifndef NRFX_COMP_ENABLED 102 #define NRFX_COMP_ENABLED 1 103 #endif 104 // <o> NRFX_COMP_CONFIG_REF - Reference voltage 105 106 // <0=> Internal 1.2V 107 // <1=> Internal 1.8V 108 // <2=> Internal 2.4V 109 // <4=> VDD 110 // <7=> ARef 111 112 #ifndef NRFX_COMP_CONFIG_REF 113 #define NRFX_COMP_CONFIG_REF 1 114 #endif 115 116 // <o> NRFX_COMP_CONFIG_MAIN_MODE - Main mode 117 118 // <0=> Single ended 119 // <1=> Differential 120 121 #ifndef NRFX_COMP_CONFIG_MAIN_MODE 122 #define NRFX_COMP_CONFIG_MAIN_MODE 0 123 #endif 124 125 // <o> NRFX_COMP_CONFIG_SPEED_MODE - Speed mode 126 127 // <0=> Low power 128 // <1=> Normal 129 // <2=> High speed 130 131 #ifndef NRFX_COMP_CONFIG_SPEED_MODE 132 #define NRFX_COMP_CONFIG_SPEED_MODE 2 133 #endif 134 135 // <o> NRFX_COMP_CONFIG_HYST - Hystheresis 136 137 // <0=> No 138 // <1=> 50mV 139 140 #ifndef NRFX_COMP_CONFIG_HYST 141 #define NRFX_COMP_CONFIG_HYST 0 142 #endif 143 144 // <o> NRFX_COMP_CONFIG_ISOURCE - Current Source 145 146 // <0=> Off 147 // <1=> 2.5 uA 148 // <2=> 5 uA 149 // <3=> 10 uA 150 151 #ifndef NRFX_COMP_CONFIG_ISOURCE 152 #define NRFX_COMP_CONFIG_ISOURCE 0 153 #endif 154 155 // <o> NRFX_COMP_CONFIG_INPUT - Analog input 156 157 // <0=> 0 158 // <1=> 1 159 // <2=> 2 160 // <3=> 3 161 // <4=> 4 162 // <5=> 5 163 // <6=> 6 164 // <7=> 7 165 166 #ifndef NRFX_COMP_CONFIG_INPUT 167 #define NRFX_COMP_CONFIG_INPUT 0 168 #endif 169 170 // <o> NRFX_COMP_CONFIG_IRQ_PRIORITY - Interrupt priority 171 172 // <0=> 0 (highest) 173 // <1=> 1 174 // <2=> 2 175 // <3=> 3 176 // <4=> 4 177 // <5=> 5 178 // <6=> 6 179 // <7=> 7 180 181 #ifndef NRFX_COMP_CONFIG_IRQ_PRIORITY 182 #define NRFX_COMP_CONFIG_IRQ_PRIORITY 7 183 #endif 184 185 // <e> NRFX_COMP_CONFIG_LOG_ENABLED - Enables logging in the module. 186 //========================================================== 187 #ifndef NRFX_COMP_CONFIG_LOG_ENABLED 188 #define NRFX_COMP_CONFIG_LOG_ENABLED 0 189 #endif 190 // <o> NRFX_COMP_CONFIG_LOG_LEVEL - Default Severity level 191 192 // <0=> Off 193 // <1=> Error 194 // <2=> Warning 195 // <3=> Info 196 // <4=> Debug 197 198 #ifndef NRFX_COMP_CONFIG_LOG_LEVEL 199 #define NRFX_COMP_CONFIG_LOG_LEVEL 3 200 #endif 201 202 // <o> NRFX_COMP_CONFIG_INFO_COLOR - ANSI escape code prefix. 203 204 // <0=> Default 205 // <1=> Black 206 // <2=> Red 207 // <3=> Green 208 // <4=> Yellow 209 // <5=> Blue 210 // <6=> Magenta 211 // <7=> Cyan 212 // <8=> White 213 214 #ifndef NRFX_COMP_CONFIG_INFO_COLOR 215 #define NRFX_COMP_CONFIG_INFO_COLOR 0 216 #endif 217 218 // <o> NRFX_COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 219 220 // <0=> Default 221 // <1=> Black 222 // <2=> Red 223 // <3=> Green 224 // <4=> Yellow 225 // <5=> Blue 226 // <6=> Magenta 227 // <7=> Cyan 228 // <8=> White 229 230 #ifndef NRFX_COMP_CONFIG_DEBUG_COLOR 231 #define NRFX_COMP_CONFIG_DEBUG_COLOR 0 232 #endif 233 234 // </e> 235 236 // </e> 237 238 // <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver 239 //========================================================== 240 #ifndef NRFX_GPIOTE_ENABLED 241 #define NRFX_GPIOTE_ENABLED 1 242 #endif 243 // <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins 244 #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 245 #define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1 246 #endif 247 248 // <o> NRFX_GPIOTE_CONFIG_IRQ_PRIORITY - Interrupt priority 249 250 // <0=> 0 (highest) 251 // <1=> 1 252 // <2=> 2 253 // <3=> 3 254 // <4=> 4 255 // <5=> 5 256 // <6=> 6 257 // <7=> 7 258 259 #ifndef NRFX_GPIOTE_CONFIG_IRQ_PRIORITY 260 #define NRFX_GPIOTE_CONFIG_IRQ_PRIORITY 7 261 #endif 262 263 // <e> NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module. 264 //========================================================== 265 #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED 266 #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 267 #endif 268 // <o> NRFX_GPIOTE_CONFIG_LOG_LEVEL - Default Severity level 269 270 // <0=> Off 271 // <1=> Error 272 // <2=> Warning 273 // <3=> Info 274 // <4=> Debug 275 276 #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL 277 #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 278 #endif 279 280 // <o> NRFX_GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix. 281 282 // <0=> Default 283 // <1=> Black 284 // <2=> Red 285 // <3=> Green 286 // <4=> Yellow 287 // <5=> Blue 288 // <6=> Magenta 289 // <7=> Cyan 290 // <8=> White 291 292 #ifndef NRFX_GPIOTE_CONFIG_INFO_COLOR 293 #define NRFX_GPIOTE_CONFIG_INFO_COLOR 0 294 #endif 295 296 // <o> NRFX_GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 297 298 // <0=> Default 299 // <1=> Black 300 // <2=> Red 301 // <3=> Green 302 // <4=> Yellow 303 // <5=> Blue 304 // <6=> Magenta 305 // <7=> Cyan 306 // <8=> White 307 308 #ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR 309 #define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0 310 #endif 311 312 // </e> 313 314 // </e> 315 316 // <e> NRFX_I2S_ENABLED - nrfx_i2s - I2S peripheral driver 317 //========================================================== 318 #ifndef NRFX_I2S_ENABLED 319 #define NRFX_I2S_ENABLED 1 320 #endif 321 // <o> NRFX_I2S_CONFIG_SCK_PIN - SCK pin <0-31> 322 323 324 #ifndef NRFX_I2S_CONFIG_SCK_PIN 325 #define NRFX_I2S_CONFIG_SCK_PIN 31 326 #endif 327 328 // <o> NRFX_I2S_CONFIG_LRCK_PIN - LRCK pin <1-31> 329 330 331 #ifndef NRFX_I2S_CONFIG_LRCK_PIN 332 #define NRFX_I2S_CONFIG_LRCK_PIN 30 333 #endif 334 335 // <o> NRFX_I2S_CONFIG_MCK_PIN - MCK pin 336 #ifndef NRFX_I2S_CONFIG_MCK_PIN 337 #define NRFX_I2S_CONFIG_MCK_PIN 255 338 #endif 339 340 // <o> NRFX_I2S_CONFIG_SDOUT_PIN - SDOUT pin <0-31> 341 342 343 #ifndef NRFX_I2S_CONFIG_SDOUT_PIN 344 #define NRFX_I2S_CONFIG_SDOUT_PIN 29 345 #endif 346 347 // <o> NRFX_I2S_CONFIG_SDIN_PIN - SDIN pin <0-31> 348 349 350 #ifndef NRFX_I2S_CONFIG_SDIN_PIN 351 #define NRFX_I2S_CONFIG_SDIN_PIN 28 352 #endif 353 354 // <o> NRFX_I2S_CONFIG_MASTER - Mode 355 356 // <0=> Master 357 // <1=> Slave 358 359 #ifndef NRFX_I2S_CONFIG_MASTER 360 #define NRFX_I2S_CONFIG_MASTER 0 361 #endif 362 363 // <o> NRFX_I2S_CONFIG_FORMAT - Format 364 365 // <0=> I2S 366 // <1=> Aligned 367 368 #ifndef NRFX_I2S_CONFIG_FORMAT 369 #define NRFX_I2S_CONFIG_FORMAT 0 370 #endif 371 372 // <o> NRFX_I2S_CONFIG_ALIGN - Alignment 373 374 // <0=> Left 375 // <1=> Right 376 377 #ifndef NRFX_I2S_CONFIG_ALIGN 378 #define NRFX_I2S_CONFIG_ALIGN 0 379 #endif 380 381 // <o> NRFX_I2S_CONFIG_SWIDTH - Sample width (bits) 382 383 // <0=> 8 384 // <1=> 16 385 // <2=> 24 386 387 #ifndef NRFX_I2S_CONFIG_SWIDTH 388 #define NRFX_I2S_CONFIG_SWIDTH 1 389 #endif 390 391 // <o> NRFX_I2S_CONFIG_CHANNELS - Channels 392 393 // <0=> Stereo 394 // <1=> Left 395 // <2=> Right 396 397 #ifndef NRFX_I2S_CONFIG_CHANNELS 398 #define NRFX_I2S_CONFIG_CHANNELS 1 399 #endif 400 401 // <o> NRFX_I2S_CONFIG_MCK_SETUP - MCK behavior 402 403 // <0=> Disabled 404 // <2147483648=> 32MHz/2 405 // <1342177280=> 32MHz/3 406 // <1073741824=> 32MHz/4 407 // <805306368=> 32MHz/5 408 // <671088640=> 32MHz/6 409 // <536870912=> 32MHz/8 410 // <402653184=> 32MHz/10 411 // <369098752=> 32MHz/11 412 // <285212672=> 32MHz/15 413 // <268435456=> 32MHz/16 414 // <201326592=> 32MHz/21 415 // <184549376=> 32MHz/23 416 // <142606336=> 32MHz/30 417 // <138412032=> 32MHz/31 418 // <134217728=> 32MHz/32 419 // <100663296=> 32MHz/42 420 // <68157440=> 32MHz/63 421 // <34340864=> 32MHz/125 422 423 #ifndef NRFX_I2S_CONFIG_MCK_SETUP 424 #define NRFX_I2S_CONFIG_MCK_SETUP 536870912 425 #endif 426 427 // <o> NRFX_I2S_CONFIG_RATIO - MCK/LRCK ratio 428 429 // <0=> 32x 430 // <1=> 48x 431 // <2=> 64x 432 // <3=> 96x 433 // <4=> 128x 434 // <5=> 192x 435 // <6=> 256x 436 // <7=> 384x 437 // <8=> 512x 438 439 #ifndef NRFX_I2S_CONFIG_RATIO 440 #define NRFX_I2S_CONFIG_RATIO 5 441 #endif 442 443 // <o> NRFX_I2S_CONFIG_IRQ_PRIORITY - Interrupt priority 444 445 // <0=> 0 (highest) 446 // <1=> 1 447 // <2=> 2 448 // <3=> 3 449 // <4=> 4 450 // <5=> 5 451 // <6=> 6 452 // <7=> 7 453 454 #ifndef NRFX_I2S_CONFIG_IRQ_PRIORITY 455 #define NRFX_I2S_CONFIG_IRQ_PRIORITY 7 456 #endif 457 458 // <e> NRFX_I2S_CONFIG_LOG_ENABLED - Enables logging in the module. 459 //========================================================== 460 #ifndef NRFX_I2S_CONFIG_LOG_ENABLED 461 #define NRFX_I2S_CONFIG_LOG_ENABLED 0 462 #endif 463 // <o> NRFX_I2S_CONFIG_LOG_LEVEL - Default Severity level 464 465 // <0=> Off 466 // <1=> Error 467 // <2=> Warning 468 // <3=> Info 469 // <4=> Debug 470 471 #ifndef NRFX_I2S_CONFIG_LOG_LEVEL 472 #define NRFX_I2S_CONFIG_LOG_LEVEL 3 473 #endif 474 475 // <o> NRFX_I2S_CONFIG_INFO_COLOR - ANSI escape code prefix. 476 477 // <0=> Default 478 // <1=> Black 479 // <2=> Red 480 // <3=> Green 481 // <4=> Yellow 482 // <5=> Blue 483 // <6=> Magenta 484 // <7=> Cyan 485 // <8=> White 486 487 #ifndef NRFX_I2S_CONFIG_INFO_COLOR 488 #define NRFX_I2S_CONFIG_INFO_COLOR 0 489 #endif 490 491 // <o> NRFX_I2S_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 492 493 // <0=> Default 494 // <1=> Black 495 // <2=> Red 496 // <3=> Green 497 // <4=> Yellow 498 // <5=> Blue 499 // <6=> Magenta 500 // <7=> Cyan 501 // <8=> White 502 503 #ifndef NRFX_I2S_CONFIG_DEBUG_COLOR 504 #define NRFX_I2S_CONFIG_DEBUG_COLOR 0 505 #endif 506 507 // </e> 508 509 // </e> 510 511 // <e> NRFX_LPCOMP_ENABLED - nrfx_lpcomp - LPCOMP peripheral driver 512 //========================================================== 513 #ifndef NRFX_LPCOMP_ENABLED 514 #define NRFX_LPCOMP_ENABLED 1 515 #endif 516 // <o> NRFX_LPCOMP_CONFIG_REFERENCE - Reference voltage 517 518 // <0=> Supply 1/8 519 // <1=> Supply 2/8 520 // <2=> Supply 3/8 521 // <3=> Supply 4/8 522 // <4=> Supply 5/8 523 // <5=> Supply 6/8 524 // <6=> Supply 7/8 525 // <8=> Supply 1/16 (nRF52) 526 // <9=> Supply 3/16 (nRF52) 527 // <10=> Supply 5/16 (nRF52) 528 // <11=> Supply 7/16 (nRF52) 529 // <12=> Supply 9/16 (nRF52) 530 // <13=> Supply 11/16 (nRF52) 531 // <14=> Supply 13/16 (nRF52) 532 // <15=> Supply 15/16 (nRF52) 533 // <7=> External Ref 0 534 // <65543=> External Ref 1 535 536 #ifndef NRFX_LPCOMP_CONFIG_REFERENCE 537 #define NRFX_LPCOMP_CONFIG_REFERENCE 3 538 #endif 539 540 // <o> NRFX_LPCOMP_CONFIG_DETECTION - Detection 541 542 // <0=> Crossing 543 // <1=> Up 544 // <2=> Down 545 546 #ifndef NRFX_LPCOMP_CONFIG_DETECTION 547 #define NRFX_LPCOMP_CONFIG_DETECTION 2 548 #endif 549 550 // <o> NRFX_LPCOMP_CONFIG_INPUT - Analog input 551 552 // <0=> 0 553 // <1=> 1 554 // <2=> 2 555 // <3=> 3 556 // <4=> 4 557 // <5=> 5 558 // <6=> 6 559 // <7=> 7 560 561 #ifndef NRFX_LPCOMP_CONFIG_INPUT 562 #define NRFX_LPCOMP_CONFIG_INPUT 0 563 #endif 564 565 // <q> NRFX_LPCOMP_CONFIG_HYST - Hysteresis 566 567 568 #ifndef NRFX_LPCOMP_CONFIG_HYST 569 #define NRFX_LPCOMP_CONFIG_HYST 0 570 #endif 571 572 // <o> NRFX_LPCOMP_CONFIG_IRQ_PRIORITY - Interrupt priority 573 574 // <0=> 0 (highest) 575 // <1=> 1 576 // <2=> 2 577 // <3=> 3 578 // <4=> 4 579 // <5=> 5 580 // <6=> 6 581 // <7=> 7 582 583 #ifndef NRFX_LPCOMP_CONFIG_IRQ_PRIORITY 584 #define NRFX_LPCOMP_CONFIG_IRQ_PRIORITY 7 585 #endif 586 587 // <e> NRFX_LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module. 588 //========================================================== 589 #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED 590 #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 591 #endif 592 // <o> NRFX_LPCOMP_CONFIG_LOG_LEVEL - Default Severity level 593 594 // <0=> Off 595 // <1=> Error 596 // <2=> Warning 597 // <3=> Info 598 // <4=> Debug 599 600 #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL 601 #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3 602 #endif 603 604 // <o> NRFX_LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix. 605 606 // <0=> Default 607 // <1=> Black 608 // <2=> Red 609 // <3=> Green 610 // <4=> Yellow 611 // <5=> Blue 612 // <6=> Magenta 613 // <7=> Cyan 614 // <8=> White 615 616 #ifndef NRFX_LPCOMP_CONFIG_INFO_COLOR 617 #define NRFX_LPCOMP_CONFIG_INFO_COLOR 0 618 #endif 619 620 // <o> NRFX_LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 621 622 // <0=> Default 623 // <1=> Black 624 // <2=> Red 625 // <3=> Green 626 // <4=> Yellow 627 // <5=> Blue 628 // <6=> Magenta 629 // <7=> Cyan 630 // <8=> White 631 632 #ifndef NRFX_LPCOMP_CONFIG_DEBUG_COLOR 633 #define NRFX_LPCOMP_CONFIG_DEBUG_COLOR 0 634 #endif 635 636 // </e> 637 638 // </e> 639 640 // <e> NRFX_NFCT_ENABLED - nrfx_nfct - NFCT peripheral driver 641 //========================================================== 642 #ifndef NRFX_NFCT_ENABLED 643 #define NRFX_NFCT_ENABLED 1 644 #endif 645 // <o> NRFX_NFCT_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_NFCT_CONFIG_IRQ_PRIORITY 657 #define NRFX_NFCT_CONFIG_IRQ_PRIORITY 7 658 #endif 659 660 // <e> NRFX_NFCT_CONFIG_LOG_ENABLED - Enables logging in the module. 661 //========================================================== 662 #ifndef NRFX_NFCT_CONFIG_LOG_ENABLED 663 #define NRFX_NFCT_CONFIG_LOG_ENABLED 0 664 #endif 665 // <o> NRFX_NFCT_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_NFCT_CONFIG_LOG_LEVEL 674 #define NRFX_NFCT_CONFIG_LOG_LEVEL 3 675 #endif 676 677 // <o> NRFX_NFCT_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_NFCT_CONFIG_INFO_COLOR 690 #define NRFX_NFCT_CONFIG_INFO_COLOR 0 691 #endif 692 693 // <o> NRFX_NFCT_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_NFCT_CONFIG_DEBUG_COLOR 706 #define NRFX_NFCT_CONFIG_DEBUG_COLOR 0 707 #endif 708 709 // </e> 710 711 // </e> 712 713 // <e> NRFX_PDM_ENABLED - nrfx_pdm - PDM peripheral driver 714 //========================================================== 715 #ifndef NRFX_PDM_ENABLED 716 #define NRFX_PDM_ENABLED 1 717 #endif 718 // <o> NRFX_PDM_CONFIG_MODE - Mode 719 720 // <0=> Stereo 721 // <1=> Mono 722 723 #ifndef NRFX_PDM_CONFIG_MODE 724 #define NRFX_PDM_CONFIG_MODE 1 725 #endif 726 727 // <o> NRFX_PDM_CONFIG_EDGE - Edge 728 729 // <0=> Left falling 730 // <1=> Left rising 731 732 #ifndef NRFX_PDM_CONFIG_EDGE 733 #define NRFX_PDM_CONFIG_EDGE 0 734 #endif 735 736 // <o> NRFX_PDM_CONFIG_CLOCK_FREQ - Clock frequency 737 738 // <134217728=> 1000k 739 // <138412032=> 1032k (default) 740 // <142606336=> 1067k 741 742 #ifndef NRFX_PDM_CONFIG_CLOCK_FREQ 743 #define NRFX_PDM_CONFIG_CLOCK_FREQ 138412032 744 #endif 745 746 // <o> NRFX_PDM_CONFIG_IRQ_PRIORITY - Interrupt priority 747 748 // <0=> 0 (highest) 749 // <1=> 1 750 // <2=> 2 751 // <3=> 3 752 // <4=> 4 753 // <5=> 5 754 // <6=> 6 755 // <7=> 7 756 757 #ifndef NRFX_PDM_CONFIG_IRQ_PRIORITY 758 #define NRFX_PDM_CONFIG_IRQ_PRIORITY 7 759 #endif 760 761 // <e> NRFX_PDM_CONFIG_LOG_ENABLED - Enables logging in the module. 762 //========================================================== 763 #ifndef NRFX_PDM_CONFIG_LOG_ENABLED 764 #define NRFX_PDM_CONFIG_LOG_ENABLED 0 765 #endif 766 // <o> NRFX_PDM_CONFIG_LOG_LEVEL - Default Severity level 767 768 // <0=> Off 769 // <1=> Error 770 // <2=> Warning 771 // <3=> Info 772 // <4=> Debug 773 774 #ifndef NRFX_PDM_CONFIG_LOG_LEVEL 775 #define NRFX_PDM_CONFIG_LOG_LEVEL 3 776 #endif 777 778 // <o> NRFX_PDM_CONFIG_INFO_COLOR - ANSI escape code prefix. 779 780 // <0=> Default 781 // <1=> Black 782 // <2=> Red 783 // <3=> Green 784 // <4=> Yellow 785 // <5=> Blue 786 // <6=> Magenta 787 // <7=> Cyan 788 // <8=> White 789 790 #ifndef NRFX_PDM_CONFIG_INFO_COLOR 791 #define NRFX_PDM_CONFIG_INFO_COLOR 0 792 #endif 793 794 // <o> NRFX_PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 795 796 // <0=> Default 797 // <1=> Black 798 // <2=> Red 799 // <3=> Green 800 // <4=> Yellow 801 // <5=> Blue 802 // <6=> Magenta 803 // <7=> Cyan 804 // <8=> White 805 806 #ifndef NRFX_PDM_CONFIG_DEBUG_COLOR 807 #define NRFX_PDM_CONFIG_DEBUG_COLOR 0 808 #endif 809 810 // </e> 811 812 // </e> 813 814 // <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver 815 //========================================================== 816 #ifndef NRFX_POWER_ENABLED 817 #define NRFX_POWER_ENABLED 1 818 #endif 819 // <o> NRFX_POWER_CONFIG_IRQ_PRIORITY - Interrupt priority 820 821 // <0=> 0 (highest) 822 // <1=> 1 823 // <2=> 2 824 // <3=> 3 825 // <4=> 4 826 // <5=> 5 827 // <6=> 6 828 // <7=> 7 829 830 #ifndef NRFX_POWER_CONFIG_IRQ_PRIORITY 831 #define NRFX_POWER_CONFIG_IRQ_PRIORITY 7 832 #endif 833 834 // <q> NRFX_POWER_CONFIG_DEFAULT_DCDCEN - The default configuration of main DCDC regulator 835 836 837 // <i> This settings means only that components for DCDC regulator are installed and it can be enabled. 838 839 #ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCEN 840 #define NRFX_POWER_CONFIG_DEFAULT_DCDCEN 0 841 #endif 842 843 // <q> NRFX_POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator 844 845 846 // <i> This settings means only that components for DCDC regulator are installed and it can be enabled. 847 848 #ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCENHV 849 #define NRFX_POWER_CONFIG_DEFAULT_DCDCENHV 0 850 #endif 851 852 // </e> 853 854 // <e> NRFX_PPI_ENABLED - nrfx_ppi - PPI peripheral allocator 855 //========================================================== 856 #ifndef NRFX_PPI_ENABLED 857 #define NRFX_PPI_ENABLED 1 858 #endif 859 // <e> NRFX_PPI_CONFIG_LOG_ENABLED - Enables logging in the module. 860 //========================================================== 861 #ifndef NRFX_PPI_CONFIG_LOG_ENABLED 862 #define NRFX_PPI_CONFIG_LOG_ENABLED 0 863 #endif 864 // <o> NRFX_PPI_CONFIG_LOG_LEVEL - Default Severity level 865 866 // <0=> Off 867 // <1=> Error 868 // <2=> Warning 869 // <3=> Info 870 // <4=> Debug 871 872 #ifndef NRFX_PPI_CONFIG_LOG_LEVEL 873 #define NRFX_PPI_CONFIG_LOG_LEVEL 3 874 #endif 875 876 // <o> NRFX_PPI_CONFIG_INFO_COLOR - ANSI escape code prefix. 877 878 // <0=> Default 879 // <1=> Black 880 // <2=> Red 881 // <3=> Green 882 // <4=> Yellow 883 // <5=> Blue 884 // <6=> Magenta 885 // <7=> Cyan 886 // <8=> White 887 888 #ifndef NRFX_PPI_CONFIG_INFO_COLOR 889 #define NRFX_PPI_CONFIG_INFO_COLOR 0 890 #endif 891 892 // <o> NRFX_PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 893 894 // <0=> Default 895 // <1=> Black 896 // <2=> Red 897 // <3=> Green 898 // <4=> Yellow 899 // <5=> Blue 900 // <6=> Magenta 901 // <7=> Cyan 902 // <8=> White 903 904 #ifndef NRFX_PPI_CONFIG_DEBUG_COLOR 905 #define NRFX_PPI_CONFIG_DEBUG_COLOR 0 906 #endif 907 908 // </e> 909 910 // </e> 911 912 // <e> NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing module 913 //========================================================== 914 #ifndef NRFX_PRS_ENABLED 915 #define NRFX_PRS_ENABLED 1 916 #endif 917 // <q> NRFX_PRS_BOX_0_ENABLED - Enables box 0 in the module. 918 919 920 #ifndef NRFX_PRS_BOX_0_ENABLED 921 #define NRFX_PRS_BOX_0_ENABLED 1 922 #endif 923 924 // <q> NRFX_PRS_BOX_1_ENABLED - Enables box 1 in the module. 925 926 927 #ifndef NRFX_PRS_BOX_1_ENABLED 928 #define NRFX_PRS_BOX_1_ENABLED 1 929 #endif 930 931 // <q> NRFX_PRS_BOX_2_ENABLED - Enables box 2 in the module. 932 933 934 #ifndef NRFX_PRS_BOX_2_ENABLED 935 #define NRFX_PRS_BOX_2_ENABLED 1 936 #endif 937 938 // <q> NRFX_PRS_BOX_3_ENABLED - Enables box 3 in the module. 939 940 941 #ifndef NRFX_PRS_BOX_3_ENABLED 942 #define NRFX_PRS_BOX_3_ENABLED 1 943 #endif 944 945 // <q> NRFX_PRS_BOX_4_ENABLED - Enables box 4 in the module. 946 947 948 #ifndef NRFX_PRS_BOX_4_ENABLED 949 #define NRFX_PRS_BOX_4_ENABLED 1 950 #endif 951 952 // <e> NRFX_PRS_CONFIG_LOG_ENABLED - Enables logging in the module. 953 //========================================================== 954 #ifndef NRFX_PRS_CONFIG_LOG_ENABLED 955 #define NRFX_PRS_CONFIG_LOG_ENABLED 0 956 #endif 957 // <o> NRFX_PRS_CONFIG_LOG_LEVEL - Default Severity level 958 959 // <0=> Off 960 // <1=> Error 961 // <2=> Warning 962 // <3=> Info 963 // <4=> Debug 964 965 #ifndef NRFX_PRS_CONFIG_LOG_LEVEL 966 #define NRFX_PRS_CONFIG_LOG_LEVEL 3 967 #endif 968 969 // <o> NRFX_PRS_CONFIG_INFO_COLOR - ANSI escape code prefix. 970 971 // <0=> Default 972 // <1=> Black 973 // <2=> Red 974 // <3=> Green 975 // <4=> Yellow 976 // <5=> Blue 977 // <6=> Magenta 978 // <7=> Cyan 979 // <8=> White 980 981 #ifndef NRFX_PRS_CONFIG_INFO_COLOR 982 #define NRFX_PRS_CONFIG_INFO_COLOR 0 983 #endif 984 985 // <o> NRFX_PRS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 986 987 // <0=> Default 988 // <1=> Black 989 // <2=> Red 990 // <3=> Green 991 // <4=> Yellow 992 // <5=> Blue 993 // <6=> Magenta 994 // <7=> Cyan 995 // <8=> White 996 997 #ifndef NRFX_PRS_CONFIG_DEBUG_COLOR 998 #define NRFX_PRS_CONFIG_DEBUG_COLOR 0 999 #endif 1000 1001 // </e> 1002 1003 // </e> 1004 1005 // <e> NRFX_PWM_ENABLED - nrfx_pwm - PWM peripheral driver 1006 //========================================================== 1007 #ifndef NRFX_PWM_ENABLED 1008 #define NRFX_PWM_ENABLED 1 1009 #endif 1010 // <q> NRFX_PWM0_ENABLED - Enable PWM0 instance 1011 1012 1013 #ifndef NRFX_PWM0_ENABLED 1014 #define NRFX_PWM0_ENABLED 1 1015 #endif 1016 1017 // <q> NRFX_PWM1_ENABLED - Enable PWM1 instance 1018 1019 1020 #ifndef NRFX_PWM1_ENABLED 1021 #define NRFX_PWM1_ENABLED 1 1022 #endif 1023 1024 // <q> NRFX_PWM2_ENABLED - Enable PWM2 instance 1025 1026 1027 #ifndef NRFX_PWM2_ENABLED 1028 #define NRFX_PWM2_ENABLED 1 1029 #endif 1030 1031 // <o> NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin <0-31> 1032 1033 1034 #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN 1035 #define NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN 31 1036 #endif 1037 1038 // <o> NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin <0-31> 1039 1040 1041 #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN 1042 #define NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN 31 1043 #endif 1044 1045 // <o> NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin <0-31> 1046 1047 1048 #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN 1049 #define NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN 31 1050 #endif 1051 1052 // <o> NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin <0-31> 1053 1054 1055 #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN 1056 #define NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN 31 1057 #endif 1058 1059 // <o> NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK - Base clock 1060 1061 // <0=> 16 MHz 1062 // <1=> 8 MHz 1063 // <2=> 4 MHz 1064 // <3=> 2 MHz 1065 // <4=> 1 MHz 1066 // <5=> 500 kHz 1067 // <6=> 250 kHz 1068 // <7=> 125 kHz 1069 1070 #ifndef NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK 1071 #define NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK 4 1072 #endif 1073 1074 // <o> NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE - Count mode 1075 1076 // <0=> Up 1077 // <1=> Up and Down 1078 1079 #ifndef NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE 1080 #define NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE 0 1081 #endif 1082 1083 // <o> NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE - Top value 1084 #ifndef NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE 1085 #define NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE 1000 1086 #endif 1087 1088 // <o> NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE - Load mode 1089 1090 // <0=> Common 1091 // <1=> Grouped 1092 // <2=> Individual 1093 // <3=> Waveform 1094 1095 #ifndef NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE 1096 #define NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE 0 1097 #endif 1098 1099 // <o> NRFX_PWM_DEFAULT_CONFIG_STEP_MODE - Step mode 1100 1101 // <0=> Auto 1102 // <1=> Triggered 1103 1104 #ifndef NRFX_PWM_DEFAULT_CONFIG_STEP_MODE 1105 #define NRFX_PWM_DEFAULT_CONFIG_STEP_MODE 0 1106 #endif 1107 1108 // <o> NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 1109 1110 // <0=> 0 (highest) 1111 // <1=> 1 1112 // <2=> 2 1113 // <3=> 3 1114 // <4=> 4 1115 // <5=> 5 1116 // <6=> 6 1117 // <7=> 7 1118 1119 #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 1120 #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 7 1121 #endif 1122 1123 // <e> NRFX_PWM_CONFIG_LOG_ENABLED - Enables logging in the module. 1124 //========================================================== 1125 #ifndef NRFX_PWM_CONFIG_LOG_ENABLED 1126 #define NRFX_PWM_CONFIG_LOG_ENABLED 0 1127 #endif 1128 // <o> NRFX_PWM_CONFIG_LOG_LEVEL - Default Severity level 1129 1130 // <0=> Off 1131 // <1=> Error 1132 // <2=> Warning 1133 // <3=> Info 1134 // <4=> Debug 1135 1136 #ifndef NRFX_PWM_CONFIG_LOG_LEVEL 1137 #define NRFX_PWM_CONFIG_LOG_LEVEL 3 1138 #endif 1139 1140 // <o> NRFX_PWM_CONFIG_INFO_COLOR - ANSI escape code prefix. 1141 1142 // <0=> Default 1143 // <1=> Black 1144 // <2=> Red 1145 // <3=> Green 1146 // <4=> Yellow 1147 // <5=> Blue 1148 // <6=> Magenta 1149 // <7=> Cyan 1150 // <8=> White 1151 1152 #ifndef NRFX_PWM_CONFIG_INFO_COLOR 1153 #define NRFX_PWM_CONFIG_INFO_COLOR 0 1154 #endif 1155 1156 // <o> NRFX_PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1157 1158 // <0=> Default 1159 // <1=> Black 1160 // <2=> Red 1161 // <3=> Green 1162 // <4=> Yellow 1163 // <5=> Blue 1164 // <6=> Magenta 1165 // <7=> Cyan 1166 // <8=> White 1167 1168 #ifndef NRFX_PWM_CONFIG_DEBUG_COLOR 1169 #define NRFX_PWM_CONFIG_DEBUG_COLOR 0 1170 #endif 1171 1172 // </e> 1173 1174 // <e> NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 Anomaly 109 workaround for PWM. 1175 1176 // <i> The workaround uses interrupts to wake up the CPU and ensure 1177 // <i> it is active when PWM is about to start a DMA transfer. For 1178 // <i> initial transfer, done when a playback is started via PPI, 1179 // <i> a specific EGU instance is used to generate the interrupt. 1180 // <i> During the playback, the PWM interrupt triggered on SEQEND 1181 // <i> event of a preceding sequence is used to protect the transfer 1182 // <i> done for the next sequence to be played. 1183 //========================================================== 1184 #ifndef NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 1185 #define NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0 1186 #endif 1187 // <o> NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE - EGU instance used by the nRF52 Anomaly 109 workaround for PWM. 1188 1189 // <0=> EGU0 1190 // <1=> EGU1 1191 // <2=> EGU2 1192 // <3=> EGU3 1193 // <4=> EGU4 1194 // <5=> EGU5 1195 1196 #ifndef NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE 1197 #define NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE 5 1198 #endif 1199 1200 // </e> 1201 1202 // </e> 1203 1204 // <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver 1205 //========================================================== 1206 #ifndef NRFX_QDEC_ENABLED 1207 #define NRFX_QDEC_ENABLED 1 1208 #endif 1209 // <o> NRFX_QDEC_CONFIG_REPORTPER - Report period 1210 1211 // <0=> 10 Samples 1212 // <1=> 40 Samples 1213 // <2=> 80 Samples 1214 // <3=> 120 Samples 1215 // <4=> 160 Samples 1216 // <5=> 200 Samples 1217 // <6=> 240 Samples 1218 // <7=> 280 Samples 1219 1220 #ifndef NRFX_QDEC_CONFIG_REPORTPER 1221 #define NRFX_QDEC_CONFIG_REPORTPER 0 1222 #endif 1223 1224 // <o> NRFX_QDEC_CONFIG_SAMPLEPER - Sample period 1225 1226 // <0=> 128 us 1227 // <1=> 256 us 1228 // <2=> 512 us 1229 // <3=> 1024 us 1230 // <4=> 2048 us 1231 // <5=> 4096 us 1232 // <6=> 8192 us 1233 // <7=> 16384 us 1234 1235 #ifndef NRFX_QDEC_CONFIG_SAMPLEPER 1236 #define NRFX_QDEC_CONFIG_SAMPLEPER 7 1237 #endif 1238 1239 // <o> NRFX_QDEC_CONFIG_PIO_A - A pin <0-31> 1240 1241 1242 #ifndef NRFX_QDEC_CONFIG_PIO_A 1243 #define NRFX_QDEC_CONFIG_PIO_A 31 1244 #endif 1245 1246 // <o> NRFX_QDEC_CONFIG_PIO_B - B pin <0-31> 1247 1248 1249 #ifndef NRFX_QDEC_CONFIG_PIO_B 1250 #define NRFX_QDEC_CONFIG_PIO_B 31 1251 #endif 1252 1253 // <o> NRFX_QDEC_CONFIG_PIO_LED - LED pin <0-31> 1254 1255 1256 #ifndef NRFX_QDEC_CONFIG_PIO_LED 1257 #define NRFX_QDEC_CONFIG_PIO_LED 31 1258 #endif 1259 1260 // <o> NRFX_QDEC_CONFIG_LEDPRE - LED pre 1261 #ifndef NRFX_QDEC_CONFIG_LEDPRE 1262 #define NRFX_QDEC_CONFIG_LEDPRE 511 1263 #endif 1264 1265 // <o> NRFX_QDEC_CONFIG_LEDPOL - LED polarity 1266 1267 // <0=> Active low 1268 // <1=> Active high 1269 1270 #ifndef NRFX_QDEC_CONFIG_LEDPOL 1271 #define NRFX_QDEC_CONFIG_LEDPOL 1 1272 #endif 1273 1274 // <q> NRFX_QDEC_CONFIG_DBFEN - Debouncing enable 1275 1276 1277 #ifndef NRFX_QDEC_CONFIG_DBFEN 1278 #define NRFX_QDEC_CONFIG_DBFEN 0 1279 #endif 1280 1281 // <q> NRFX_QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable 1282 1283 1284 #ifndef NRFX_QDEC_CONFIG_SAMPLE_INTEN 1285 #define NRFX_QDEC_CONFIG_SAMPLE_INTEN 0 1286 #endif 1287 1288 // <o> NRFX_QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority 1289 1290 // <0=> 0 (highest) 1291 // <1=> 1 1292 // <2=> 2 1293 // <3=> 3 1294 // <4=> 4 1295 // <5=> 5 1296 // <6=> 6 1297 // <7=> 7 1298 1299 #ifndef NRFX_QDEC_CONFIG_IRQ_PRIORITY 1300 #define NRFX_QDEC_CONFIG_IRQ_PRIORITY 7 1301 #endif 1302 1303 // <e> NRFX_QDEC_CONFIG_LOG_ENABLED - Enables logging in the module. 1304 //========================================================== 1305 #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED 1306 #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 1307 #endif 1308 // <o> NRFX_QDEC_CONFIG_LOG_LEVEL - Default Severity level 1309 1310 // <0=> Off 1311 // <1=> Error 1312 // <2=> Warning 1313 // <3=> Info 1314 // <4=> Debug 1315 1316 #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL 1317 #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 1318 #endif 1319 1320 // <o> NRFX_QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix. 1321 1322 // <0=> Default 1323 // <1=> Black 1324 // <2=> Red 1325 // <3=> Green 1326 // <4=> Yellow 1327 // <5=> Blue 1328 // <6=> Magenta 1329 // <7=> Cyan 1330 // <8=> White 1331 1332 #ifndef NRFX_QDEC_CONFIG_INFO_COLOR 1333 #define NRFX_QDEC_CONFIG_INFO_COLOR 0 1334 #endif 1335 1336 // <o> NRFX_QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1337 1338 // <0=> Default 1339 // <1=> Black 1340 // <2=> Red 1341 // <3=> Green 1342 // <4=> Yellow 1343 // <5=> Blue 1344 // <6=> Magenta 1345 // <7=> Cyan 1346 // <8=> White 1347 1348 #ifndef NRFX_QDEC_CONFIG_DEBUG_COLOR 1349 #define NRFX_QDEC_CONFIG_DEBUG_COLOR 0 1350 #endif 1351 1352 // </e> 1353 1354 // </e> 1355 1356 // <e> NRFX_RNG_ENABLED - nrfx_rng - RNG peripheral driver 1357 //========================================================== 1358 #ifndef NRFX_RNG_ENABLED 1359 #define NRFX_RNG_ENABLED 1 1360 #endif 1361 // <q> NRFX_RNG_CONFIG_ERROR_CORRECTION - Error correction 1362 1363 1364 #ifndef NRFX_RNG_CONFIG_ERROR_CORRECTION 1365 #define NRFX_RNG_CONFIG_ERROR_CORRECTION 1 1366 #endif 1367 1368 // <o> NRFX_RNG_CONFIG_IRQ_PRIORITY - Interrupt priority 1369 1370 // <0=> 0 (highest) 1371 // <1=> 1 1372 // <2=> 2 1373 // <3=> 3 1374 // <4=> 4 1375 // <5=> 5 1376 // <6=> 6 1377 // <7=> 7 1378 1379 #ifndef NRFX_RNG_CONFIG_IRQ_PRIORITY 1380 #define NRFX_RNG_CONFIG_IRQ_PRIORITY 7 1381 #endif 1382 1383 // <e> NRFX_RNG_CONFIG_LOG_ENABLED - Enables logging in the module. 1384 //========================================================== 1385 #ifndef NRFX_RNG_CONFIG_LOG_ENABLED 1386 #define NRFX_RNG_CONFIG_LOG_ENABLED 0 1387 #endif 1388 // <o> NRFX_RNG_CONFIG_LOG_LEVEL - Default Severity level 1389 1390 // <0=> Off 1391 // <1=> Error 1392 // <2=> Warning 1393 // <3=> Info 1394 // <4=> Debug 1395 1396 #ifndef NRFX_RNG_CONFIG_LOG_LEVEL 1397 #define NRFX_RNG_CONFIG_LOG_LEVEL 3 1398 #endif 1399 1400 // <o> NRFX_RNG_CONFIG_INFO_COLOR - ANSI escape code prefix. 1401 1402 // <0=> Default 1403 // <1=> Black 1404 // <2=> Red 1405 // <3=> Green 1406 // <4=> Yellow 1407 // <5=> Blue 1408 // <6=> Magenta 1409 // <7=> Cyan 1410 // <8=> White 1411 1412 #ifndef NRFX_RNG_CONFIG_INFO_COLOR 1413 #define NRFX_RNG_CONFIG_INFO_COLOR 0 1414 #endif 1415 1416 // <o> NRFX_RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1417 1418 // <0=> Default 1419 // <1=> Black 1420 // <2=> Red 1421 // <3=> Green 1422 // <4=> Yellow 1423 // <5=> Blue 1424 // <6=> Magenta 1425 // <7=> Cyan 1426 // <8=> White 1427 1428 #ifndef NRFX_RNG_CONFIG_DEBUG_COLOR 1429 #define NRFX_RNG_CONFIG_DEBUG_COLOR 0 1430 #endif 1431 1432 // </e> 1433 1434 // </e> 1435 1436 // <e> NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver 1437 //========================================================== 1438 #ifndef NRFX_RTC_ENABLED 1439 #define NRFX_RTC_ENABLED 1 1440 #endif 1441 // <q> NRFX_RTC0_ENABLED - Enable RTC0 instance 1442 1443 1444 #ifndef NRFX_RTC0_ENABLED 1445 #define NRFX_RTC0_ENABLED 1 1446 #endif 1447 1448 // <q> NRFX_RTC1_ENABLED - Enable RTC1 instance 1449 1450 1451 #ifndef NRFX_RTC1_ENABLED 1452 #define NRFX_RTC1_ENABLED 1 1453 #endif 1454 1455 // <q> NRFX_RTC2_ENABLED - Enable RTC2 instance 1456 1457 1458 #ifndef NRFX_RTC2_ENABLED 1459 #define NRFX_RTC2_ENABLED 1 1460 #endif 1461 1462 // <o> NRFX_RTC_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt 1463 #ifndef NRFX_RTC_MAXIMUM_LATENCY_US 1464 #define NRFX_RTC_MAXIMUM_LATENCY_US 2000 1465 #endif 1466 1467 // <o> NRFX_RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768> 1468 1469 1470 #ifndef NRFX_RTC_DEFAULT_CONFIG_FREQUENCY 1471 #define NRFX_RTC_DEFAULT_CONFIG_FREQUENCY 32768 1472 #endif 1473 1474 // <q> NRFX_RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering 1475 1476 1477 #ifndef NRFX_RTC_DEFAULT_CONFIG_RELIABLE 1478 #define NRFX_RTC_DEFAULT_CONFIG_RELIABLE 0 1479 #endif 1480 1481 // <o> NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 1482 1483 // <0=> 0 (highest) 1484 // <1=> 1 1485 // <2=> 2 1486 // <3=> 3 1487 // <4=> 4 1488 // <5=> 5 1489 // <6=> 6 1490 // <7=> 7 1491 1492 #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 1493 #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 7 1494 #endif 1495 1496 // <e> NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module. 1497 //========================================================== 1498 #ifndef NRFX_RTC_CONFIG_LOG_ENABLED 1499 #define NRFX_RTC_CONFIG_LOG_ENABLED 0 1500 #endif 1501 // <o> NRFX_RTC_CONFIG_LOG_LEVEL - Default Severity level 1502 1503 // <0=> Off 1504 // <1=> Error 1505 // <2=> Warning 1506 // <3=> Info 1507 // <4=> Debug 1508 1509 #ifndef NRFX_RTC_CONFIG_LOG_LEVEL 1510 #define NRFX_RTC_CONFIG_LOG_LEVEL 3 1511 #endif 1512 1513 // <o> NRFX_RTC_CONFIG_INFO_COLOR - ANSI escape code prefix. 1514 1515 // <0=> Default 1516 // <1=> Black 1517 // <2=> Red 1518 // <3=> Green 1519 // <4=> Yellow 1520 // <5=> Blue 1521 // <6=> Magenta 1522 // <7=> Cyan 1523 // <8=> White 1524 1525 #ifndef NRFX_RTC_CONFIG_INFO_COLOR 1526 #define NRFX_RTC_CONFIG_INFO_COLOR 0 1527 #endif 1528 1529 // <o> NRFX_RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1530 1531 // <0=> Default 1532 // <1=> Black 1533 // <2=> Red 1534 // <3=> Green 1535 // <4=> Yellow 1536 // <5=> Blue 1537 // <6=> Magenta 1538 // <7=> Cyan 1539 // <8=> White 1540 1541 #ifndef NRFX_RTC_CONFIG_DEBUG_COLOR 1542 #define NRFX_RTC_CONFIG_DEBUG_COLOR 0 1543 #endif 1544 1545 // </e> 1546 1547 // </e> 1548 1549 // <e> NRFX_SAADC_ENABLED - nrfx_saadc - SAADC peripheral driver 1550 //========================================================== 1551 #ifndef NRFX_SAADC_ENABLED 1552 #define NRFX_SAADC_ENABLED 1 1553 #endif 1554 // <o> NRFX_SAADC_CONFIG_RESOLUTION - Resolution 1555 1556 // <0=> 8 bit 1557 // <1=> 10 bit 1558 // <2=> 12 bit 1559 // <3=> 14 bit 1560 1561 #ifndef NRFX_SAADC_CONFIG_RESOLUTION 1562 #define NRFX_SAADC_CONFIG_RESOLUTION 1 1563 #endif 1564 1565 // <o> NRFX_SAADC_CONFIG_OVERSAMPLE - Sample period 1566 1567 // <0=> Disabled 1568 // <1=> 2x 1569 // <2=> 4x 1570 // <3=> 8x 1571 // <4=> 16x 1572 // <5=> 32x 1573 // <6=> 64x 1574 // <7=> 128x 1575 // <8=> 256x 1576 1577 #ifndef NRFX_SAADC_CONFIG_OVERSAMPLE 1578 #define NRFX_SAADC_CONFIG_OVERSAMPLE 0 1579 #endif 1580 1581 // <q> NRFX_SAADC_CONFIG_LP_MODE - Enabling low power mode 1582 1583 1584 #ifndef NRFX_SAADC_CONFIG_LP_MODE 1585 #define NRFX_SAADC_CONFIG_LP_MODE 0 1586 #endif 1587 1588 // <o> NRFX_SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority 1589 1590 // <0=> 0 (highest) 1591 // <1=> 1 1592 // <2=> 2 1593 // <3=> 3 1594 // <4=> 4 1595 // <5=> 5 1596 // <6=> 6 1597 // <7=> 7 1598 1599 #ifndef NRFX_SAADC_CONFIG_IRQ_PRIORITY 1600 #define NRFX_SAADC_CONFIG_IRQ_PRIORITY 7 1601 #endif 1602 1603 // <e> NRFX_SAADC_CONFIG_LOG_ENABLED - Enables logging in the module. 1604 //========================================================== 1605 #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED 1606 #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 1607 #endif 1608 // <o> NRFX_SAADC_CONFIG_LOG_LEVEL - Default Severity level 1609 1610 // <0=> Off 1611 // <1=> Error 1612 // <2=> Warning 1613 // <3=> Info 1614 // <4=> Debug 1615 1616 #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL 1617 #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 1618 #endif 1619 1620 // <o> NRFX_SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix. 1621 1622 // <0=> Default 1623 // <1=> Black 1624 // <2=> Red 1625 // <3=> Green 1626 // <4=> Yellow 1627 // <5=> Blue 1628 // <6=> Magenta 1629 // <7=> Cyan 1630 // <8=> White 1631 1632 #ifndef NRFX_SAADC_CONFIG_INFO_COLOR 1633 #define NRFX_SAADC_CONFIG_INFO_COLOR 0 1634 #endif 1635 1636 // <o> NRFX_SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1637 1638 // <0=> Default 1639 // <1=> Black 1640 // <2=> Red 1641 // <3=> Green 1642 // <4=> Yellow 1643 // <5=> Blue 1644 // <6=> Magenta 1645 // <7=> Cyan 1646 // <8=> White 1647 1648 #ifndef NRFX_SAADC_CONFIG_DEBUG_COLOR 1649 #define NRFX_SAADC_CONFIG_DEBUG_COLOR 0 1650 #endif 1651 1652 // </e> 1653 1654 // </e> 1655 1656 // <e> NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver 1657 //========================================================== 1658 #ifndef NRFX_SPIM_ENABLED 1659 #define NRFX_SPIM_ENABLED 1 1660 #endif 1661 // <q> NRFX_SPIM0_ENABLED - Enable SPIM0 instance 1662 1663 1664 #ifndef NRFX_SPIM0_ENABLED 1665 #define NRFX_SPIM0_ENABLED 1 1666 #endif 1667 1668 // <q> NRFX_SPIM1_ENABLED - Enable SPIM1 instance 1669 1670 1671 #ifndef NRFX_SPIM1_ENABLED 1672 #define NRFX_SPIM1_ENABLED 1 1673 #endif 1674 1675 // <q> NRFX_SPIM2_ENABLED - Enable SPIM2 instance 1676 1677 1678 #ifndef NRFX_SPIM2_ENABLED 1679 #define NRFX_SPIM2_ENABLED 1 1680 #endif 1681 1682 // <o> NRFX_SPIM_MISO_PULL_CFG - MISO pin pull configuration. 1683 1684 // <0=> NRF_GPIO_PIN_NOPULL 1685 // <1=> NRF_GPIO_PIN_PULLDOWN 1686 // <3=> NRF_GPIO_PIN_PULLUP 1687 1688 #ifndef NRFX_SPIM_MISO_PULL_CFG 1689 #define NRFX_SPIM_MISO_PULL_CFG 1 1690 #endif 1691 1692 // <o> NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 1693 1694 // <0=> 0 (highest) 1695 // <1=> 1 1696 // <2=> 2 1697 // <3=> 3 1698 // <4=> 4 1699 // <5=> 5 1700 // <6=> 6 1701 // <7=> 7 1702 1703 #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 1704 #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 7 1705 #endif 1706 1707 // <e> NRFX_SPIM_CONFIG_LOG_ENABLED - Enables logging in the module. 1708 //========================================================== 1709 #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED 1710 #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 1711 #endif 1712 // <o> NRFX_SPIM_CONFIG_LOG_LEVEL - Default Severity level 1713 1714 // <0=> Off 1715 // <1=> Error 1716 // <2=> Warning 1717 // <3=> Info 1718 // <4=> Debug 1719 1720 #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL 1721 #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 1722 #endif 1723 1724 // <o> NRFX_SPIM_CONFIG_INFO_COLOR - ANSI escape code prefix. 1725 1726 // <0=> Default 1727 // <1=> Black 1728 // <2=> Red 1729 // <3=> Green 1730 // <4=> Yellow 1731 // <5=> Blue 1732 // <6=> Magenta 1733 // <7=> Cyan 1734 // <8=> White 1735 1736 #ifndef NRFX_SPIM_CONFIG_INFO_COLOR 1737 #define NRFX_SPIM_CONFIG_INFO_COLOR 0 1738 #endif 1739 1740 // <o> NRFX_SPIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1741 1742 // <0=> Default 1743 // <1=> Black 1744 // <2=> Red 1745 // <3=> Green 1746 // <4=> Yellow 1747 // <5=> Blue 1748 // <6=> Magenta 1749 // <7=> Cyan 1750 // <8=> White 1751 1752 #ifndef NRFX_SPIM_CONFIG_DEBUG_COLOR 1753 #define NRFX_SPIM_CONFIG_DEBUG_COLOR 0 1754 #endif 1755 1756 // </e> 1757 1758 // <q> NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 anomaly 109 workaround for SPIM. 1759 1760 1761 // <i> The workaround uses interrupts to wake up the CPU by catching 1762 // <i> a start event of zero-length transmission to start the clock. This 1763 // <i> ensures that the DMA transfer will be executed without issues and 1764 // <i> that the proper transfer will be started. See more in the Errata 1765 // <i> document or Anomaly 109 Addendum located at 1766 // <i> https://infocenter.nordicsemi.com/ 1767 1768 #ifndef NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 1769 #define NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0 1770 #endif 1771 1772 // </e> 1773 1774 // <e> NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver 1775 //========================================================== 1776 #ifndef NRFX_SPIS_ENABLED 1777 #define NRFX_SPIS_ENABLED 1 1778 #endif 1779 // <q> NRFX_SPIS0_ENABLED - Enable SPIS0 instance 1780 1781 1782 #ifndef NRFX_SPIS0_ENABLED 1783 #define NRFX_SPIS0_ENABLED 1 1784 #endif 1785 1786 // <q> NRFX_SPIS1_ENABLED - Enable SPIS1 instance 1787 1788 1789 #ifndef NRFX_SPIS1_ENABLED 1790 #define NRFX_SPIS1_ENABLED 1 1791 #endif 1792 1793 // <q> NRFX_SPIS2_ENABLED - Enable SPIS2 instance 1794 1795 1796 #ifndef NRFX_SPIS2_ENABLED 1797 #define NRFX_SPIS2_ENABLED 1 1798 #endif 1799 1800 // <o> NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 1801 1802 // <0=> 0 (highest) 1803 // <1=> 1 1804 // <2=> 2 1805 // <3=> 3 1806 // <4=> 4 1807 // <5=> 5 1808 // <6=> 6 1809 // <7=> 7 1810 1811 #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 1812 #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 1813 #endif 1814 1815 // <o> NRFX_SPIS_DEFAULT_DEF - SPIS default DEF character <0-255> 1816 1817 1818 #ifndef NRFX_SPIS_DEFAULT_DEF 1819 #define NRFX_SPIS_DEFAULT_DEF 255 1820 #endif 1821 1822 // <o> NRFX_SPIS_DEFAULT_ORC - SPIS default ORC character <0-255> 1823 1824 1825 #ifndef NRFX_SPIS_DEFAULT_ORC 1826 #define NRFX_SPIS_DEFAULT_ORC 255 1827 #endif 1828 1829 // <e> NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module. 1830 //========================================================== 1831 #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED 1832 #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 1833 #endif 1834 // <o> NRFX_SPIS_CONFIG_LOG_LEVEL - Default Severity level 1835 1836 // <0=> Off 1837 // <1=> Error 1838 // <2=> Warning 1839 // <3=> Info 1840 // <4=> Debug 1841 1842 #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL 1843 #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 1844 #endif 1845 1846 // <o> NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix. 1847 1848 // <0=> Default 1849 // <1=> Black 1850 // <2=> Red 1851 // <3=> Green 1852 // <4=> Yellow 1853 // <5=> Blue 1854 // <6=> Magenta 1855 // <7=> Cyan 1856 // <8=> White 1857 1858 #ifndef NRFX_SPIS_CONFIG_INFO_COLOR 1859 #define NRFX_SPIS_CONFIG_INFO_COLOR 0 1860 #endif 1861 1862 // <o> NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1863 1864 // <0=> Default 1865 // <1=> Black 1866 // <2=> Red 1867 // <3=> Green 1868 // <4=> Yellow 1869 // <5=> Blue 1870 // <6=> Magenta 1871 // <7=> Cyan 1872 // <8=> White 1873 1874 #ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR 1875 #define NRFX_SPIS_CONFIG_DEBUG_COLOR 0 1876 #endif 1877 1878 // </e> 1879 1880 // <q> NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 Anomaly 109 workaround for SPIS. 1881 1882 1883 // <i> The workaround uses a GPIOTE channel to generate interrupts 1884 // <i> on falling edges detected on the CSN line. This will make 1885 // <i> the CPU active for the moment when SPIS starts DMA transfers, 1886 // <i> and this way the transfers will be protected. 1887 // <i> This workaround uses GPIOTE driver, so this driver must be 1888 // <i> enabled as well. 1889 1890 #ifndef NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED 1891 #define NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0 1892 #endif 1893 1894 // </e> 1895 1896 // <e> NRFX_SPI_ENABLED - nrfx_spi - SPI peripheral driver 1897 //========================================================== 1898 #ifndef NRFX_SPI_ENABLED 1899 #define NRFX_SPI_ENABLED 1 1900 #endif 1901 // <q> NRFX_SPI0_ENABLED - Enable SPI0 instance 1902 1903 1904 #ifndef NRFX_SPI0_ENABLED 1905 #define NRFX_SPI0_ENABLED 1 1906 #endif 1907 1908 // <q> NRFX_SPI1_ENABLED - Enable SPI1 instance 1909 1910 1911 #ifndef NRFX_SPI1_ENABLED 1912 #define NRFX_SPI1_ENABLED 1 1913 #endif 1914 1915 // <q> NRFX_SPI2_ENABLED - Enable SPI2 instance 1916 1917 1918 #ifndef NRFX_SPI2_ENABLED 1919 #define NRFX_SPI2_ENABLED 1 1920 #endif 1921 1922 // <o> NRFX_SPI_MISO_PULL_CFG - MISO pin pull configuration. 1923 1924 // <0=> NRF_GPIO_PIN_NOPULL 1925 // <1=> NRF_GPIO_PIN_PULLDOWN 1926 // <3=> NRF_GPIO_PIN_PULLUP 1927 1928 #ifndef NRFX_SPI_MISO_PULL_CFG 1929 #define NRFX_SPI_MISO_PULL_CFG 1 1930 #endif 1931 1932 // <o> NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 1933 1934 // <0=> 0 (highest) 1935 // <1=> 1 1936 // <2=> 2 1937 // <3=> 3 1938 // <4=> 4 1939 // <5=> 5 1940 // <6=> 6 1941 // <7=> 7 1942 1943 #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY 1944 #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY 7 1945 #endif 1946 1947 // <e> NRFX_SPI_CONFIG_LOG_ENABLED - Enables logging in the module. 1948 //========================================================== 1949 #ifndef NRFX_SPI_CONFIG_LOG_ENABLED 1950 #define NRFX_SPI_CONFIG_LOG_ENABLED 0 1951 #endif 1952 // <o> NRFX_SPI_CONFIG_LOG_LEVEL - Default Severity level 1953 1954 // <0=> Off 1955 // <1=> Error 1956 // <2=> Warning 1957 // <3=> Info 1958 // <4=> Debug 1959 1960 #ifndef NRFX_SPI_CONFIG_LOG_LEVEL 1961 #define NRFX_SPI_CONFIG_LOG_LEVEL 3 1962 #endif 1963 1964 // <o> NRFX_SPI_CONFIG_INFO_COLOR - ANSI escape code prefix. 1965 1966 // <0=> Default 1967 // <1=> Black 1968 // <2=> Red 1969 // <3=> Green 1970 // <4=> Yellow 1971 // <5=> Blue 1972 // <6=> Magenta 1973 // <7=> Cyan 1974 // <8=> White 1975 1976 #ifndef NRFX_SPI_CONFIG_INFO_COLOR 1977 #define NRFX_SPI_CONFIG_INFO_COLOR 0 1978 #endif 1979 1980 // <o> NRFX_SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1981 1982 // <0=> Default 1983 // <1=> Black 1984 // <2=> Red 1985 // <3=> Green 1986 // <4=> Yellow 1987 // <5=> Blue 1988 // <6=> Magenta 1989 // <7=> Cyan 1990 // <8=> White 1991 1992 #ifndef NRFX_SPI_CONFIG_DEBUG_COLOR 1993 #define NRFX_SPI_CONFIG_DEBUG_COLOR 0 1994 #endif 1995 1996 // </e> 1997 1998 // </e> 1999 2000 // <e> NRFX_SWI_ENABLED - nrfx_swi - SWI/EGU peripheral allocator 2001 //========================================================== 2002 #ifndef NRFX_SWI_ENABLED 2003 #define NRFX_SWI_ENABLED 1 2004 #endif 2005 // <q> NRFX_EGU_ENABLED - Enable EGU support 2006 2007 2008 #ifndef NRFX_EGU_ENABLED 2009 #define NRFX_EGU_ENABLED 1 2010 #endif 2011 2012 // <q> NRFX_SWI0_DISABLED - Exclude SWI0 from being utilized by the driver 2013 2014 2015 #ifndef NRFX_SWI0_DISABLED 2016 #define NRFX_SWI0_DISABLED 0 2017 #endif 2018 2019 // <q> NRFX_SWI1_DISABLED - Exclude SWI1 from being utilized by the driver 2020 2021 2022 #ifndef NRFX_SWI1_DISABLED 2023 #define NRFX_SWI1_DISABLED 0 2024 #endif 2025 2026 // <q> NRFX_SWI2_DISABLED - Exclude SWI2 from being utilized by the driver 2027 2028 2029 #ifndef NRFX_SWI2_DISABLED 2030 #define NRFX_SWI2_DISABLED 0 2031 #endif 2032 2033 // <q> NRFX_SWI3_DISABLED - Exclude SWI3 from being utilized by the driver 2034 2035 2036 #ifndef NRFX_SWI3_DISABLED 2037 #define NRFX_SWI3_DISABLED 0 2038 #endif 2039 2040 // <q> NRFX_SWI4_DISABLED - Exclude SWI4 from being utilized by the driver 2041 2042 2043 #ifndef NRFX_SWI4_DISABLED 2044 #define NRFX_SWI4_DISABLED 0 2045 #endif 2046 2047 // <q> NRFX_SWI5_DISABLED - Exclude SWI5 from being utilized by the driver 2048 2049 2050 #ifndef NRFX_SWI5_DISABLED 2051 #define NRFX_SWI5_DISABLED 0 2052 #endif 2053 2054 // <e> NRFX_SWI_CONFIG_LOG_ENABLED - Enables logging in the module. 2055 //========================================================== 2056 #ifndef NRFX_SWI_CONFIG_LOG_ENABLED 2057 #define NRFX_SWI_CONFIG_LOG_ENABLED 0 2058 #endif 2059 // <o> NRFX_SWI_CONFIG_LOG_LEVEL - Default Severity level 2060 2061 // <0=> Off 2062 // <1=> Error 2063 // <2=> Warning 2064 // <3=> Info 2065 // <4=> Debug 2066 2067 #ifndef NRFX_SWI_CONFIG_LOG_LEVEL 2068 #define NRFX_SWI_CONFIG_LOG_LEVEL 3 2069 #endif 2070 2071 // <o> NRFX_SWI_CONFIG_INFO_COLOR - ANSI escape code prefix. 2072 2073 // <0=> Default 2074 // <1=> Black 2075 // <2=> Red 2076 // <3=> Green 2077 // <4=> Yellow 2078 // <5=> Blue 2079 // <6=> Magenta 2080 // <7=> Cyan 2081 // <8=> White 2082 2083 #ifndef NRFX_SWI_CONFIG_INFO_COLOR 2084 #define NRFX_SWI_CONFIG_INFO_COLOR 0 2085 #endif 2086 2087 // <o> NRFX_SWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2088 2089 // <0=> Default 2090 // <1=> Black 2091 // <2=> Red 2092 // <3=> Green 2093 // <4=> Yellow 2094 // <5=> Blue 2095 // <6=> Magenta 2096 // <7=> Cyan 2097 // <8=> White 2098 2099 #ifndef NRFX_SWI_CONFIG_DEBUG_COLOR 2100 #define NRFX_SWI_CONFIG_DEBUG_COLOR 0 2101 #endif 2102 2103 // </e> 2104 2105 // </e> 2106 2107 // <q> NRFX_SYSTICK_ENABLED - nrfx_systick - ARM(R) SysTick driver 2108 2109 2110 #ifndef NRFX_SYSTICK_ENABLED 2111 #define NRFX_SYSTICK_ENABLED 1 2112 #endif 2113 2114 // <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver 2115 //========================================================== 2116 #ifndef NRFX_TIMER_ENABLED 2117 #define NRFX_TIMER_ENABLED 1 2118 #endif 2119 // <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance 2120 2121 2122 #ifndef NRFX_TIMER0_ENABLED 2123 #define NRFX_TIMER0_ENABLED 1 2124 #endif 2125 2126 // <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance 2127 2128 2129 #ifndef NRFX_TIMER1_ENABLED 2130 #define NRFX_TIMER1_ENABLED 1 2131 #endif 2132 2133 // <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance 2134 2135 2136 #ifndef NRFX_TIMER2_ENABLED 2137 #define NRFX_TIMER2_ENABLED 1 2138 #endif 2139 2140 // <q> NRFX_TIMER3_ENABLED - Enable TIMER3 instance 2141 2142 2143 #ifndef NRFX_TIMER3_ENABLED 2144 #define NRFX_TIMER3_ENABLED 1 2145 #endif 2146 2147 // <q> NRFX_TIMER4_ENABLED - Enable TIMER4 instance 2148 2149 2150 #ifndef NRFX_TIMER4_ENABLED 2151 #define NRFX_TIMER4_ENABLED 1 2152 #endif 2153 2154 // <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode 2155 2156 // <0=> 16 MHz 2157 // <1=> 8 MHz 2158 // <2=> 4 MHz 2159 // <3=> 2 MHz 2160 // <4=> 1 MHz 2161 // <5=> 500 kHz 2162 // <6=> 250 kHz 2163 // <7=> 125 kHz 2164 // <8=> 62.5 kHz 2165 // <9=> 31.25 kHz 2166 2167 #ifndef NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY 2168 #define NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY 0 2169 #endif 2170 2171 // <o> NRFX_TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation 2172 2173 // <0=> Timer 2174 // <1=> Counter 2175 2176 #ifndef NRFX_TIMER_DEFAULT_CONFIG_MODE 2177 #define NRFX_TIMER_DEFAULT_CONFIG_MODE 0 2178 #endif 2179 2180 // <o> NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width 2181 2182 // <0=> 16 bit 2183 // <1=> 8 bit 2184 // <2=> 24 bit 2185 // <3=> 32 bit 2186 2187 #ifndef NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH 2188 #define NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH 0 2189 #endif 2190 2191 // <o> NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 2192 2193 // <0=> 0 (highest) 2194 // <1=> 1 2195 // <2=> 2 2196 // <3=> 3 2197 // <4=> 4 2198 // <5=> 5 2199 // <6=> 6 2200 // <7=> 7 2201 2202 #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 2203 #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 7 2204 #endif 2205 2206 // <e> NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. 2207 //========================================================== 2208 #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED 2209 #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 2210 #endif 2211 // <o> NRFX_TIMER_CONFIG_LOG_LEVEL - Default Severity level 2212 2213 // <0=> Off 2214 // <1=> Error 2215 // <2=> Warning 2216 // <3=> Info 2217 // <4=> Debug 2218 2219 #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL 2220 #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 2221 #endif 2222 2223 // <o> NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. 2224 2225 // <0=> Default 2226 // <1=> Black 2227 // <2=> Red 2228 // <3=> Green 2229 // <4=> Yellow 2230 // <5=> Blue 2231 // <6=> Magenta 2232 // <7=> Cyan 2233 // <8=> White 2234 2235 #ifndef NRFX_TIMER_CONFIG_INFO_COLOR 2236 #define NRFX_TIMER_CONFIG_INFO_COLOR 0 2237 #endif 2238 2239 // <o> NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2240 2241 // <0=> Default 2242 // <1=> Black 2243 // <2=> Red 2244 // <3=> Green 2245 // <4=> Yellow 2246 // <5=> Blue 2247 // <6=> Magenta 2248 // <7=> Cyan 2249 // <8=> White 2250 2251 #ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR 2252 #define NRFX_TIMER_CONFIG_DEBUG_COLOR 0 2253 #endif 2254 2255 // </e> 2256 2257 // </e> 2258 2259 // <e> NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver 2260 //========================================================== 2261 #ifndef NRFX_TWIM_ENABLED 2262 #define NRFX_TWIM_ENABLED 1 2263 #endif 2264 // <q> NRFX_TWIM0_ENABLED - Enable TWIM0 instance 2265 2266 2267 #ifndef NRFX_TWIM0_ENABLED 2268 #define NRFX_TWIM0_ENABLED 1 2269 #endif 2270 2271 // <q> NRFX_TWIM1_ENABLED - Enable TWIM1 instance 2272 2273 2274 #ifndef NRFX_TWIM1_ENABLED 2275 #define NRFX_TWIM1_ENABLED 1 2276 #endif 2277 2278 // <o> NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY - Frequency 2279 2280 // <26738688=> 100k 2281 // <67108864=> 250k 2282 // <104857600=> 400k 2283 2284 #ifndef NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 2285 #define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 26738688 2286 #endif 2287 2288 // <q> NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit 2289 2290 2291 #ifndef NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 2292 #define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0 2293 #endif 2294 2295 // <o> NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 2296 2297 // <0=> 0 (highest) 2298 // <1=> 1 2299 // <2=> 2 2300 // <3=> 3 2301 // <4=> 4 2302 // <5=> 5 2303 // <6=> 6 2304 // <7=> 7 2305 2306 #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 2307 #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 7 2308 #endif 2309 2310 // <e> NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module. 2311 //========================================================== 2312 #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED 2313 #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 2314 #endif 2315 // <o> NRFX_TWIM_CONFIG_LOG_LEVEL - Default Severity level 2316 2317 // <0=> Off 2318 // <1=> Error 2319 // <2=> Warning 2320 // <3=> Info 2321 // <4=> Debug 2322 2323 #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL 2324 #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 2325 #endif 2326 2327 // <o> NRFX_TWIM_CONFIG_INFO_COLOR - ANSI escape code prefix. 2328 2329 // <0=> Default 2330 // <1=> Black 2331 // <2=> Red 2332 // <3=> Green 2333 // <4=> Yellow 2334 // <5=> Blue 2335 // <6=> Magenta 2336 // <7=> Cyan 2337 // <8=> White 2338 2339 #ifndef NRFX_TWIM_CONFIG_INFO_COLOR 2340 #define NRFX_TWIM_CONFIG_INFO_COLOR 0 2341 #endif 2342 2343 // <o> NRFX_TWIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2344 2345 // <0=> Default 2346 // <1=> Black 2347 // <2=> Red 2348 // <3=> Green 2349 // <4=> Yellow 2350 // <5=> Blue 2351 // <6=> Magenta 2352 // <7=> Cyan 2353 // <8=> White 2354 2355 #ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR 2356 #define NRFX_TWIM_CONFIG_DEBUG_COLOR 0 2357 #endif 2358 2359 // </e> 2360 2361 // <q> NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 anomaly 109 workaround for TWIM. 2362 2363 2364 // <i> The workaround uses interrupts to wake up the CPU by catching 2365 // <i> the start event of zero-frequency transmission, clear the 2366 // <i> peripheral, set desired frequency, start the peripheral, and 2367 // <i> the proper transmission. See more in the Errata document or 2368 // <i> Anomaly 109 Addendum located at https://infocenter.nordicsemi.com/ 2369 2370 #ifndef NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 2371 #define NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0 2372 #endif 2373 2374 // </e> 2375 2376 // <e> NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver 2377 //========================================================== 2378 #ifndef NRFX_TWIS_ENABLED 2379 #define NRFX_TWIS_ENABLED 1 2380 #endif 2381 // <q> NRFX_TWIS0_ENABLED - Enable TWIS0 instance 2382 2383 2384 #ifndef NRFX_TWIS0_ENABLED 2385 #define NRFX_TWIS0_ENABLED 1 2386 #endif 2387 2388 // <q> NRFX_TWIS1_ENABLED - Enable TWIS1 instance 2389 2390 2391 #ifndef NRFX_TWIS1_ENABLED 2392 #define NRFX_TWIS1_ENABLED 1 2393 #endif 2394 2395 // <q> NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once 2396 2397 2398 // <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. 2399 2400 #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 2401 #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 2402 #endif 2403 2404 // <q> NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode 2405 2406 2407 // <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. 2408 2409 #ifndef NRFX_TWIS_NO_SYNC_MODE 2410 #define NRFX_TWIS_NO_SYNC_MODE 0 2411 #endif 2412 2413 // <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR0 - Address0 2414 #ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR0 2415 #define NRFX_TWIS_DEFAULT_CONFIG_ADDR0 0 2416 #endif 2417 2418 // <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR1 - Address1 2419 #ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR1 2420 #define NRFX_TWIS_DEFAULT_CONFIG_ADDR1 0 2421 #endif 2422 2423 // <o> NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration 2424 2425 // <0=> Disabled 2426 // <1=> Pull down 2427 // <3=> Pull up 2428 2429 #ifndef NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL 2430 #define NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL 0 2431 #endif 2432 2433 // <o> NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration 2434 2435 // <0=> Disabled 2436 // <1=> Pull down 2437 // <3=> Pull up 2438 2439 #ifndef NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL 2440 #define NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL 0 2441 #endif 2442 2443 // <o> NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 2444 2445 // <0=> 0 (highest) 2446 // <1=> 1 2447 // <2=> 2 2448 // <3=> 3 2449 // <4=> 4 2450 // <5=> 5 2451 // <6=> 6 2452 // <7=> 7 2453 2454 #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 2455 #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 2456 #endif 2457 2458 // <e> NRFX_TWIS_CONFIG_LOG_ENABLED - Enables logging in the module. 2459 //========================================================== 2460 #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED 2461 #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 2462 #endif 2463 // <o> NRFX_TWIS_CONFIG_LOG_LEVEL - Default Severity level 2464 2465 // <0=> Off 2466 // <1=> Error 2467 // <2=> Warning 2468 // <3=> Info 2469 // <4=> Debug 2470 2471 #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL 2472 #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 2473 #endif 2474 2475 // <o> NRFX_TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix. 2476 2477 // <0=> Default 2478 // <1=> Black 2479 // <2=> Red 2480 // <3=> Green 2481 // <4=> Yellow 2482 // <5=> Blue 2483 // <6=> Magenta 2484 // <7=> Cyan 2485 // <8=> White 2486 2487 #ifndef NRFX_TWIS_CONFIG_INFO_COLOR 2488 #define NRFX_TWIS_CONFIG_INFO_COLOR 0 2489 #endif 2490 2491 // <o> NRFX_TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2492 2493 // <0=> Default 2494 // <1=> Black 2495 // <2=> Red 2496 // <3=> Green 2497 // <4=> Yellow 2498 // <5=> Blue 2499 // <6=> Magenta 2500 // <7=> Cyan 2501 // <8=> White 2502 2503 #ifndef NRFX_TWIS_CONFIG_DEBUG_COLOR 2504 #define NRFX_TWIS_CONFIG_DEBUG_COLOR 0 2505 #endif 2506 2507 // </e> 2508 2509 // </e> 2510 2511 // <e> NRFX_TWI_ENABLED - nrfx_twi - TWI peripheral driver 2512 //========================================================== 2513 #ifndef NRFX_TWI_ENABLED 2514 #define NRFX_TWI_ENABLED 1 2515 #endif 2516 // <q> NRFX_TWI0_ENABLED - Enable TWI0 instance 2517 2518 2519 #ifndef NRFX_TWI0_ENABLED 2520 #define NRFX_TWI0_ENABLED 1 2521 #endif 2522 2523 // <q> NRFX_TWI1_ENABLED - Enable TWI1 instance 2524 2525 2526 #ifndef NRFX_TWI1_ENABLED 2527 #define NRFX_TWI1_ENABLED 1 2528 #endif 2529 2530 // <o> NRFX_TWI_DEFAULT_CONFIG_FREQUENCY - Frequency 2531 2532 // <26738688=> 100k 2533 // <67108864=> 250k 2534 // <104857600=> 400k 2535 2536 #ifndef NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 2537 #define NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 26738688 2538 #endif 2539 2540 // <q> NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit 2541 2542 2543 #ifndef NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 2544 #define NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0 2545 #endif 2546 2547 // <o> NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 2548 2549 // <0=> 0 (highest) 2550 // <1=> 1 2551 // <2=> 2 2552 // <3=> 3 2553 // <4=> 4 2554 // <5=> 5 2555 // <6=> 6 2556 // <7=> 7 2557 2558 #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 2559 #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 7 2560 #endif 2561 2562 // <e> NRFX_TWI_CONFIG_LOG_ENABLED - Enables logging in the module. 2563 //========================================================== 2564 #ifndef NRFX_TWI_CONFIG_LOG_ENABLED 2565 #define NRFX_TWI_CONFIG_LOG_ENABLED 0 2566 #endif 2567 // <o> NRFX_TWI_CONFIG_LOG_LEVEL - Default Severity level 2568 2569 // <0=> Off 2570 // <1=> Error 2571 // <2=> Warning 2572 // <3=> Info 2573 // <4=> Debug 2574 2575 #ifndef NRFX_TWI_CONFIG_LOG_LEVEL 2576 #define NRFX_TWI_CONFIG_LOG_LEVEL 3 2577 #endif 2578 2579 // <o> NRFX_TWI_CONFIG_INFO_COLOR - ANSI escape code prefix. 2580 2581 // <0=> Default 2582 // <1=> Black 2583 // <2=> Red 2584 // <3=> Green 2585 // <4=> Yellow 2586 // <5=> Blue 2587 // <6=> Magenta 2588 // <7=> Cyan 2589 // <8=> White 2590 2591 #ifndef NRFX_TWI_CONFIG_INFO_COLOR 2592 #define NRFX_TWI_CONFIG_INFO_COLOR 0 2593 #endif 2594 2595 // <o> NRFX_TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2596 2597 // <0=> Default 2598 // <1=> Black 2599 // <2=> Red 2600 // <3=> Green 2601 // <4=> Yellow 2602 // <5=> Blue 2603 // <6=> Magenta 2604 // <7=> Cyan 2605 // <8=> White 2606 2607 #ifndef NRFX_TWI_CONFIG_DEBUG_COLOR 2608 #define NRFX_TWI_CONFIG_DEBUG_COLOR 0 2609 #endif 2610 2611 // </e> 2612 2613 // </e> 2614 2615 // <e> NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver 2616 //========================================================== 2617 #ifndef NRFX_UARTE_ENABLED 2618 #define NRFX_UARTE_ENABLED 1 2619 #endif 2620 // <o> NRFX_UARTE0_ENABLED - Enable UARTE0 instance 2621 #ifndef NRFX_UARTE0_ENABLED 2622 #define NRFX_UARTE0_ENABLED 1 2623 #endif 2624 2625 // <o> NRFX_UARTE_DEFAULT_CONFIG_HWFC - Hardware Flow Control 2626 2627 // <0=> Disabled 2628 // <1=> Enabled 2629 2630 #ifndef NRFX_UARTE_DEFAULT_CONFIG_HWFC 2631 #define NRFX_UARTE_DEFAULT_CONFIG_HWFC 0 2632 #endif 2633 2634 // <o> NRFX_UARTE_DEFAULT_CONFIG_PARITY - Parity 2635 2636 // <0=> Excluded 2637 // <14=> Included 2638 2639 #ifndef NRFX_UARTE_DEFAULT_CONFIG_PARITY 2640 #define NRFX_UARTE_DEFAULT_CONFIG_PARITY 0 2641 #endif 2642 2643 // <o> NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE - Default Baudrate 2644 2645 // <323584=> 1200 baud 2646 // <643072=> 2400 baud 2647 // <1290240=> 4800 baud 2648 // <2576384=> 9600 baud 2649 // <3862528=> 14400 baud 2650 // <5152768=> 19200 baud 2651 // <7716864=> 28800 baud 2652 // <8388608=> 31250 baud 2653 // <10289152=> 38400 baud 2654 // <15007744=> 56000 baud 2655 // <15400960=> 57600 baud 2656 // <20615168=> 76800 baud 2657 // <30801920=> 115200 baud 2658 // <61865984=> 230400 baud 2659 // <67108864=> 250000 baud 2660 // <121634816=> 460800 baud 2661 // <251658240=> 921600 baud 2662 // <268435456=> 1000000 baud 2663 2664 #ifndef NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 2665 #define NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 30801920 2666 #endif 2667 2668 // <o> NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 2669 2670 // <0=> 0 (highest) 2671 // <1=> 1 2672 // <2=> 2 2673 // <3=> 3 2674 // <4=> 4 2675 // <5=> 5 2676 // <6=> 6 2677 // <7=> 7 2678 2679 #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 2680 #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 7 2681 #endif 2682 2683 // <e> NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module. 2684 //========================================================== 2685 #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED 2686 #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 2687 #endif 2688 // <o> NRFX_UARTE_CONFIG_LOG_LEVEL - Default Severity level 2689 2690 // <0=> Off 2691 // <1=> Error 2692 // <2=> Warning 2693 // <3=> Info 2694 // <4=> Debug 2695 2696 #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL 2697 #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 2698 #endif 2699 2700 // <o> NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix. 2701 2702 // <0=> Default 2703 // <1=> Black 2704 // <2=> Red 2705 // <3=> Green 2706 // <4=> Yellow 2707 // <5=> Blue 2708 // <6=> Magenta 2709 // <7=> Cyan 2710 // <8=> White 2711 2712 #ifndef NRFX_UARTE_CONFIG_INFO_COLOR 2713 #define NRFX_UARTE_CONFIG_INFO_COLOR 0 2714 #endif 2715 2716 // <o> NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2717 2718 // <0=> Default 2719 // <1=> Black 2720 // <2=> Red 2721 // <3=> Green 2722 // <4=> Yellow 2723 // <5=> Blue 2724 // <6=> Magenta 2725 // <7=> Cyan 2726 // <8=> White 2727 2728 #ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR 2729 #define NRFX_UARTE_CONFIG_DEBUG_COLOR 0 2730 #endif 2731 2732 // </e> 2733 2734 // </e> 2735 2736 // <e> NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver 2737 //========================================================== 2738 #ifndef NRFX_UART_ENABLED 2739 #define NRFX_UART_ENABLED 1 2740 #endif 2741 // <o> NRFX_UART0_ENABLED - Enable UART0 instance 2742 #ifndef NRFX_UART0_ENABLED 2743 #define NRFX_UART0_ENABLED 1 2744 #endif 2745 2746 // <o> NRFX_UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control 2747 2748 // <0=> Disabled 2749 // <1=> Enabled 2750 2751 #ifndef NRFX_UART_DEFAULT_CONFIG_HWFC 2752 #define NRFX_UART_DEFAULT_CONFIG_HWFC 0 2753 #endif 2754 2755 // <o> NRFX_UART_DEFAULT_CONFIG_PARITY - Parity 2756 2757 // <0=> Excluded 2758 // <14=> Included 2759 2760 #ifndef NRFX_UART_DEFAULT_CONFIG_PARITY 2761 #define NRFX_UART_DEFAULT_CONFIG_PARITY 0 2762 #endif 2763 2764 // <o> NRFX_UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate 2765 2766 // <323584=> 1200 baud 2767 // <643072=> 2400 baud 2768 // <1290240=> 4800 baud 2769 // <2576384=> 9600 baud 2770 // <3866624=> 14400 baud 2771 // <5152768=> 19200 baud 2772 // <7729152=> 28800 baud 2773 // <8388608=> 31250 baud 2774 // <10309632=> 38400 baud 2775 // <15007744=> 56000 baud 2776 // <15462400=> 57600 baud 2777 // <20615168=> 76800 baud 2778 // <30924800=> 115200 baud 2779 // <61845504=> 230400 baud 2780 // <67108864=> 250000 baud 2781 // <123695104=> 460800 baud 2782 // <247386112=> 921600 baud 2783 // <268435456=> 1000000 baud 2784 2785 #ifndef NRFX_UART_DEFAULT_CONFIG_BAUDRATE 2786 #define NRFX_UART_DEFAULT_CONFIG_BAUDRATE 30924800 2787 #endif 2788 2789 // <o> NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 2790 2791 // <0=> 0 (highest) 2792 // <1=> 1 2793 // <2=> 2 2794 // <3=> 3 2795 // <4=> 4 2796 // <5=> 5 2797 // <6=> 6 2798 // <7=> 7 2799 2800 #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 2801 #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 7 2802 #endif 2803 2804 // <e> NRFX_UART_CONFIG_LOG_ENABLED - Enables logging in the module. 2805 //========================================================== 2806 #ifndef NRFX_UART_CONFIG_LOG_ENABLED 2807 #define NRFX_UART_CONFIG_LOG_ENABLED 0 2808 #endif 2809 // <o> NRFX_UART_CONFIG_LOG_LEVEL - Default Severity level 2810 2811 // <0=> Off 2812 // <1=> Error 2813 // <2=> Warning 2814 // <3=> Info 2815 // <4=> Debug 2816 2817 #ifndef NRFX_UART_CONFIG_LOG_LEVEL 2818 #define NRFX_UART_CONFIG_LOG_LEVEL 3 2819 #endif 2820 2821 // <o> NRFX_UART_CONFIG_INFO_COLOR - ANSI escape code prefix. 2822 2823 // <0=> Default 2824 // <1=> Black 2825 // <2=> Red 2826 // <3=> Green 2827 // <4=> Yellow 2828 // <5=> Blue 2829 // <6=> Magenta 2830 // <7=> Cyan 2831 // <8=> White 2832 2833 #ifndef NRFX_UART_CONFIG_INFO_COLOR 2834 #define NRFX_UART_CONFIG_INFO_COLOR 0 2835 #endif 2836 2837 // <o> NRFX_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2838 2839 // <0=> Default 2840 // <1=> Black 2841 // <2=> Red 2842 // <3=> Green 2843 // <4=> Yellow 2844 // <5=> Blue 2845 // <6=> Magenta 2846 // <7=> Cyan 2847 // <8=> White 2848 2849 #ifndef NRFX_UART_CONFIG_DEBUG_COLOR 2850 #define NRFX_UART_CONFIG_DEBUG_COLOR 0 2851 #endif 2852 2853 // </e> 2854 2855 // </e> 2856 2857 // <e> NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver 2858 //========================================================== 2859 #ifndef NRFX_WDT_ENABLED 2860 #define NRFX_WDT_ENABLED 1 2861 #endif 2862 // <o> NRFX_WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode 2863 2864 // <1=> Run in SLEEP, Pause in HALT 2865 // <8=> Pause in SLEEP, Run in HALT 2866 // <9=> Run in SLEEP and HALT 2867 // <0=> Pause in SLEEP and HALT 2868 2869 #ifndef NRFX_WDT_CONFIG_BEHAVIOUR 2870 #define NRFX_WDT_CONFIG_BEHAVIOUR 1 2871 #endif 2872 2873 // <o> NRFX_WDT_CONFIG_RELOAD_VALUE - Reload value <15-4294967295> 2874 2875 2876 #ifndef NRFX_WDT_CONFIG_RELOAD_VALUE 2877 #define NRFX_WDT_CONFIG_RELOAD_VALUE 2000 2878 #endif 2879 2880 // <o> NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver 2881 2882 // <0=> Include WDT IRQ handling 2883 // <1=> Remove WDT IRQ handling 2884 2885 #ifndef NRFX_WDT_CONFIG_NO_IRQ 2886 #define NRFX_WDT_CONFIG_NO_IRQ 0 2887 #endif 2888 2889 // <o> NRFX_WDT_CONFIG_IRQ_PRIORITY - Interrupt priority 2890 2891 // <0=> 0 (highest) 2892 // <1=> 1 2893 // <2=> 2 2894 // <3=> 3 2895 // <4=> 4 2896 // <5=> 5 2897 // <6=> 6 2898 // <7=> 7 2899 2900 #ifndef NRFX_WDT_CONFIG_IRQ_PRIORITY 2901 #define NRFX_WDT_CONFIG_IRQ_PRIORITY 7 2902 #endif 2903 2904 // <e> NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module. 2905 //========================================================== 2906 #ifndef NRFX_WDT_CONFIG_LOG_ENABLED 2907 #define NRFX_WDT_CONFIG_LOG_ENABLED 0 2908 #endif 2909 // <o> NRFX_WDT_CONFIG_LOG_LEVEL - Default Severity level 2910 2911 // <0=> Off 2912 // <1=> Error 2913 // <2=> Warning 2914 // <3=> Info 2915 // <4=> Debug 2916 2917 #ifndef NRFX_WDT_CONFIG_LOG_LEVEL 2918 #define NRFX_WDT_CONFIG_LOG_LEVEL 3 2919 #endif 2920 2921 // <o> NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix. 2922 2923 // <0=> Default 2924 // <1=> Black 2925 // <2=> Red 2926 // <3=> Green 2927 // <4=> Yellow 2928 // <5=> Blue 2929 // <6=> Magenta 2930 // <7=> Cyan 2931 // <8=> White 2932 2933 #ifndef NRFX_WDT_CONFIG_INFO_COLOR 2934 #define NRFX_WDT_CONFIG_INFO_COLOR 0 2935 #endif 2936 2937 // <o> NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2938 2939 // <0=> Default 2940 // <1=> Black 2941 // <2=> Red 2942 // <3=> Green 2943 // <4=> Yellow 2944 // <5=> Blue 2945 // <6=> Magenta 2946 // <7=> Cyan 2947 // <8=> White 2948 2949 #ifndef NRFX_WDT_CONFIG_DEBUG_COLOR 2950 #define NRFX_WDT_CONFIG_DEBUG_COLOR 0 2951 #endif 2952 2953 // </e> 2954 2955 // </e> 2956 2957 // </h> 2958 2959 #endif // NRFX_CONFIG_H__ 2960