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 // <q> NRFX_PWM3_ENABLED - Enable PWM3 instance 1032 1033 1034 #ifndef NRFX_PWM3_ENABLED 1035 #define NRFX_PWM3_ENABLED 1 1036 #endif 1037 1038 // <o> NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin <0-31> 1039 1040 1041 #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN 1042 #define NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN 31 1043 #endif 1044 1045 // <o> NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin <0-31> 1046 1047 1048 #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN 1049 #define NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN 31 1050 #endif 1051 1052 // <o> NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin <0-31> 1053 1054 1055 #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN 1056 #define NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN 31 1057 #endif 1058 1059 // <o> NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin <0-31> 1060 1061 1062 #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN 1063 #define NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN 31 1064 #endif 1065 1066 // <o> NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK - Base clock 1067 1068 // <0=> 16 MHz 1069 // <1=> 8 MHz 1070 // <2=> 4 MHz 1071 // <3=> 2 MHz 1072 // <4=> 1 MHz 1073 // <5=> 500 kHz 1074 // <6=> 250 kHz 1075 // <7=> 125 kHz 1076 1077 #ifndef NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK 1078 #define NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK 4 1079 #endif 1080 1081 // <o> NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE - Count mode 1082 1083 // <0=> Up 1084 // <1=> Up and Down 1085 1086 #ifndef NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE 1087 #define NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE 0 1088 #endif 1089 1090 // <o> NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE - Top value 1091 #ifndef NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE 1092 #define NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE 1000 1093 #endif 1094 1095 // <o> NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE - Load mode 1096 1097 // <0=> Common 1098 // <1=> Grouped 1099 // <2=> Individual 1100 // <3=> Waveform 1101 1102 #ifndef NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE 1103 #define NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE 0 1104 #endif 1105 1106 // <o> NRFX_PWM_DEFAULT_CONFIG_STEP_MODE - Step mode 1107 1108 // <0=> Auto 1109 // <1=> Triggered 1110 1111 #ifndef NRFX_PWM_DEFAULT_CONFIG_STEP_MODE 1112 #define NRFX_PWM_DEFAULT_CONFIG_STEP_MODE 0 1113 #endif 1114 1115 // <o> NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 1116 1117 // <0=> 0 (highest) 1118 // <1=> 1 1119 // <2=> 2 1120 // <3=> 3 1121 // <4=> 4 1122 // <5=> 5 1123 // <6=> 6 1124 // <7=> 7 1125 1126 #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 1127 #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 7 1128 #endif 1129 1130 // <e> NRFX_PWM_CONFIG_LOG_ENABLED - Enables logging in the module. 1131 //========================================================== 1132 #ifndef NRFX_PWM_CONFIG_LOG_ENABLED 1133 #define NRFX_PWM_CONFIG_LOG_ENABLED 0 1134 #endif 1135 // <o> NRFX_PWM_CONFIG_LOG_LEVEL - Default Severity level 1136 1137 // <0=> Off 1138 // <1=> Error 1139 // <2=> Warning 1140 // <3=> Info 1141 // <4=> Debug 1142 1143 #ifndef NRFX_PWM_CONFIG_LOG_LEVEL 1144 #define NRFX_PWM_CONFIG_LOG_LEVEL 3 1145 #endif 1146 1147 // <o> NRFX_PWM_CONFIG_INFO_COLOR - ANSI escape code prefix. 1148 1149 // <0=> Default 1150 // <1=> Black 1151 // <2=> Red 1152 // <3=> Green 1153 // <4=> Yellow 1154 // <5=> Blue 1155 // <6=> Magenta 1156 // <7=> Cyan 1157 // <8=> White 1158 1159 #ifndef NRFX_PWM_CONFIG_INFO_COLOR 1160 #define NRFX_PWM_CONFIG_INFO_COLOR 0 1161 #endif 1162 1163 // <o> NRFX_PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1164 1165 // <0=> Default 1166 // <1=> Black 1167 // <2=> Red 1168 // <3=> Green 1169 // <4=> Yellow 1170 // <5=> Blue 1171 // <6=> Magenta 1172 // <7=> Cyan 1173 // <8=> White 1174 1175 #ifndef NRFX_PWM_CONFIG_DEBUG_COLOR 1176 #define NRFX_PWM_CONFIG_DEBUG_COLOR 0 1177 #endif 1178 1179 // </e> 1180 1181 // </e> 1182 1183 // <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver 1184 //========================================================== 1185 #ifndef NRFX_QDEC_ENABLED 1186 #define NRFX_QDEC_ENABLED 1 1187 #endif 1188 // <o> NRFX_QDEC_CONFIG_REPORTPER - Report period 1189 1190 // <0=> 10 Samples 1191 // <1=> 40 Samples 1192 // <2=> 80 Samples 1193 // <3=> 120 Samples 1194 // <4=> 160 Samples 1195 // <5=> 200 Samples 1196 // <6=> 240 Samples 1197 // <7=> 280 Samples 1198 1199 #ifndef NRFX_QDEC_CONFIG_REPORTPER 1200 #define NRFX_QDEC_CONFIG_REPORTPER 0 1201 #endif 1202 1203 // <o> NRFX_QDEC_CONFIG_SAMPLEPER - Sample period 1204 1205 // <0=> 128 us 1206 // <1=> 256 us 1207 // <2=> 512 us 1208 // <3=> 1024 us 1209 // <4=> 2048 us 1210 // <5=> 4096 us 1211 // <6=> 8192 us 1212 // <7=> 16384 us 1213 1214 #ifndef NRFX_QDEC_CONFIG_SAMPLEPER 1215 #define NRFX_QDEC_CONFIG_SAMPLEPER 7 1216 #endif 1217 1218 // <o> NRFX_QDEC_CONFIG_PIO_A - A pin <0-31> 1219 1220 1221 #ifndef NRFX_QDEC_CONFIG_PIO_A 1222 #define NRFX_QDEC_CONFIG_PIO_A 31 1223 #endif 1224 1225 // <o> NRFX_QDEC_CONFIG_PIO_B - B pin <0-31> 1226 1227 1228 #ifndef NRFX_QDEC_CONFIG_PIO_B 1229 #define NRFX_QDEC_CONFIG_PIO_B 31 1230 #endif 1231 1232 // <o> NRFX_QDEC_CONFIG_PIO_LED - LED pin <0-31> 1233 1234 1235 #ifndef NRFX_QDEC_CONFIG_PIO_LED 1236 #define NRFX_QDEC_CONFIG_PIO_LED 31 1237 #endif 1238 1239 // <o> NRFX_QDEC_CONFIG_LEDPRE - LED pre 1240 #ifndef NRFX_QDEC_CONFIG_LEDPRE 1241 #define NRFX_QDEC_CONFIG_LEDPRE 511 1242 #endif 1243 1244 // <o> NRFX_QDEC_CONFIG_LEDPOL - LED polarity 1245 1246 // <0=> Active low 1247 // <1=> Active high 1248 1249 #ifndef NRFX_QDEC_CONFIG_LEDPOL 1250 #define NRFX_QDEC_CONFIG_LEDPOL 1 1251 #endif 1252 1253 // <q> NRFX_QDEC_CONFIG_DBFEN - Debouncing enable 1254 1255 1256 #ifndef NRFX_QDEC_CONFIG_DBFEN 1257 #define NRFX_QDEC_CONFIG_DBFEN 0 1258 #endif 1259 1260 // <q> NRFX_QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable 1261 1262 1263 #ifndef NRFX_QDEC_CONFIG_SAMPLE_INTEN 1264 #define NRFX_QDEC_CONFIG_SAMPLE_INTEN 0 1265 #endif 1266 1267 // <o> NRFX_QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority 1268 1269 // <0=> 0 (highest) 1270 // <1=> 1 1271 // <2=> 2 1272 // <3=> 3 1273 // <4=> 4 1274 // <5=> 5 1275 // <6=> 6 1276 // <7=> 7 1277 1278 #ifndef NRFX_QDEC_CONFIG_IRQ_PRIORITY 1279 #define NRFX_QDEC_CONFIG_IRQ_PRIORITY 7 1280 #endif 1281 1282 // <e> NRFX_QDEC_CONFIG_LOG_ENABLED - Enables logging in the module. 1283 //========================================================== 1284 #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED 1285 #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 1286 #endif 1287 // <o> NRFX_QDEC_CONFIG_LOG_LEVEL - Default Severity level 1288 1289 // <0=> Off 1290 // <1=> Error 1291 // <2=> Warning 1292 // <3=> Info 1293 // <4=> Debug 1294 1295 #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL 1296 #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 1297 #endif 1298 1299 // <o> NRFX_QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix. 1300 1301 // <0=> Default 1302 // <1=> Black 1303 // <2=> Red 1304 // <3=> Green 1305 // <4=> Yellow 1306 // <5=> Blue 1307 // <6=> Magenta 1308 // <7=> Cyan 1309 // <8=> White 1310 1311 #ifndef NRFX_QDEC_CONFIG_INFO_COLOR 1312 #define NRFX_QDEC_CONFIG_INFO_COLOR 0 1313 #endif 1314 1315 // <o> NRFX_QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1316 1317 // <0=> Default 1318 // <1=> Black 1319 // <2=> Red 1320 // <3=> Green 1321 // <4=> Yellow 1322 // <5=> Blue 1323 // <6=> Magenta 1324 // <7=> Cyan 1325 // <8=> White 1326 1327 #ifndef NRFX_QDEC_CONFIG_DEBUG_COLOR 1328 #define NRFX_QDEC_CONFIG_DEBUG_COLOR 0 1329 #endif 1330 1331 // </e> 1332 1333 // </e> 1334 1335 // <e> NRFX_QSPI_ENABLED - nrfx_qspi - QSPI peripheral driver 1336 //========================================================== 1337 #ifndef NRFX_QSPI_ENABLED 1338 #define NRFX_QSPI_ENABLED 1 1339 #endif 1340 // <o> NRFX_QSPI_CONFIG_SCK_DELAY - tSHSL, tWHSL and tSHWL in number of 16 MHz periods (62.5 ns). <0-255> 1341 1342 1343 #ifndef NRFX_QSPI_CONFIG_SCK_DELAY 1344 #define NRFX_QSPI_CONFIG_SCK_DELAY 1 1345 #endif 1346 1347 // <o> NRFX_QSPI_CONFIG_XIP_OFFSET - Address offset in the external memory for Execute in Place operation. 1348 #ifndef NRFX_QSPI_CONFIG_XIP_OFFSET 1349 #define NRFX_QSPI_CONFIG_XIP_OFFSET 0 1350 #endif 1351 1352 // <o> NRFX_QSPI_CONFIG_READOC - Number of data lines and opcode used for reading. 1353 1354 // <0=> FastRead 1355 // <1=> Read2O 1356 // <2=> Read2IO 1357 // <3=> Read4O 1358 // <4=> Read4IO 1359 1360 #ifndef NRFX_QSPI_CONFIG_READOC 1361 #define NRFX_QSPI_CONFIG_READOC 0 1362 #endif 1363 1364 // <o> NRFX_QSPI_CONFIG_WRITEOC - Number of data lines and opcode used for writing. 1365 1366 // <0=> PP 1367 // <1=> PP2O 1368 // <2=> PP4O 1369 // <3=> PP4IO 1370 1371 #ifndef NRFX_QSPI_CONFIG_WRITEOC 1372 #define NRFX_QSPI_CONFIG_WRITEOC 0 1373 #endif 1374 1375 // <o> NRFX_QSPI_CONFIG_ADDRMODE - Addressing mode. 1376 1377 // <0=> 24bit 1378 // <1=> 32bit 1379 1380 #ifndef NRFX_QSPI_CONFIG_ADDRMODE 1381 #define NRFX_QSPI_CONFIG_ADDRMODE 0 1382 #endif 1383 1384 // <o> NRFX_QSPI_CONFIG_MODE - SPI mode. 1385 1386 // <0=> Mode 0 1387 // <1=> Mode 1 1388 1389 #ifndef NRFX_QSPI_CONFIG_MODE 1390 #define NRFX_QSPI_CONFIG_MODE 0 1391 #endif 1392 1393 // <o> NRFX_QSPI_CONFIG_FREQUENCY - Frequency divider. 1394 1395 // <0=> 32MHz/1 1396 // <1=> 32MHz/2 1397 // <2=> 32MHz/3 1398 // <3=> 32MHz/4 1399 // <4=> 32MHz/5 1400 // <5=> 32MHz/6 1401 // <6=> 32MHz/7 1402 // <7=> 32MHz/8 1403 // <8=> 32MHz/9 1404 // <9=> 32MHz/10 1405 // <10=> 32MHz/11 1406 // <11=> 32MHz/12 1407 // <12=> 32MHz/13 1408 // <13=> 32MHz/14 1409 // <14=> 32MHz/15 1410 // <15=> 32MHz/16 1411 1412 #ifndef NRFX_QSPI_CONFIG_FREQUENCY 1413 #define NRFX_QSPI_CONFIG_FREQUENCY 15 1414 #endif 1415 1416 // <s> NRFX_QSPI_PIN_SCK - SCK pin value. 1417 #ifndef NRFX_QSPI_PIN_SCK 1418 #define NRFX_QSPI_PIN_SCK NRF_QSPI_PIN_NOT_CONNECTED 1419 #endif 1420 1421 // <s> NRFX_QSPI_PIN_CSN - CSN pin value. 1422 #ifndef NRFX_QSPI_PIN_CSN 1423 #define NRFX_QSPI_PIN_CSN NRF_QSPI_PIN_NOT_CONNECTED 1424 #endif 1425 1426 // <s> NRFX_QSPI_PIN_IO0 - IO0 pin value. 1427 #ifndef NRFX_QSPI_PIN_IO0 1428 #define NRFX_QSPI_PIN_IO0 NRF_QSPI_PIN_NOT_CONNECTED 1429 #endif 1430 1431 // <s> NRFX_QSPI_PIN_IO1 - IO1 pin value. 1432 #ifndef NRFX_QSPI_PIN_IO1 1433 #define NRFX_QSPI_PIN_IO1 NRF_QSPI_PIN_NOT_CONNECTED 1434 #endif 1435 1436 // <s> NRFX_QSPI_PIN_IO2 - IO2 pin value. 1437 #ifndef NRFX_QSPI_PIN_IO2 1438 #define NRFX_QSPI_PIN_IO2 NRF_QSPI_PIN_NOT_CONNECTED 1439 #endif 1440 1441 // <s> NRFX_QSPI_PIN_IO3 - IO3 pin value. 1442 #ifndef NRFX_QSPI_PIN_IO3 1443 #define NRFX_QSPI_PIN_IO3 NRF_QSPI_PIN_NOT_CONNECTED 1444 #endif 1445 1446 // <o> NRFX_QSPI_CONFIG_IRQ_PRIORITY - Interrupt priority 1447 1448 // <0=> 0 (highest) 1449 // <1=> 1 1450 // <2=> 2 1451 // <3=> 3 1452 // <4=> 4 1453 // <5=> 5 1454 // <6=> 6 1455 // <7=> 7 1456 1457 #ifndef NRFX_QSPI_CONFIG_IRQ_PRIORITY 1458 #define NRFX_QSPI_CONFIG_IRQ_PRIORITY 7 1459 #endif 1460 1461 // </e> 1462 1463 // <e> NRFX_RNG_ENABLED - nrfx_rng - RNG peripheral driver 1464 //========================================================== 1465 #ifndef NRFX_RNG_ENABLED 1466 #define NRFX_RNG_ENABLED 1 1467 #endif 1468 // <q> NRFX_RNG_CONFIG_ERROR_CORRECTION - Error correction 1469 1470 1471 #ifndef NRFX_RNG_CONFIG_ERROR_CORRECTION 1472 #define NRFX_RNG_CONFIG_ERROR_CORRECTION 1 1473 #endif 1474 1475 // <o> NRFX_RNG_CONFIG_IRQ_PRIORITY - Interrupt priority 1476 1477 // <0=> 0 (highest) 1478 // <1=> 1 1479 // <2=> 2 1480 // <3=> 3 1481 // <4=> 4 1482 // <5=> 5 1483 // <6=> 6 1484 // <7=> 7 1485 1486 #ifndef NRFX_RNG_CONFIG_IRQ_PRIORITY 1487 #define NRFX_RNG_CONFIG_IRQ_PRIORITY 7 1488 #endif 1489 1490 // <e> NRFX_RNG_CONFIG_LOG_ENABLED - Enables logging in the module. 1491 //========================================================== 1492 #ifndef NRFX_RNG_CONFIG_LOG_ENABLED 1493 #define NRFX_RNG_CONFIG_LOG_ENABLED 0 1494 #endif 1495 // <o> NRFX_RNG_CONFIG_LOG_LEVEL - Default Severity level 1496 1497 // <0=> Off 1498 // <1=> Error 1499 // <2=> Warning 1500 // <3=> Info 1501 // <4=> Debug 1502 1503 #ifndef NRFX_RNG_CONFIG_LOG_LEVEL 1504 #define NRFX_RNG_CONFIG_LOG_LEVEL 3 1505 #endif 1506 1507 // <o> NRFX_RNG_CONFIG_INFO_COLOR - ANSI escape code prefix. 1508 1509 // <0=> Default 1510 // <1=> Black 1511 // <2=> Red 1512 // <3=> Green 1513 // <4=> Yellow 1514 // <5=> Blue 1515 // <6=> Magenta 1516 // <7=> Cyan 1517 // <8=> White 1518 1519 #ifndef NRFX_RNG_CONFIG_INFO_COLOR 1520 #define NRFX_RNG_CONFIG_INFO_COLOR 0 1521 #endif 1522 1523 // <o> NRFX_RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1524 1525 // <0=> Default 1526 // <1=> Black 1527 // <2=> Red 1528 // <3=> Green 1529 // <4=> Yellow 1530 // <5=> Blue 1531 // <6=> Magenta 1532 // <7=> Cyan 1533 // <8=> White 1534 1535 #ifndef NRFX_RNG_CONFIG_DEBUG_COLOR 1536 #define NRFX_RNG_CONFIG_DEBUG_COLOR 0 1537 #endif 1538 1539 // </e> 1540 1541 // </e> 1542 1543 // <e> NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver 1544 //========================================================== 1545 #ifndef NRFX_RTC_ENABLED 1546 #define NRFX_RTC_ENABLED 1 1547 #endif 1548 // <q> NRFX_RTC0_ENABLED - Enable RTC0 instance 1549 1550 1551 #ifndef NRFX_RTC0_ENABLED 1552 #define NRFX_RTC0_ENABLED 1 1553 #endif 1554 1555 // <q> NRFX_RTC1_ENABLED - Enable RTC1 instance 1556 1557 1558 #ifndef NRFX_RTC1_ENABLED 1559 #define NRFX_RTC1_ENABLED 1 1560 #endif 1561 1562 // <q> NRFX_RTC2_ENABLED - Enable RTC2 instance 1563 1564 1565 #ifndef NRFX_RTC2_ENABLED 1566 #define NRFX_RTC2_ENABLED 1 1567 #endif 1568 1569 // <o> NRFX_RTC_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt 1570 #ifndef NRFX_RTC_MAXIMUM_LATENCY_US 1571 #define NRFX_RTC_MAXIMUM_LATENCY_US 2000 1572 #endif 1573 1574 // <o> NRFX_RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768> 1575 1576 1577 #ifndef NRFX_RTC_DEFAULT_CONFIG_FREQUENCY 1578 #define NRFX_RTC_DEFAULT_CONFIG_FREQUENCY 32768 1579 #endif 1580 1581 // <q> NRFX_RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering 1582 1583 1584 #ifndef NRFX_RTC_DEFAULT_CONFIG_RELIABLE 1585 #define NRFX_RTC_DEFAULT_CONFIG_RELIABLE 0 1586 #endif 1587 1588 // <o> NRFX_RTC_DEFAULT_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_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 1600 #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 7 1601 #endif 1602 1603 // <e> NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module. 1604 //========================================================== 1605 #ifndef NRFX_RTC_CONFIG_LOG_ENABLED 1606 #define NRFX_RTC_CONFIG_LOG_ENABLED 0 1607 #endif 1608 // <o> NRFX_RTC_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_RTC_CONFIG_LOG_LEVEL 1617 #define NRFX_RTC_CONFIG_LOG_LEVEL 3 1618 #endif 1619 1620 // <o> NRFX_RTC_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_RTC_CONFIG_INFO_COLOR 1633 #define NRFX_RTC_CONFIG_INFO_COLOR 0 1634 #endif 1635 1636 // <o> NRFX_RTC_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_RTC_CONFIG_DEBUG_COLOR 1649 #define NRFX_RTC_CONFIG_DEBUG_COLOR 0 1650 #endif 1651 1652 // </e> 1653 1654 // </e> 1655 1656 // <e> NRFX_SAADC_ENABLED - nrfx_saadc - SAADC peripheral driver 1657 //========================================================== 1658 #ifndef NRFX_SAADC_ENABLED 1659 #define NRFX_SAADC_ENABLED 1 1660 #endif 1661 // <o> NRFX_SAADC_CONFIG_RESOLUTION - Resolution 1662 1663 // <0=> 8 bit 1664 // <1=> 10 bit 1665 // <2=> 12 bit 1666 // <3=> 14 bit 1667 1668 #ifndef NRFX_SAADC_CONFIG_RESOLUTION 1669 #define NRFX_SAADC_CONFIG_RESOLUTION 1 1670 #endif 1671 1672 // <o> NRFX_SAADC_CONFIG_OVERSAMPLE - Sample period 1673 1674 // <0=> Disabled 1675 // <1=> 2x 1676 // <2=> 4x 1677 // <3=> 8x 1678 // <4=> 16x 1679 // <5=> 32x 1680 // <6=> 64x 1681 // <7=> 128x 1682 // <8=> 256x 1683 1684 #ifndef NRFX_SAADC_CONFIG_OVERSAMPLE 1685 #define NRFX_SAADC_CONFIG_OVERSAMPLE 0 1686 #endif 1687 1688 // <q> NRFX_SAADC_CONFIG_LP_MODE - Enabling low power mode 1689 1690 1691 #ifndef NRFX_SAADC_CONFIG_LP_MODE 1692 #define NRFX_SAADC_CONFIG_LP_MODE 0 1693 #endif 1694 1695 // <o> NRFX_SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority 1696 1697 // <0=> 0 (highest) 1698 // <1=> 1 1699 // <2=> 2 1700 // <3=> 3 1701 // <4=> 4 1702 // <5=> 5 1703 // <6=> 6 1704 // <7=> 7 1705 1706 #ifndef NRFX_SAADC_CONFIG_IRQ_PRIORITY 1707 #define NRFX_SAADC_CONFIG_IRQ_PRIORITY 7 1708 #endif 1709 1710 // <e> NRFX_SAADC_CONFIG_LOG_ENABLED - Enables logging in the module. 1711 //========================================================== 1712 #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED 1713 #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 1714 #endif 1715 // <o> NRFX_SAADC_CONFIG_LOG_LEVEL - Default Severity level 1716 1717 // <0=> Off 1718 // <1=> Error 1719 // <2=> Warning 1720 // <3=> Info 1721 // <4=> Debug 1722 1723 #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL 1724 #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 1725 #endif 1726 1727 // <o> NRFX_SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix. 1728 1729 // <0=> Default 1730 // <1=> Black 1731 // <2=> Red 1732 // <3=> Green 1733 // <4=> Yellow 1734 // <5=> Blue 1735 // <6=> Magenta 1736 // <7=> Cyan 1737 // <8=> White 1738 1739 #ifndef NRFX_SAADC_CONFIG_INFO_COLOR 1740 #define NRFX_SAADC_CONFIG_INFO_COLOR 0 1741 #endif 1742 1743 // <o> NRFX_SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1744 1745 // <0=> Default 1746 // <1=> Black 1747 // <2=> Red 1748 // <3=> Green 1749 // <4=> Yellow 1750 // <5=> Blue 1751 // <6=> Magenta 1752 // <7=> Cyan 1753 // <8=> White 1754 1755 #ifndef NRFX_SAADC_CONFIG_DEBUG_COLOR 1756 #define NRFX_SAADC_CONFIG_DEBUG_COLOR 0 1757 #endif 1758 1759 // </e> 1760 1761 // </e> 1762 1763 // <e> NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver 1764 //========================================================== 1765 #ifndef NRFX_SPIM_ENABLED 1766 #define NRFX_SPIM_ENABLED 1 1767 #endif 1768 // <q> NRFX_SPIM0_ENABLED - Enable SPIM0 instance 1769 1770 1771 #ifndef NRFX_SPIM0_ENABLED 1772 #define NRFX_SPIM0_ENABLED 1 1773 #endif 1774 1775 // <q> NRFX_SPIM1_ENABLED - Enable SPIM1 instance 1776 1777 1778 #ifndef NRFX_SPIM1_ENABLED 1779 #define NRFX_SPIM1_ENABLED 1 1780 #endif 1781 1782 // <q> NRFX_SPIM2_ENABLED - Enable SPIM2 instance 1783 1784 1785 #ifndef NRFX_SPIM2_ENABLED 1786 #define NRFX_SPIM2_ENABLED 1 1787 #endif 1788 1789 // <q> NRFX_SPIM3_ENABLED - Enable SPIM3 instance 1790 1791 1792 #ifndef NRFX_SPIM3_ENABLED 1793 #define NRFX_SPIM3_ENABLED 1 1794 #endif 1795 1796 // <q> NRFX_SPIM_EXTENDED_ENABLED - Enable extended SPIM features 1797 1798 1799 #ifndef NRFX_SPIM_EXTENDED_ENABLED 1800 #define NRFX_SPIM_EXTENDED_ENABLED 0 1801 #endif 1802 1803 // <o> NRFX_SPIM_MISO_PULL_CFG - MISO pin pull configuration. 1804 1805 // <0=> NRF_GPIO_PIN_NOPULL 1806 // <1=> NRF_GPIO_PIN_PULLDOWN 1807 // <3=> NRF_GPIO_PIN_PULLUP 1808 1809 #ifndef NRFX_SPIM_MISO_PULL_CFG 1810 #define NRFX_SPIM_MISO_PULL_CFG 1 1811 #endif 1812 1813 // <o> NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 1814 1815 // <0=> 0 (highest) 1816 // <1=> 1 1817 // <2=> 2 1818 // <3=> 3 1819 // <4=> 4 1820 // <5=> 5 1821 // <6=> 6 1822 // <7=> 7 1823 1824 #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 1825 #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 7 1826 #endif 1827 1828 // <e> NRFX_SPIM_CONFIG_LOG_ENABLED - Enables logging in the module. 1829 //========================================================== 1830 #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED 1831 #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 1832 #endif 1833 // <o> NRFX_SPIM_CONFIG_LOG_LEVEL - Default Severity level 1834 1835 // <0=> Off 1836 // <1=> Error 1837 // <2=> Warning 1838 // <3=> Info 1839 // <4=> Debug 1840 1841 #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL 1842 #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 1843 #endif 1844 1845 // <o> NRFX_SPIM_CONFIG_INFO_COLOR - ANSI escape code prefix. 1846 1847 // <0=> Default 1848 // <1=> Black 1849 // <2=> Red 1850 // <3=> Green 1851 // <4=> Yellow 1852 // <5=> Blue 1853 // <6=> Magenta 1854 // <7=> Cyan 1855 // <8=> White 1856 1857 #ifndef NRFX_SPIM_CONFIG_INFO_COLOR 1858 #define NRFX_SPIM_CONFIG_INFO_COLOR 0 1859 #endif 1860 1861 // <o> NRFX_SPIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1862 1863 // <0=> Default 1864 // <1=> Black 1865 // <2=> Red 1866 // <3=> Green 1867 // <4=> Yellow 1868 // <5=> Blue 1869 // <6=> Magenta 1870 // <7=> Cyan 1871 // <8=> White 1872 1873 #ifndef NRFX_SPIM_CONFIG_DEBUG_COLOR 1874 #define NRFX_SPIM_CONFIG_DEBUG_COLOR 0 1875 #endif 1876 1877 // </e> 1878 1879 // <q> NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED - Enables nRF52840 anomaly 198 workaround for SPIM3. 1880 1881 1882 // <i> See more in the Errata document located at 1883 // <i> https://infocenter.nordicsemi.com/ 1884 1885 #ifndef NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED 1886 #define NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED 0 1887 #endif 1888 1889 // </e> 1890 1891 // <e> NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver 1892 //========================================================== 1893 #ifndef NRFX_SPIS_ENABLED 1894 #define NRFX_SPIS_ENABLED 1 1895 #endif 1896 // <q> NRFX_SPIS0_ENABLED - Enable SPIS0 instance 1897 1898 1899 #ifndef NRFX_SPIS0_ENABLED 1900 #define NRFX_SPIS0_ENABLED 1 1901 #endif 1902 1903 // <q> NRFX_SPIS1_ENABLED - Enable SPIS1 instance 1904 1905 1906 #ifndef NRFX_SPIS1_ENABLED 1907 #define NRFX_SPIS1_ENABLED 1 1908 #endif 1909 1910 // <q> NRFX_SPIS2_ENABLED - Enable SPIS2 instance 1911 1912 1913 #ifndef NRFX_SPIS2_ENABLED 1914 #define NRFX_SPIS2_ENABLED 1 1915 #endif 1916 1917 // <o> NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 1918 1919 // <0=> 0 (highest) 1920 // <1=> 1 1921 // <2=> 2 1922 // <3=> 3 1923 // <4=> 4 1924 // <5=> 5 1925 // <6=> 6 1926 // <7=> 7 1927 1928 #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 1929 #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 1930 #endif 1931 1932 // <o> NRFX_SPIS_DEFAULT_DEF - SPIS default DEF character <0-255> 1933 1934 1935 #ifndef NRFX_SPIS_DEFAULT_DEF 1936 #define NRFX_SPIS_DEFAULT_DEF 255 1937 #endif 1938 1939 // <o> NRFX_SPIS_DEFAULT_ORC - SPIS default ORC character <0-255> 1940 1941 1942 #ifndef NRFX_SPIS_DEFAULT_ORC 1943 #define NRFX_SPIS_DEFAULT_ORC 255 1944 #endif 1945 1946 // <e> NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module. 1947 //========================================================== 1948 #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED 1949 #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 1950 #endif 1951 // <o> NRFX_SPIS_CONFIG_LOG_LEVEL - Default Severity level 1952 1953 // <0=> Off 1954 // <1=> Error 1955 // <2=> Warning 1956 // <3=> Info 1957 // <4=> Debug 1958 1959 #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL 1960 #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 1961 #endif 1962 1963 // <o> NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix. 1964 1965 // <0=> Default 1966 // <1=> Black 1967 // <2=> Red 1968 // <3=> Green 1969 // <4=> Yellow 1970 // <5=> Blue 1971 // <6=> Magenta 1972 // <7=> Cyan 1973 // <8=> White 1974 1975 #ifndef NRFX_SPIS_CONFIG_INFO_COLOR 1976 #define NRFX_SPIS_CONFIG_INFO_COLOR 0 1977 #endif 1978 1979 // <o> NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1980 1981 // <0=> Default 1982 // <1=> Black 1983 // <2=> Red 1984 // <3=> Green 1985 // <4=> Yellow 1986 // <5=> Blue 1987 // <6=> Magenta 1988 // <7=> Cyan 1989 // <8=> White 1990 1991 #ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR 1992 #define NRFX_SPIS_CONFIG_DEBUG_COLOR 0 1993 #endif 1994 1995 // </e> 1996 1997 // </e> 1998 1999 // <e> NRFX_SPI_ENABLED - nrfx_spi - SPI peripheral driver 2000 //========================================================== 2001 #ifndef NRFX_SPI_ENABLED 2002 #define NRFX_SPI_ENABLED 1 2003 #endif 2004 // <q> NRFX_SPI0_ENABLED - Enable SPI0 instance 2005 2006 2007 #ifndef NRFX_SPI0_ENABLED 2008 #define NRFX_SPI0_ENABLED 1 2009 #endif 2010 2011 // <q> NRFX_SPI1_ENABLED - Enable SPI1 instance 2012 2013 2014 #ifndef NRFX_SPI1_ENABLED 2015 #define NRFX_SPI1_ENABLED 1 2016 #endif 2017 2018 // <q> NRFX_SPI2_ENABLED - Enable SPI2 instance 2019 2020 2021 #ifndef NRFX_SPI2_ENABLED 2022 #define NRFX_SPI2_ENABLED 1 2023 #endif 2024 2025 // <o> NRFX_SPI_MISO_PULL_CFG - MISO pin pull configuration. 2026 2027 // <0=> NRF_GPIO_PIN_NOPULL 2028 // <1=> NRF_GPIO_PIN_PULLDOWN 2029 // <3=> NRF_GPIO_PIN_PULLUP 2030 2031 #ifndef NRFX_SPI_MISO_PULL_CFG 2032 #define NRFX_SPI_MISO_PULL_CFG 1 2033 #endif 2034 2035 // <o> NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 2036 2037 // <0=> 0 (highest) 2038 // <1=> 1 2039 // <2=> 2 2040 // <3=> 3 2041 // <4=> 4 2042 // <5=> 5 2043 // <6=> 6 2044 // <7=> 7 2045 2046 #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY 2047 #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY 7 2048 #endif 2049 2050 // <e> NRFX_SPI_CONFIG_LOG_ENABLED - Enables logging in the module. 2051 //========================================================== 2052 #ifndef NRFX_SPI_CONFIG_LOG_ENABLED 2053 #define NRFX_SPI_CONFIG_LOG_ENABLED 0 2054 #endif 2055 // <o> NRFX_SPI_CONFIG_LOG_LEVEL - Default Severity level 2056 2057 // <0=> Off 2058 // <1=> Error 2059 // <2=> Warning 2060 // <3=> Info 2061 // <4=> Debug 2062 2063 #ifndef NRFX_SPI_CONFIG_LOG_LEVEL 2064 #define NRFX_SPI_CONFIG_LOG_LEVEL 3 2065 #endif 2066 2067 // <o> NRFX_SPI_CONFIG_INFO_COLOR - ANSI escape code prefix. 2068 2069 // <0=> Default 2070 // <1=> Black 2071 // <2=> Red 2072 // <3=> Green 2073 // <4=> Yellow 2074 // <5=> Blue 2075 // <6=> Magenta 2076 // <7=> Cyan 2077 // <8=> White 2078 2079 #ifndef NRFX_SPI_CONFIG_INFO_COLOR 2080 #define NRFX_SPI_CONFIG_INFO_COLOR 0 2081 #endif 2082 2083 // <o> NRFX_SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2084 2085 // <0=> Default 2086 // <1=> Black 2087 // <2=> Red 2088 // <3=> Green 2089 // <4=> Yellow 2090 // <5=> Blue 2091 // <6=> Magenta 2092 // <7=> Cyan 2093 // <8=> White 2094 2095 #ifndef NRFX_SPI_CONFIG_DEBUG_COLOR 2096 #define NRFX_SPI_CONFIG_DEBUG_COLOR 0 2097 #endif 2098 2099 // </e> 2100 2101 // </e> 2102 2103 // <e> NRFX_SWI_ENABLED - nrfx_swi - SWI/EGU peripheral allocator 2104 //========================================================== 2105 #ifndef NRFX_SWI_ENABLED 2106 #define NRFX_SWI_ENABLED 1 2107 #endif 2108 // <q> NRFX_EGU_ENABLED - Enable EGU support 2109 2110 2111 #ifndef NRFX_EGU_ENABLED 2112 #define NRFX_EGU_ENABLED 1 2113 #endif 2114 2115 // <q> NRFX_SWI0_DISABLED - Exclude SWI0 from being utilized by the driver 2116 2117 2118 #ifndef NRFX_SWI0_DISABLED 2119 #define NRFX_SWI0_DISABLED 0 2120 #endif 2121 2122 // <q> NRFX_SWI1_DISABLED - Exclude SWI1 from being utilized by the driver 2123 2124 2125 #ifndef NRFX_SWI1_DISABLED 2126 #define NRFX_SWI1_DISABLED 0 2127 #endif 2128 2129 // <q> NRFX_SWI2_DISABLED - Exclude SWI2 from being utilized by the driver 2130 2131 2132 #ifndef NRFX_SWI2_DISABLED 2133 #define NRFX_SWI2_DISABLED 0 2134 #endif 2135 2136 // <q> NRFX_SWI3_DISABLED - Exclude SWI3 from being utilized by the driver 2137 2138 2139 #ifndef NRFX_SWI3_DISABLED 2140 #define NRFX_SWI3_DISABLED 0 2141 #endif 2142 2143 // <q> NRFX_SWI4_DISABLED - Exclude SWI4 from being utilized by the driver 2144 2145 2146 #ifndef NRFX_SWI4_DISABLED 2147 #define NRFX_SWI4_DISABLED 0 2148 #endif 2149 2150 // <q> NRFX_SWI5_DISABLED - Exclude SWI5 from being utilized by the driver 2151 2152 2153 #ifndef NRFX_SWI5_DISABLED 2154 #define NRFX_SWI5_DISABLED 0 2155 #endif 2156 2157 // <e> NRFX_SWI_CONFIG_LOG_ENABLED - Enables logging in the module. 2158 //========================================================== 2159 #ifndef NRFX_SWI_CONFIG_LOG_ENABLED 2160 #define NRFX_SWI_CONFIG_LOG_ENABLED 0 2161 #endif 2162 // <o> NRFX_SWI_CONFIG_LOG_LEVEL - Default Severity level 2163 2164 // <0=> Off 2165 // <1=> Error 2166 // <2=> Warning 2167 // <3=> Info 2168 // <4=> Debug 2169 2170 #ifndef NRFX_SWI_CONFIG_LOG_LEVEL 2171 #define NRFX_SWI_CONFIG_LOG_LEVEL 3 2172 #endif 2173 2174 // <o> NRFX_SWI_CONFIG_INFO_COLOR - ANSI escape code prefix. 2175 2176 // <0=> Default 2177 // <1=> Black 2178 // <2=> Red 2179 // <3=> Green 2180 // <4=> Yellow 2181 // <5=> Blue 2182 // <6=> Magenta 2183 // <7=> Cyan 2184 // <8=> White 2185 2186 #ifndef NRFX_SWI_CONFIG_INFO_COLOR 2187 #define NRFX_SWI_CONFIG_INFO_COLOR 0 2188 #endif 2189 2190 // <o> NRFX_SWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2191 2192 // <0=> Default 2193 // <1=> Black 2194 // <2=> Red 2195 // <3=> Green 2196 // <4=> Yellow 2197 // <5=> Blue 2198 // <6=> Magenta 2199 // <7=> Cyan 2200 // <8=> White 2201 2202 #ifndef NRFX_SWI_CONFIG_DEBUG_COLOR 2203 #define NRFX_SWI_CONFIG_DEBUG_COLOR 0 2204 #endif 2205 2206 // </e> 2207 2208 // </e> 2209 2210 // <q> NRFX_SYSTICK_ENABLED - nrfx_systick - ARM(R) SysTick driver 2211 2212 2213 #ifndef NRFX_SYSTICK_ENABLED 2214 #define NRFX_SYSTICK_ENABLED 1 2215 #endif 2216 2217 // <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver 2218 //========================================================== 2219 #ifndef NRFX_TIMER_ENABLED 2220 #define NRFX_TIMER_ENABLED 1 2221 #endif 2222 // <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance 2223 2224 2225 #ifndef NRFX_TIMER0_ENABLED 2226 #define NRFX_TIMER0_ENABLED 1 2227 #endif 2228 2229 // <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance 2230 2231 2232 #ifndef NRFX_TIMER1_ENABLED 2233 #define NRFX_TIMER1_ENABLED 1 2234 #endif 2235 2236 // <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance 2237 2238 2239 #ifndef NRFX_TIMER2_ENABLED 2240 #define NRFX_TIMER2_ENABLED 1 2241 #endif 2242 2243 // <q> NRFX_TIMER3_ENABLED - Enable TIMER3 instance 2244 2245 2246 #ifndef NRFX_TIMER3_ENABLED 2247 #define NRFX_TIMER3_ENABLED 1 2248 #endif 2249 2250 // <q> NRFX_TIMER4_ENABLED - Enable TIMER4 instance 2251 2252 2253 #ifndef NRFX_TIMER4_ENABLED 2254 #define NRFX_TIMER4_ENABLED 1 2255 #endif 2256 2257 // <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode 2258 2259 // <0=> 16 MHz 2260 // <1=> 8 MHz 2261 // <2=> 4 MHz 2262 // <3=> 2 MHz 2263 // <4=> 1 MHz 2264 // <5=> 500 kHz 2265 // <6=> 250 kHz 2266 // <7=> 125 kHz 2267 // <8=> 62.5 kHz 2268 // <9=> 31.25 kHz 2269 2270 #ifndef NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY 2271 #define NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY 0 2272 #endif 2273 2274 // <o> NRFX_TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation 2275 2276 // <0=> Timer 2277 // <1=> Counter 2278 2279 #ifndef NRFX_TIMER_DEFAULT_CONFIG_MODE 2280 #define NRFX_TIMER_DEFAULT_CONFIG_MODE 0 2281 #endif 2282 2283 // <o> NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width 2284 2285 // <0=> 16 bit 2286 // <1=> 8 bit 2287 // <2=> 24 bit 2288 // <3=> 32 bit 2289 2290 #ifndef NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH 2291 #define NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH 0 2292 #endif 2293 2294 // <o> NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 2295 2296 // <0=> 0 (highest) 2297 // <1=> 1 2298 // <2=> 2 2299 // <3=> 3 2300 // <4=> 4 2301 // <5=> 5 2302 // <6=> 6 2303 // <7=> 7 2304 2305 #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 2306 #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 7 2307 #endif 2308 2309 // <e> NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. 2310 //========================================================== 2311 #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED 2312 #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 2313 #endif 2314 // <o> NRFX_TIMER_CONFIG_LOG_LEVEL - Default Severity level 2315 2316 // <0=> Off 2317 // <1=> Error 2318 // <2=> Warning 2319 // <3=> Info 2320 // <4=> Debug 2321 2322 #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL 2323 #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 2324 #endif 2325 2326 // <o> NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. 2327 2328 // <0=> Default 2329 // <1=> Black 2330 // <2=> Red 2331 // <3=> Green 2332 // <4=> Yellow 2333 // <5=> Blue 2334 // <6=> Magenta 2335 // <7=> Cyan 2336 // <8=> White 2337 2338 #ifndef NRFX_TIMER_CONFIG_INFO_COLOR 2339 #define NRFX_TIMER_CONFIG_INFO_COLOR 0 2340 #endif 2341 2342 // <o> NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2343 2344 // <0=> Default 2345 // <1=> Black 2346 // <2=> Red 2347 // <3=> Green 2348 // <4=> Yellow 2349 // <5=> Blue 2350 // <6=> Magenta 2351 // <7=> Cyan 2352 // <8=> White 2353 2354 #ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR 2355 #define NRFX_TIMER_CONFIG_DEBUG_COLOR 0 2356 #endif 2357 2358 // </e> 2359 2360 // </e> 2361 2362 // <e> NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver 2363 //========================================================== 2364 #ifndef NRFX_TWIM_ENABLED 2365 #define NRFX_TWIM_ENABLED 1 2366 #endif 2367 // <q> NRFX_TWIM0_ENABLED - Enable TWIM0 instance 2368 2369 2370 #ifndef NRFX_TWIM0_ENABLED 2371 #define NRFX_TWIM0_ENABLED 1 2372 #endif 2373 2374 // <q> NRFX_TWIM1_ENABLED - Enable TWIM1 instance 2375 2376 2377 #ifndef NRFX_TWIM1_ENABLED 2378 #define NRFX_TWIM1_ENABLED 1 2379 #endif 2380 2381 // <o> NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY - Frequency 2382 2383 // <26738688=> 100k 2384 // <67108864=> 250k 2385 // <104857600=> 400k 2386 2387 #ifndef NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 2388 #define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 26738688 2389 #endif 2390 2391 // <q> NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit 2392 2393 2394 #ifndef NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 2395 #define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0 2396 #endif 2397 2398 // <o> NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 2399 2400 // <0=> 0 (highest) 2401 // <1=> 1 2402 // <2=> 2 2403 // <3=> 3 2404 // <4=> 4 2405 // <5=> 5 2406 // <6=> 6 2407 // <7=> 7 2408 2409 #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 2410 #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 7 2411 #endif 2412 2413 // <e> NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module. 2414 //========================================================== 2415 #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED 2416 #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 2417 #endif 2418 // <o> NRFX_TWIM_CONFIG_LOG_LEVEL - Default Severity level 2419 2420 // <0=> Off 2421 // <1=> Error 2422 // <2=> Warning 2423 // <3=> Info 2424 // <4=> Debug 2425 2426 #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL 2427 #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 2428 #endif 2429 2430 // <o> NRFX_TWIM_CONFIG_INFO_COLOR - ANSI escape code prefix. 2431 2432 // <0=> Default 2433 // <1=> Black 2434 // <2=> Red 2435 // <3=> Green 2436 // <4=> Yellow 2437 // <5=> Blue 2438 // <6=> Magenta 2439 // <7=> Cyan 2440 // <8=> White 2441 2442 #ifndef NRFX_TWIM_CONFIG_INFO_COLOR 2443 #define NRFX_TWIM_CONFIG_INFO_COLOR 0 2444 #endif 2445 2446 // <o> NRFX_TWIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2447 2448 // <0=> Default 2449 // <1=> Black 2450 // <2=> Red 2451 // <3=> Green 2452 // <4=> Yellow 2453 // <5=> Blue 2454 // <6=> Magenta 2455 // <7=> Cyan 2456 // <8=> White 2457 2458 #ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR 2459 #define NRFX_TWIM_CONFIG_DEBUG_COLOR 0 2460 #endif 2461 2462 // </e> 2463 2464 // </e> 2465 2466 // <e> NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver 2467 //========================================================== 2468 #ifndef NRFX_TWIS_ENABLED 2469 #define NRFX_TWIS_ENABLED 1 2470 #endif 2471 // <q> NRFX_TWIS0_ENABLED - Enable TWIS0 instance 2472 2473 2474 #ifndef NRFX_TWIS0_ENABLED 2475 #define NRFX_TWIS0_ENABLED 1 2476 #endif 2477 2478 // <q> NRFX_TWIS1_ENABLED - Enable TWIS1 instance 2479 2480 2481 #ifndef NRFX_TWIS1_ENABLED 2482 #define NRFX_TWIS1_ENABLED 1 2483 #endif 2484 2485 // <q> NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once 2486 2487 2488 // <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. 2489 2490 #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 2491 #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 2492 #endif 2493 2494 // <q> NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode 2495 2496 2497 // <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. 2498 2499 #ifndef NRFX_TWIS_NO_SYNC_MODE 2500 #define NRFX_TWIS_NO_SYNC_MODE 0 2501 #endif 2502 2503 // <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR0 - Address0 2504 #ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR0 2505 #define NRFX_TWIS_DEFAULT_CONFIG_ADDR0 0 2506 #endif 2507 2508 // <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR1 - Address1 2509 #ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR1 2510 #define NRFX_TWIS_DEFAULT_CONFIG_ADDR1 0 2511 #endif 2512 2513 // <o> NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration 2514 2515 // <0=> Disabled 2516 // <1=> Pull down 2517 // <3=> Pull up 2518 2519 #ifndef NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL 2520 #define NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL 0 2521 #endif 2522 2523 // <o> NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration 2524 2525 // <0=> Disabled 2526 // <1=> Pull down 2527 // <3=> Pull up 2528 2529 #ifndef NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL 2530 #define NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL 0 2531 #endif 2532 2533 // <o> NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 2534 2535 // <0=> 0 (highest) 2536 // <1=> 1 2537 // <2=> 2 2538 // <3=> 3 2539 // <4=> 4 2540 // <5=> 5 2541 // <6=> 6 2542 // <7=> 7 2543 2544 #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 2545 #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 2546 #endif 2547 2548 // <e> NRFX_TWIS_CONFIG_LOG_ENABLED - Enables logging in the module. 2549 //========================================================== 2550 #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED 2551 #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 2552 #endif 2553 // <o> NRFX_TWIS_CONFIG_LOG_LEVEL - Default Severity level 2554 2555 // <0=> Off 2556 // <1=> Error 2557 // <2=> Warning 2558 // <3=> Info 2559 // <4=> Debug 2560 2561 #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL 2562 #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 2563 #endif 2564 2565 // <o> NRFX_TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix. 2566 2567 // <0=> Default 2568 // <1=> Black 2569 // <2=> Red 2570 // <3=> Green 2571 // <4=> Yellow 2572 // <5=> Blue 2573 // <6=> Magenta 2574 // <7=> Cyan 2575 // <8=> White 2576 2577 #ifndef NRFX_TWIS_CONFIG_INFO_COLOR 2578 #define NRFX_TWIS_CONFIG_INFO_COLOR 0 2579 #endif 2580 2581 // <o> NRFX_TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2582 2583 // <0=> Default 2584 // <1=> Black 2585 // <2=> Red 2586 // <3=> Green 2587 // <4=> Yellow 2588 // <5=> Blue 2589 // <6=> Magenta 2590 // <7=> Cyan 2591 // <8=> White 2592 2593 #ifndef NRFX_TWIS_CONFIG_DEBUG_COLOR 2594 #define NRFX_TWIS_CONFIG_DEBUG_COLOR 0 2595 #endif 2596 2597 // </e> 2598 2599 // </e> 2600 2601 // <e> NRFX_TWI_ENABLED - nrfx_twi - TWI peripheral driver 2602 //========================================================== 2603 #ifndef NRFX_TWI_ENABLED 2604 #define NRFX_TWI_ENABLED 1 2605 #endif 2606 // <q> NRFX_TWI0_ENABLED - Enable TWI0 instance 2607 2608 2609 #ifndef NRFX_TWI0_ENABLED 2610 #define NRFX_TWI0_ENABLED 1 2611 #endif 2612 2613 // <q> NRFX_TWI1_ENABLED - Enable TWI1 instance 2614 2615 2616 #ifndef NRFX_TWI1_ENABLED 2617 #define NRFX_TWI1_ENABLED 1 2618 #endif 2619 2620 // <o> NRFX_TWI_DEFAULT_CONFIG_FREQUENCY - Frequency 2621 2622 // <26738688=> 100k 2623 // <67108864=> 250k 2624 // <104857600=> 400k 2625 2626 #ifndef NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 2627 #define NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 26738688 2628 #endif 2629 2630 // <q> NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit 2631 2632 2633 #ifndef NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 2634 #define NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0 2635 #endif 2636 2637 // <o> NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 2638 2639 // <0=> 0 (highest) 2640 // <1=> 1 2641 // <2=> 2 2642 // <3=> 3 2643 // <4=> 4 2644 // <5=> 5 2645 // <6=> 6 2646 // <7=> 7 2647 2648 #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 2649 #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 7 2650 #endif 2651 2652 // <e> NRFX_TWI_CONFIG_LOG_ENABLED - Enables logging in the module. 2653 //========================================================== 2654 #ifndef NRFX_TWI_CONFIG_LOG_ENABLED 2655 #define NRFX_TWI_CONFIG_LOG_ENABLED 0 2656 #endif 2657 // <o> NRFX_TWI_CONFIG_LOG_LEVEL - Default Severity level 2658 2659 // <0=> Off 2660 // <1=> Error 2661 // <2=> Warning 2662 // <3=> Info 2663 // <4=> Debug 2664 2665 #ifndef NRFX_TWI_CONFIG_LOG_LEVEL 2666 #define NRFX_TWI_CONFIG_LOG_LEVEL 3 2667 #endif 2668 2669 // <o> NRFX_TWI_CONFIG_INFO_COLOR - ANSI escape code prefix. 2670 2671 // <0=> Default 2672 // <1=> Black 2673 // <2=> Red 2674 // <3=> Green 2675 // <4=> Yellow 2676 // <5=> Blue 2677 // <6=> Magenta 2678 // <7=> Cyan 2679 // <8=> White 2680 2681 #ifndef NRFX_TWI_CONFIG_INFO_COLOR 2682 #define NRFX_TWI_CONFIG_INFO_COLOR 0 2683 #endif 2684 2685 // <o> NRFX_TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2686 2687 // <0=> Default 2688 // <1=> Black 2689 // <2=> Red 2690 // <3=> Green 2691 // <4=> Yellow 2692 // <5=> Blue 2693 // <6=> Magenta 2694 // <7=> Cyan 2695 // <8=> White 2696 2697 #ifndef NRFX_TWI_CONFIG_DEBUG_COLOR 2698 #define NRFX_TWI_CONFIG_DEBUG_COLOR 0 2699 #endif 2700 2701 // </e> 2702 2703 // </e> 2704 2705 // <e> NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver 2706 //========================================================== 2707 #ifndef NRFX_UARTE_ENABLED 2708 #define NRFX_UARTE_ENABLED 1 2709 #endif 2710 // <o> NRFX_UARTE0_ENABLED - Enable UARTE0 instance 2711 #ifndef NRFX_UARTE0_ENABLED 2712 #define NRFX_UARTE0_ENABLED 1 2713 #endif 2714 2715 // <o> NRFX_UARTE1_ENABLED - Enable UARTE1 instance 2716 #ifndef NRFX_UARTE1_ENABLED 2717 #define NRFX_UARTE1_ENABLED 1 2718 #endif 2719 2720 // <o> NRFX_UARTE_DEFAULT_CONFIG_HWFC - Hardware Flow Control 2721 2722 // <0=> Disabled 2723 // <1=> Enabled 2724 2725 #ifndef NRFX_UARTE_DEFAULT_CONFIG_HWFC 2726 #define NRFX_UARTE_DEFAULT_CONFIG_HWFC 0 2727 #endif 2728 2729 // <o> NRFX_UARTE_DEFAULT_CONFIG_PARITY - Parity 2730 2731 // <0=> Excluded 2732 // <14=> Included 2733 2734 #ifndef NRFX_UARTE_DEFAULT_CONFIG_PARITY 2735 #define NRFX_UARTE_DEFAULT_CONFIG_PARITY 0 2736 #endif 2737 2738 // <o> NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE - Default Baudrate 2739 2740 // <323584=> 1200 baud 2741 // <643072=> 2400 baud 2742 // <1290240=> 4800 baud 2743 // <2576384=> 9600 baud 2744 // <3862528=> 14400 baud 2745 // <5152768=> 19200 baud 2746 // <7716864=> 28800 baud 2747 // <8388608=> 31250 baud 2748 // <10289152=> 38400 baud 2749 // <15007744=> 56000 baud 2750 // <15400960=> 57600 baud 2751 // <20615168=> 76800 baud 2752 // <30801920=> 115200 baud 2753 // <61865984=> 230400 baud 2754 // <67108864=> 250000 baud 2755 // <121634816=> 460800 baud 2756 // <251658240=> 921600 baud 2757 // <268435456=> 1000000 baud 2758 2759 #ifndef NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 2760 #define NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 30801920 2761 #endif 2762 2763 // <o> NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 2764 2765 // <0=> 0 (highest) 2766 // <1=> 1 2767 // <2=> 2 2768 // <3=> 3 2769 // <4=> 4 2770 // <5=> 5 2771 // <6=> 6 2772 // <7=> 7 2773 2774 #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 2775 #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 7 2776 #endif 2777 2778 // <e> NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module. 2779 //========================================================== 2780 #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED 2781 #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 2782 #endif 2783 // <o> NRFX_UARTE_CONFIG_LOG_LEVEL - Default Severity level 2784 2785 // <0=> Off 2786 // <1=> Error 2787 // <2=> Warning 2788 // <3=> Info 2789 // <4=> Debug 2790 2791 #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL 2792 #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 2793 #endif 2794 2795 // <o> NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix. 2796 2797 // <0=> Default 2798 // <1=> Black 2799 // <2=> Red 2800 // <3=> Green 2801 // <4=> Yellow 2802 // <5=> Blue 2803 // <6=> Magenta 2804 // <7=> Cyan 2805 // <8=> White 2806 2807 #ifndef NRFX_UARTE_CONFIG_INFO_COLOR 2808 #define NRFX_UARTE_CONFIG_INFO_COLOR 0 2809 #endif 2810 2811 // <o> NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2812 2813 // <0=> Default 2814 // <1=> Black 2815 // <2=> Red 2816 // <3=> Green 2817 // <4=> Yellow 2818 // <5=> Blue 2819 // <6=> Magenta 2820 // <7=> Cyan 2821 // <8=> White 2822 2823 #ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR 2824 #define NRFX_UARTE_CONFIG_DEBUG_COLOR 0 2825 #endif 2826 2827 // </e> 2828 2829 // </e> 2830 2831 // <e> NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver 2832 //========================================================== 2833 #ifndef NRFX_UART_ENABLED 2834 #define NRFX_UART_ENABLED 1 2835 #endif 2836 // <o> NRFX_UART0_ENABLED - Enable UART0 instance 2837 #ifndef NRFX_UART0_ENABLED 2838 #define NRFX_UART0_ENABLED 1 2839 #endif 2840 2841 // <o> NRFX_UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control 2842 2843 // <0=> Disabled 2844 // <1=> Enabled 2845 2846 #ifndef NRFX_UART_DEFAULT_CONFIG_HWFC 2847 #define NRFX_UART_DEFAULT_CONFIG_HWFC 0 2848 #endif 2849 2850 // <o> NRFX_UART_DEFAULT_CONFIG_PARITY - Parity 2851 2852 // <0=> Excluded 2853 // <14=> Included 2854 2855 #ifndef NRFX_UART_DEFAULT_CONFIG_PARITY 2856 #define NRFX_UART_DEFAULT_CONFIG_PARITY 0 2857 #endif 2858 2859 // <o> NRFX_UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate 2860 2861 // <323584=> 1200 baud 2862 // <643072=> 2400 baud 2863 // <1290240=> 4800 baud 2864 // <2576384=> 9600 baud 2865 // <3866624=> 14400 baud 2866 // <5152768=> 19200 baud 2867 // <7729152=> 28800 baud 2868 // <8388608=> 31250 baud 2869 // <10309632=> 38400 baud 2870 // <15007744=> 56000 baud 2871 // <15462400=> 57600 baud 2872 // <20615168=> 76800 baud 2873 // <30924800=> 115200 baud 2874 // <61845504=> 230400 baud 2875 // <67108864=> 250000 baud 2876 // <123695104=> 460800 baud 2877 // <247386112=> 921600 baud 2878 // <268435456=> 1000000 baud 2879 2880 #ifndef NRFX_UART_DEFAULT_CONFIG_BAUDRATE 2881 #define NRFX_UART_DEFAULT_CONFIG_BAUDRATE 30924800 2882 #endif 2883 2884 // <o> NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority 2885 2886 // <0=> 0 (highest) 2887 // <1=> 1 2888 // <2=> 2 2889 // <3=> 3 2890 // <4=> 4 2891 // <5=> 5 2892 // <6=> 6 2893 // <7=> 7 2894 2895 #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 2896 #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 7 2897 #endif 2898 2899 // <e> NRFX_UART_CONFIG_LOG_ENABLED - Enables logging in the module. 2900 //========================================================== 2901 #ifndef NRFX_UART_CONFIG_LOG_ENABLED 2902 #define NRFX_UART_CONFIG_LOG_ENABLED 0 2903 #endif 2904 // <o> NRFX_UART_CONFIG_LOG_LEVEL - Default Severity level 2905 2906 // <0=> Off 2907 // <1=> Error 2908 // <2=> Warning 2909 // <3=> Info 2910 // <4=> Debug 2911 2912 #ifndef NRFX_UART_CONFIG_LOG_LEVEL 2913 #define NRFX_UART_CONFIG_LOG_LEVEL 3 2914 #endif 2915 2916 // <o> NRFX_UART_CONFIG_INFO_COLOR - ANSI escape code prefix. 2917 2918 // <0=> Default 2919 // <1=> Black 2920 // <2=> Red 2921 // <3=> Green 2922 // <4=> Yellow 2923 // <5=> Blue 2924 // <6=> Magenta 2925 // <7=> Cyan 2926 // <8=> White 2927 2928 #ifndef NRFX_UART_CONFIG_INFO_COLOR 2929 #define NRFX_UART_CONFIG_INFO_COLOR 0 2930 #endif 2931 2932 // <o> NRFX_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2933 2934 // <0=> Default 2935 // <1=> Black 2936 // <2=> Red 2937 // <3=> Green 2938 // <4=> Yellow 2939 // <5=> Blue 2940 // <6=> Magenta 2941 // <7=> Cyan 2942 // <8=> White 2943 2944 #ifndef NRFX_UART_CONFIG_DEBUG_COLOR 2945 #define NRFX_UART_CONFIG_DEBUG_COLOR 0 2946 #endif 2947 2948 // </e> 2949 2950 // </e> 2951 2952 // <e> NRFX_USBD_ENABLED - nrfx_usbd - USBD peripheral driver 2953 //========================================================== 2954 #ifndef NRFX_USBD_ENABLED 2955 #define NRFX_USBD_ENABLED 1 2956 #endif 2957 // <o> NRFX_USBD_CONFIG_IRQ_PRIORITY - Interrupt priority 2958 2959 // <0=> 0 (highest) 2960 // <1=> 1 2961 // <2=> 2 2962 // <3=> 3 2963 // <4=> 4 2964 // <5=> 5 2965 // <6=> 6 2966 // <7=> 7 2967 2968 #ifndef NRFX_USBD_CONFIG_IRQ_PRIORITY 2969 #define NRFX_USBD_CONFIG_IRQ_PRIORITY 7 2970 #endif 2971 2972 // <q> USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers 2973 2974 // <i> This option gives priority to isochronous transfers. 2975 // <i> Enabling it assures that isochronous transfers are always processed, 2976 // <i> even if multiple other transfers are pending. 2977 // <i> Isochronous endpoints are prioritized before the usbd_dma_scheduler_algorithm 2978 // <i> function is called, so the option is independent of the algorithm chosen. 2979 2980 #ifndef NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST 2981 #define NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1 2982 #endif 2983 2984 // <q> USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no data is ready 2985 2986 2987 // <i> If set, ISO IN endpoint will respond to an IN token with ZLP when no data is ready to be sent. 2988 // <i> Else, there will be no response. 2989 2990 #ifndef NRFX_USBD_CONFIG_ISO_IN_ZLP 2991 #define NRFX_USBD_CONFIG_ISO_IN_ZLP 0 2992 #endif 2993 2994 // <e> NRFX_USBD_CONFIG_LOG_ENABLED - Enable logging in the module 2995 //========================================================== 2996 #ifndef NRFX_USBD_CONFIG_LOG_ENABLED 2997 #define NRFX_USBD_CONFIG_LOG_ENABLED 0 2998 #endif 2999 // <o> NRFX_USBD_CONFIG_LOG_LEVEL - Default Severity level 3000 3001 // <0=> Off 3002 // <1=> Error 3003 // <2=> Warning 3004 // <3=> Info 3005 // <4=> Debug 3006 3007 #ifndef NRFX_USBD_CONFIG_LOG_LEVEL 3008 #define NRFX_USBD_CONFIG_LOG_LEVEL 3 3009 #endif 3010 3011 // <o> NRFX_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix. 3012 3013 // <0=> Default 3014 // <1=> Black 3015 // <2=> Red 3016 // <3=> Green 3017 // <4=> Yellow 3018 // <5=> Blue 3019 // <6=> Magenta 3020 // <7=> Cyan 3021 // <8=> White 3022 3023 #ifndef NRFX_USBD_CONFIG_INFO_COLOR 3024 #define NRFX_USBD_CONFIG_INFO_COLOR 0 3025 #endif 3026 3027 // <o> NRFX_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 3028 3029 // <0=> Default 3030 // <1=> Black 3031 // <2=> Red 3032 // <3=> Green 3033 // <4=> Yellow 3034 // <5=> Blue 3035 // <6=> Magenta 3036 // <7=> Cyan 3037 // <8=> White 3038 3039 #ifndef NRFX_USBD_CONFIG_DEBUG_COLOR 3040 #define NRFX_USBD_CONFIG_DEBUG_COLOR 0 3041 #endif 3042 3043 // </e> 3044 3045 // </e> 3046 3047 // <e> NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver 3048 //========================================================== 3049 #ifndef NRFX_WDT_ENABLED 3050 #define NRFX_WDT_ENABLED 1 3051 #endif 3052 // <o> NRFX_WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode 3053 3054 // <1=> Run in SLEEP, Pause in HALT 3055 // <8=> Pause in SLEEP, Run in HALT 3056 // <9=> Run in SLEEP and HALT 3057 // <0=> Pause in SLEEP and HALT 3058 3059 #ifndef NRFX_WDT_CONFIG_BEHAVIOUR 3060 #define NRFX_WDT_CONFIG_BEHAVIOUR 1 3061 #endif 3062 3063 // <o> NRFX_WDT_CONFIG_RELOAD_VALUE - Reload value <15-4294967295> 3064 3065 3066 #ifndef NRFX_WDT_CONFIG_RELOAD_VALUE 3067 #define NRFX_WDT_CONFIG_RELOAD_VALUE 2000 3068 #endif 3069 3070 // <o> NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver 3071 3072 // <0=> Include WDT IRQ handling 3073 // <1=> Remove WDT IRQ handling 3074 3075 #ifndef NRFX_WDT_CONFIG_NO_IRQ 3076 #define NRFX_WDT_CONFIG_NO_IRQ 0 3077 #endif 3078 3079 // <o> NRFX_WDT_CONFIG_IRQ_PRIORITY - Interrupt priority 3080 3081 // <0=> 0 (highest) 3082 // <1=> 1 3083 // <2=> 2 3084 // <3=> 3 3085 // <4=> 4 3086 // <5=> 5 3087 // <6=> 6 3088 // <7=> 7 3089 3090 #ifndef NRFX_WDT_CONFIG_IRQ_PRIORITY 3091 #define NRFX_WDT_CONFIG_IRQ_PRIORITY 7 3092 #endif 3093 3094 // <e> NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module. 3095 //========================================================== 3096 #ifndef NRFX_WDT_CONFIG_LOG_ENABLED 3097 #define NRFX_WDT_CONFIG_LOG_ENABLED 0 3098 #endif 3099 // <o> NRFX_WDT_CONFIG_LOG_LEVEL - Default Severity level 3100 3101 // <0=> Off 3102 // <1=> Error 3103 // <2=> Warning 3104 // <3=> Info 3105 // <4=> Debug 3106 3107 #ifndef NRFX_WDT_CONFIG_LOG_LEVEL 3108 #define NRFX_WDT_CONFIG_LOG_LEVEL 3 3109 #endif 3110 3111 // <o> NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix. 3112 3113 // <0=> Default 3114 // <1=> Black 3115 // <2=> Red 3116 // <3=> Green 3117 // <4=> Yellow 3118 // <5=> Blue 3119 // <6=> Magenta 3120 // <7=> Cyan 3121 // <8=> White 3122 3123 #ifndef NRFX_WDT_CONFIG_INFO_COLOR 3124 #define NRFX_WDT_CONFIG_INFO_COLOR 0 3125 #endif 3126 3127 // <o> NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 3128 3129 // <0=> Default 3130 // <1=> Black 3131 // <2=> Red 3132 // <3=> Green 3133 // <4=> Yellow 3134 // <5=> Blue 3135 // <6=> Magenta 3136 // <7=> Cyan 3137 // <8=> White 3138 3139 #ifndef NRFX_WDT_CONFIG_DEBUG_COLOR 3140 #define NRFX_WDT_CONFIG_DEBUG_COLOR 0 3141 #endif 3142 3143 // </e> 3144 3145 // </e> 3146 3147 // </h> 3148 3149 #endif // NRFX_CONFIG_H__ 3150