1 /* 2 * Copyright (c) 2017 - 2023, Nordic Semiconductor ASA 3 * All rights reserved. 4 * 5 * SPDX-License-Identifier: BSD-3-Clause 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: 9 * 10 * 1. Redistributions of source code must retain the above copyright notice, this 11 * list of conditions and the following disclaimer. 12 * 13 * 2. Redistributions in binary form must reproduce the above copyright 14 * notice, this list of conditions and the following disclaimer in the 15 * documentation and/or other materials provided with the distribution. 16 * 17 * 3. Neither the name of the copyright holder nor the names of its 18 * contributors may be used to endorse or promote products derived from this 19 * software without specific prior written permission. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 25 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 * POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34 #ifndef NRFX_CONFIG_NRF51_H__ 35 #define NRFX_CONFIG_NRF51_H__ 36 37 #ifndef NRFX_CONFIG_H__ 38 #error "This file should not be included directly. Include nrfx_config.h instead." 39 #endif 40 41 42 /** 43 * @brief NRFX_DEFAULT_IRQ_PRIORITY 44 * 45 * Integer value. Minimum: 0 Maximum: 3 46 */ 47 #ifndef NRFX_DEFAULT_IRQ_PRIORITY 48 #define NRFX_DEFAULT_IRQ_PRIORITY 3 49 #endif 50 51 /** 52 * @brief NRFX_ADC_ENABLED 53 * 54 * Boolean. Accepted values 0 and 1. 55 */ 56 #ifndef NRFX_ADC_ENABLED 57 #define NRFX_ADC_ENABLED 0 58 #endif 59 60 /** 61 * @brief NRFX_ADC_DEFAULT_CONFIG_IRQ_PRIORITY 62 * 63 * Integer value. Minimum: 0 Maximum: 3 64 */ 65 #ifndef NRFX_ADC_DEFAULT_CONFIG_IRQ_PRIORITY 66 #define NRFX_ADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 67 #endif 68 69 /** 70 * @brief NRFX_ADC_CONFIG_LOG_ENABLED 71 * 72 * Boolean. Accepted values 0 and 1. 73 */ 74 #ifndef NRFX_ADC_CONFIG_LOG_ENABLED 75 #define NRFX_ADC_CONFIG_LOG_ENABLED 0 76 #endif 77 78 /** 79 * @brief NRFX_ADC_CONFIG_LOG_LEVEL 80 * 81 * Integer value. 82 * Supported values: 83 * - Off = 0 84 * - Error = 1 85 * - Warning = 2 86 * - Info = 3 87 * - Debug = 4 88 */ 89 #ifndef NRFX_ADC_CONFIG_LOG_LEVEL 90 #define NRFX_ADC_CONFIG_LOG_LEVEL 3 91 #endif 92 93 /** 94 * @brief NRFX_CLOCK_ENABLED 95 * 96 * Boolean. Accepted values 0 and 1. 97 */ 98 #ifndef NRFX_CLOCK_ENABLED 99 #define NRFX_CLOCK_ENABLED 0 100 #endif 101 102 /** 103 * @brief NRFX_CLOCK_CONFIG_LF_SRC 104 * 105 * Integer value. 106 * Supported values: 107 * - RC = 0 108 * - XTAL = 1 109 * - Synth = 2 110 */ 111 #ifndef NRFX_CLOCK_CONFIG_LF_SRC 112 #define NRFX_CLOCK_CONFIG_LF_SRC 1 113 #endif 114 115 /** 116 * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 117 * 118 * Boolean. Accepted values 0 and 1. 119 */ 120 #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 121 #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 122 #endif 123 124 /** 125 * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 126 * 127 * Integer value. Minimum: 0 Maximum: 3 128 */ 129 #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 130 #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 131 #endif 132 133 /** 134 * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED 135 * 136 * Boolean. Accepted values 0 and 1. 137 */ 138 #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED 139 #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 140 #endif 141 142 /** 143 * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL 144 * 145 * Integer value. 146 * Supported values: 147 * - Off = 0 148 * - Error = 1 149 * - Warning = 2 150 * - Info = 3 151 * - Debug = 4 152 */ 153 #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL 154 #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 155 #endif 156 157 /** 158 * @brief NRFX_GPIOTE_ENABLED 159 * 160 * Boolean. Accepted values 0 and 1. 161 */ 162 #ifndef NRFX_GPIOTE_ENABLED 163 #define NRFX_GPIOTE_ENABLED 0 164 #endif 165 166 /** 167 * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY 168 * 169 * Integer value. Minimum: 0 Maximum: 3 170 */ 171 #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY 172 #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 173 #endif 174 175 /** 176 * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 177 * 178 * Integer value. Minimum: 0 Maximum: 15 179 */ 180 #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 181 #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 2 182 #endif 183 184 /** 185 * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED 186 * 187 * Boolean. Accepted values 0 and 1. 188 */ 189 #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED 190 #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 191 #endif 192 193 /** 194 * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL 195 * 196 * Integer value. 197 * Supported values: 198 * - Off = 0 199 * - Error = 1 200 * - Warning = 2 201 * - Info = 3 202 * - Debug = 4 203 */ 204 #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL 205 #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 206 #endif 207 208 /** 209 * @brief NRFX_LPCOMP_ENABLED 210 * 211 * Boolean. Accepted values 0 and 1. 212 */ 213 #ifndef NRFX_LPCOMP_ENABLED 214 #define NRFX_LPCOMP_ENABLED 0 215 #endif 216 217 /** 218 * @brief NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY 219 * 220 * Integer value. Minimum: 0 Maximum: 3 221 */ 222 #ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY 223 #define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 224 #endif 225 226 /** 227 * @brief NRFX_LPCOMP_CONFIG_LOG_ENABLED 228 * 229 * Boolean. Accepted values 0 and 1. 230 */ 231 #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED 232 #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 233 #endif 234 235 /** 236 * @brief NRFX_LPCOMP_CONFIG_LOG_LEVEL 237 * 238 * Integer value. 239 * Supported values: 240 * - Off = 0 241 * - Error = 1 242 * - Warning = 2 243 * - Info = 3 244 * - Debug = 4 245 */ 246 #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL 247 #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3 248 #endif 249 250 /** 251 * @brief NRFX_NVMC_ENABLED 252 * 253 * Boolean. Accepted values 0 and 1. 254 */ 255 #ifndef NRFX_NVMC_ENABLED 256 #define NRFX_NVMC_ENABLED 0 257 #endif 258 259 /** 260 * @brief NRFX_POWER_ENABLED 261 * 262 * Boolean. Accepted values 0 and 1. 263 */ 264 #ifndef NRFX_POWER_ENABLED 265 #define NRFX_POWER_ENABLED 0 266 #endif 267 268 /** 269 * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY 270 * 271 * Integer value. Minimum: 0 Maximum: 3 272 */ 273 #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY 274 #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 275 #endif 276 277 /** 278 * @brief NRFX_PPI_ENABLED 279 * 280 * Boolean. Accepted values 0 and 1. 281 */ 282 #ifndef NRFX_PPI_ENABLED 283 #define NRFX_PPI_ENABLED 0 284 #endif 285 286 /** 287 * @brief NRFX_PPI_CONFIG_LOG_ENABLED 288 * 289 * Boolean. Accepted values 0 and 1. 290 */ 291 #ifndef NRFX_PPI_CONFIG_LOG_ENABLED 292 #define NRFX_PPI_CONFIG_LOG_ENABLED 0 293 #endif 294 295 /** 296 * @brief NRFX_PPI_CONFIG_LOG_LEVEL 297 * 298 * Integer value. 299 * Supported values: 300 * - Off = 0 301 * - Error = 1 302 * - Warning = 2 303 * - Info = 3 304 * - Debug = 4 305 */ 306 #ifndef NRFX_PPI_CONFIG_LOG_LEVEL 307 #define NRFX_PPI_CONFIG_LOG_LEVEL 3 308 #endif 309 310 /** 311 * @brief NRFX_QDEC_ENABLED 312 * 313 * Boolean. Accepted values 0 and 1. 314 */ 315 #ifndef NRFX_QDEC_ENABLED 316 #define NRFX_QDEC_ENABLED 0 317 #endif 318 319 /** 320 * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY 321 * 322 * Integer value. Minimum: 0 Maximum: 3 323 */ 324 #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY 325 #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 326 #endif 327 328 /** 329 * @brief NRFX_QDEC_CONFIG_LOG_ENABLED 330 * 331 * Boolean. Accepted values 0 and 1. 332 */ 333 #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED 334 #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 335 #endif 336 337 /** 338 * @brief NRFX_QDEC_CONFIG_LOG_LEVEL 339 * 340 * Integer value. 341 * Supported values: 342 * - Off = 0 343 * - Error = 1 344 * - Warning = 2 345 * - Info = 3 346 * - Debug = 4 347 */ 348 #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL 349 #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 350 #endif 351 352 /** 353 * @brief NRFX_RNG_ENABLED 354 * 355 * Boolean. Accepted values 0 and 1. 356 */ 357 #ifndef NRFX_RNG_ENABLED 358 #define NRFX_RNG_ENABLED 0 359 #endif 360 361 /** 362 * @brief NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY 363 * 364 * Integer value. Minimum: 0 Maximum: 3 365 */ 366 #ifndef NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY 367 #define NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 368 #endif 369 370 /** 371 * @brief NRFX_RNG_CONFIG_LOG_ENABLED 372 * 373 * Boolean. Accepted values 0 and 1. 374 */ 375 #ifndef NRFX_RNG_CONFIG_LOG_ENABLED 376 #define NRFX_RNG_CONFIG_LOG_ENABLED 0 377 #endif 378 379 /** 380 * @brief NRFX_RNG_CONFIG_LOG_LEVEL 381 * 382 * Integer value. 383 * Supported values: 384 * - Off = 0 385 * - Error = 1 386 * - Warning = 2 387 * - Info = 3 388 * - Debug = 4 389 */ 390 #ifndef NRFX_RNG_CONFIG_LOG_LEVEL 391 #define NRFX_RNG_CONFIG_LOG_LEVEL 3 392 #endif 393 394 /** 395 * @brief NRFX_RTC_ENABLED 396 * 397 * Boolean. Accepted values 0 and 1. 398 */ 399 #ifndef NRFX_RTC_ENABLED 400 #define NRFX_RTC_ENABLED 0 401 #endif 402 403 /** 404 * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 405 * 406 * Integer value. Minimum: 0 Maximum: 3 407 */ 408 #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 409 #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 410 #endif 411 412 /** 413 * @brief NRFX_RTC_CONFIG_LOG_ENABLED 414 * 415 * Boolean. Accepted values 0 and 1. 416 */ 417 #ifndef NRFX_RTC_CONFIG_LOG_ENABLED 418 #define NRFX_RTC_CONFIG_LOG_ENABLED 0 419 #endif 420 421 /** 422 * @brief NRFX_RTC_CONFIG_LOG_LEVEL 423 * 424 * Integer value. 425 * Supported values: 426 * - Off = 0 427 * - Error = 1 428 * - Warning = 2 429 * - Info = 3 430 * - Debug = 4 431 */ 432 #ifndef NRFX_RTC_CONFIG_LOG_LEVEL 433 #define NRFX_RTC_CONFIG_LOG_LEVEL 3 434 #endif 435 436 /** 437 * @brief NRFX_RTC0_ENABLED 438 * 439 * Boolean. Accepted values 0 and 1. 440 */ 441 #ifndef NRFX_RTC0_ENABLED 442 #define NRFX_RTC0_ENABLED 0 443 #endif 444 445 /** 446 * @brief NRFX_RTC1_ENABLED 447 * 448 * Boolean. Accepted values 0 and 1. 449 */ 450 #ifndef NRFX_RTC1_ENABLED 451 #define NRFX_RTC1_ENABLED 0 452 #endif 453 454 /** 455 * @brief NRFX_SPI_ENABLED 456 * 457 * Boolean. Accepted values 0 and 1. 458 */ 459 #ifndef NRFX_SPI_ENABLED 460 #define NRFX_SPI_ENABLED 0 461 #endif 462 463 /** 464 * @brief NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY 465 * 466 * Integer value. Minimum: 0 Maximum: 3 467 */ 468 #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY 469 #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 470 #endif 471 472 /** 473 * @brief NRFX_SPI_CONFIG_LOG_ENABLED 474 * 475 * Boolean. Accepted values 0 and 1. 476 */ 477 #ifndef NRFX_SPI_CONFIG_LOG_ENABLED 478 #define NRFX_SPI_CONFIG_LOG_ENABLED 0 479 #endif 480 481 /** 482 * @brief NRFX_SPI_CONFIG_LOG_LEVEL 483 * 484 * Integer value. 485 * Supported values: 486 * - Off = 0 487 * - Error = 1 488 * - Warning = 2 489 * - Info = 3 490 * - Debug = 4 491 */ 492 #ifndef NRFX_SPI_CONFIG_LOG_LEVEL 493 #define NRFX_SPI_CONFIG_LOG_LEVEL 3 494 #endif 495 496 /** 497 * @brief NRFX_SPI0_ENABLED 498 * 499 * Boolean. Accepted values 0 and 1. 500 */ 501 #ifndef NRFX_SPI0_ENABLED 502 #define NRFX_SPI0_ENABLED 0 503 #endif 504 505 /** 506 * @brief NRFX_SPI1_ENABLED 507 * 508 * Boolean. Accepted values 0 and 1. 509 */ 510 #ifndef NRFX_SPI1_ENABLED 511 #define NRFX_SPI1_ENABLED 0 512 #endif 513 514 /** 515 * @brief NRFX_SPIS_ENABLED 516 * 517 * Boolean. Accepted values 0 and 1. 518 */ 519 #ifndef NRFX_SPIS_ENABLED 520 #define NRFX_SPIS_ENABLED 0 521 #endif 522 523 /** 524 * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 525 * 526 * Integer value. Minimum: 0 Maximum: 3 527 */ 528 #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 529 #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 530 #endif 531 532 /** 533 * @brief NRFX_SPIS_CONFIG_LOG_ENABLED 534 * 535 * Boolean. Accepted values 0 and 1. 536 */ 537 #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED 538 #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 539 #endif 540 541 /** 542 * @brief NRFX_SPIS_CONFIG_LOG_LEVEL 543 * 544 * Integer value. 545 * Supported values: 546 * - Off = 0 547 * - Error = 1 548 * - Warning = 2 549 * - Info = 3 550 * - Debug = 4 551 */ 552 #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL 553 #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 554 #endif 555 556 /** 557 * @brief NRFX_SPIS1_ENABLED 558 * 559 * Boolean. Accepted values 0 and 1. 560 */ 561 #ifndef NRFX_SPIS1_ENABLED 562 #define NRFX_SPIS1_ENABLED 0 563 #endif 564 565 /** 566 * @brief NRFX_SYSTICK_ENABLED 567 * 568 * Boolean. Accepted values 0 and 1. 569 */ 570 #ifndef NRFX_SYSTICK_ENABLED 571 #define NRFX_SYSTICK_ENABLED 0 572 #endif 573 574 /** 575 * @brief NRFX_TEMP_ENABLED 576 * 577 * Boolean. Accepted values 0 and 1. 578 */ 579 #ifndef NRFX_TEMP_ENABLED 580 #define NRFX_TEMP_ENABLED 0 581 #endif 582 583 /** 584 * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY 585 * 586 * Integer value. Minimum: 0 Maximum: 3 587 */ 588 #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY 589 #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 590 #endif 591 592 /** 593 * @brief NRFX_TEMP_CONFIG_LOG_ENABLED 594 * 595 * Boolean. Accepted values 0 and 1. 596 */ 597 #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED 598 #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 599 #endif 600 601 /** 602 * @brief NRFX_TEMP_CONFIG_LOG_LEVEL 603 * 604 * Integer value. 605 * Supported values: 606 * - Off = 0 607 * - Error = 1 608 * - Warning = 2 609 * - Info = 3 610 * - Debug = 4 611 */ 612 #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL 613 #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 614 #endif 615 616 /** 617 * @brief NRFX_TIMER_ENABLED 618 * 619 * Boolean. Accepted values 0 and 1. 620 */ 621 #ifndef NRFX_TIMER_ENABLED 622 #define NRFX_TIMER_ENABLED 0 623 #endif 624 625 /** 626 * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 627 * 628 * Integer value. Minimum: 0 Maximum: 3 629 */ 630 #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 631 #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 632 #endif 633 634 /** 635 * @brief NRFX_TIMER_CONFIG_LOG_ENABLED 636 * 637 * Boolean. Accepted values 0 and 1. 638 */ 639 #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED 640 #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 641 #endif 642 643 /** 644 * @brief NRFX_TIMER_CONFIG_LOG_LEVEL 645 * 646 * Integer value. 647 * Supported values: 648 * - Off = 0 649 * - Error = 1 650 * - Warning = 2 651 * - Info = 3 652 * - Debug = 4 653 */ 654 #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL 655 #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 656 #endif 657 658 /** 659 * @brief NRFX_TIMER0_ENABLED 660 * 661 * Boolean. Accepted values 0 and 1. 662 */ 663 #ifndef NRFX_TIMER0_ENABLED 664 #define NRFX_TIMER0_ENABLED 0 665 #endif 666 667 /** 668 * @brief NRFX_TIMER1_ENABLED 669 * 670 * Boolean. Accepted values 0 and 1. 671 */ 672 #ifndef NRFX_TIMER1_ENABLED 673 #define NRFX_TIMER1_ENABLED 0 674 #endif 675 676 /** 677 * @brief NRFX_TIMER2_ENABLED 678 * 679 * Boolean. Accepted values 0 and 1. 680 */ 681 #ifndef NRFX_TIMER2_ENABLED 682 #define NRFX_TIMER2_ENABLED 0 683 #endif 684 685 /** 686 * @brief NRFX_TWI_ENABLED 687 * 688 * Boolean. Accepted values 0 and 1. 689 */ 690 #ifndef NRFX_TWI_ENABLED 691 #define NRFX_TWI_ENABLED 0 692 #endif 693 694 /** 695 * @brief NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 696 * 697 * Integer value. Minimum: 0 Maximum: 3 698 */ 699 #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 700 #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 701 #endif 702 703 /** 704 * @brief NRFX_TWI_CONFIG_LOG_ENABLED 705 * 706 * Boolean. Accepted values 0 and 1. 707 */ 708 #ifndef NRFX_TWI_CONFIG_LOG_ENABLED 709 #define NRFX_TWI_CONFIG_LOG_ENABLED 0 710 #endif 711 712 /** 713 * @brief NRFX_TWI_CONFIG_LOG_LEVEL 714 * 715 * Integer value. 716 * Supported values: 717 * - Off = 0 718 * - Error = 1 719 * - Warning = 2 720 * - Info = 3 721 * - Debug = 4 722 */ 723 #ifndef NRFX_TWI_CONFIG_LOG_LEVEL 724 #define NRFX_TWI_CONFIG_LOG_LEVEL 3 725 #endif 726 727 /** 728 * @brief NRFX_TWI0_ENABLED 729 * 730 * Boolean. Accepted values 0 and 1. 731 */ 732 #ifndef NRFX_TWI0_ENABLED 733 #define NRFX_TWI0_ENABLED 0 734 #endif 735 736 /** 737 * @brief NRFX_TWI1_ENABLED 738 * 739 * Boolean. Accepted values 0 and 1. 740 */ 741 #ifndef NRFX_TWI1_ENABLED 742 #define NRFX_TWI1_ENABLED 0 743 #endif 744 745 /** 746 * @brief NRFX_UART_ENABLED 747 * 748 * Boolean. Accepted values 0 and 1. 749 */ 750 #ifndef NRFX_UART_ENABLED 751 #define NRFX_UART_ENABLED 0 752 #endif 753 754 /** 755 * @brief NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 756 * 757 * Integer value. Minimum: 0 Maximum: 3 758 */ 759 #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 760 #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 761 #endif 762 763 /** 764 * @brief NRFX_UART_CONFIG_LOG_ENABLED 765 * 766 * Boolean. Accepted values 0 and 1. 767 */ 768 #ifndef NRFX_UART_CONFIG_LOG_ENABLED 769 #define NRFX_UART_CONFIG_LOG_ENABLED 0 770 #endif 771 772 /** 773 * @brief NRFX_UART_CONFIG_LOG_LEVEL 774 * 775 * Integer value. 776 * Supported values: 777 * - Off = 0 778 * - Error = 1 779 * - Warning = 2 780 * - Info = 3 781 * - Debug = 4 782 */ 783 #ifndef NRFX_UART_CONFIG_LOG_LEVEL 784 #define NRFX_UART_CONFIG_LOG_LEVEL 3 785 #endif 786 787 /** 788 * @brief NRFX_UART0_ENABLED 789 * 790 * Boolean. Accepted values 0 and 1. 791 */ 792 #ifndef NRFX_UART0_ENABLED 793 #define NRFX_UART0_ENABLED 0 794 #endif 795 796 /** 797 * @brief NRFX_WDT_ENABLED 798 * 799 * Boolean. Accepted values 0 and 1. 800 */ 801 #ifndef NRFX_WDT_ENABLED 802 #define NRFX_WDT_ENABLED 0 803 #endif 804 805 /** 806 * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY 807 * 808 * Integer value. Minimum: 0 Maximum: 3 809 */ 810 #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY 811 #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY 812 #endif 813 814 /** 815 * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver 816 * 817 * Boolean. Accepted values 0 and 1. 818 */ 819 #ifndef NRFX_WDT_CONFIG_NO_IRQ 820 #define NRFX_WDT_CONFIG_NO_IRQ 0 821 #endif 822 823 /** 824 * @brief NRFX_WDT_CONFIG_LOG_ENABLED 825 * 826 * Boolean. Accepted values 0 and 1. 827 */ 828 #ifndef NRFX_WDT_CONFIG_LOG_ENABLED 829 #define NRFX_WDT_CONFIG_LOG_ENABLED 0 830 #endif 831 832 /** 833 * @brief NRFX_WDT_CONFIG_LOG_LEVEL 834 * 835 * Integer value. 836 * Supported values: 837 * - Off = 0 838 * - Error = 1 839 * - Warning = 2 840 * - Info = 3 841 * - Debug = 4 842 */ 843 #ifndef NRFX_WDT_CONFIG_LOG_LEVEL 844 #define NRFX_WDT_CONFIG_LOG_LEVEL 3 845 #endif 846 847 #endif // NRFX_CONFIG_NRF51_H__ 848