1 /* 2 * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, this 9 * list of conditions and the following disclaimer. 10 * 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 15 * 3. Neither the name of the copyright holder nor the names of its 16 * contributors may be used to endorse or promote products derived from this 17 * software without specific prior written permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32 #ifndef NRFX_CONFIG_NRF91_H__ 33 #define NRFX_CONFIG_NRF91_H__ 34 35 #ifndef NRFX_CONFIG_H__ 36 #error "This file should not be included directly. Include nrfx_config.h instead." 37 #endif 38 39 #define NRF_CLOCK NRF_PERIPH(NRF_CLOCK) 40 #define NRF_DPPIC NRF_PERIPH(NRF_DPPIC) 41 #define NRF_EGU0 NRF_PERIPH(NRF_EGU0) 42 #define NRF_EGU1 NRF_PERIPH(NRF_EGU1) 43 #define NRF_EGU2 NRF_PERIPH(NRF_EGU2) 44 #define NRF_EGU3 NRF_PERIPH(NRF_EGU3) 45 #define NRF_EGU4 NRF_PERIPH(NRF_EGU4) 46 #define NRF_EGU5 NRF_PERIPH(NRF_EGU5) 47 #define NRF_FPU NRF_PERIPH(NRF_FPU) 48 #define NRF_IPC NRF_PERIPH(NRF_IPC) 49 #define NRF_I2S NRF_PERIPH(NRF_I2S) 50 #define NRF_KMU NRF_PERIPH(NRF_KMU) 51 #define NRF_NVMC NRF_PERIPH(NRF_NVMC) 52 #define NRF_P0 NRF_PERIPH(NRF_P0) 53 #define NRF_PDM NRF_PERIPH(NRF_PDM) 54 #define NRF_POWER NRF_PERIPH(NRF_POWER) 55 #define NRF_PWM0 NRF_PERIPH(NRF_PWM0) 56 #define NRF_PWM1 NRF_PERIPH(NRF_PWM1) 57 #define NRF_PWM2 NRF_PERIPH(NRF_PWM2) 58 #define NRF_PWM3 NRF_PERIPH(NRF_PWM3) 59 #define NRF_REGULATORS NRF_PERIPH(NRF_REGULATORS) 60 #define NRF_RTC0 NRF_PERIPH(NRF_RTC0) 61 #define NRF_RTC1 NRF_PERIPH(NRF_RTC1) 62 #define NRF_SAADC NRF_PERIPH(NRF_SAADC) 63 #define NRF_SPIM0 NRF_PERIPH(NRF_SPIM0) 64 #define NRF_SPIM1 NRF_PERIPH(NRF_SPIM1) 65 #define NRF_SPIM2 NRF_PERIPH(NRF_SPIM2) 66 #define NRF_SPIM3 NRF_PERIPH(NRF_SPIM3) 67 #define NRF_SPIS0 NRF_PERIPH(NRF_SPIS0) 68 #define NRF_SPIS1 NRF_PERIPH(NRF_SPIS1) 69 #define NRF_SPIS2 NRF_PERIPH(NRF_SPIS2) 70 #define NRF_SPIS3 NRF_PERIPH(NRF_SPIS3) 71 #define NRF_TIMER0 NRF_PERIPH(NRF_TIMER0) 72 #define NRF_TIMER1 NRF_PERIPH(NRF_TIMER1) 73 #define NRF_TIMER2 NRF_PERIPH(NRF_TIMER2) 74 #define NRF_TWIM0 NRF_PERIPH(NRF_TWIM0) 75 #define NRF_TWIM1 NRF_PERIPH(NRF_TWIM1) 76 #define NRF_TWIM2 NRF_PERIPH(NRF_TWIM2) 77 #define NRF_TWIM3 NRF_PERIPH(NRF_TWIM3) 78 #define NRF_TWIS0 NRF_PERIPH(NRF_TWIS0) 79 #define NRF_TWIS1 NRF_PERIPH(NRF_TWIS1) 80 #define NRF_TWIS2 NRF_PERIPH(NRF_TWIS2) 81 #define NRF_TWIS3 NRF_PERIPH(NRF_TWIS3) 82 #define NRF_UARTE0 NRF_PERIPH(NRF_UARTE0) 83 #define NRF_UARTE1 NRF_PERIPH(NRF_UARTE1) 84 #define NRF_UARTE2 NRF_PERIPH(NRF_UARTE2) 85 #define NRF_UARTE3 NRF_PERIPH(NRF_UARTE3) 86 #define NRF_VMC NRF_PERIPH(NRF_VMC) 87 #define NRF_WDT NRF_PERIPH(NRF_WDT) 88 89 /* 90 * The following section provides the name translation for peripherals with 91 * only one type of access available. For these peripherals, you cannot choose 92 * between secure and non-secure mapping. 93 */ 94 #if defined(NRF_TRUSTZONE_NONSECURE) 95 #define NRF_GPIOTE1 NRF_GPIOTE1_NS 96 #else 97 #define NRF_CC_HOST_RGF NRF_CC_HOST_RGF_S 98 #define NRF_CRYPTOCELL NRF_CRYPTOCELL_S 99 #define NRF_CTRL_AP_PERI NRF_CTRL_AP_PERI_S 100 #define NRF_FICR NRF_FICR_S 101 #define NRF_GPIOTE0 NRF_GPIOTE0_S 102 #define NRF_SPU NRF_SPU_S 103 #define NRF_TAD NRF_TAD_S 104 #define NRF_UICR NRF_UICR_S 105 #endif 106 107 /* Fixup for the GPIOTE driver. */ 108 #if defined(NRF_TRUSTZONE_NONSECURE) 109 #define NRF_GPIOTE NRF_GPIOTE1 110 #else 111 #define NRF_GPIOTE NRF_GPIOTE0 112 #endif 113 114 115 // <<< Use Configuration Wizard in Context Menu >>>\n 116 117 // <h> nRF_Drivers 118 119 // <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver. 120 //========================================================== 121 #ifndef NRFX_CLOCK_ENABLED 122 #define NRFX_CLOCK_ENABLED 0 123 #endif 124 // <o> NRFX_CLOCK_CONFIG_LF_SRC - LF clock source. 125 126 // <1=> RC 127 // <2=> XTAL 128 129 #ifndef NRFX_CLOCK_CONFIG_LF_SRC 130 #define NRFX_CLOCK_CONFIG_LF_SRC 2 131 #endif 132 133 // <q> NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED - Enables two-stage LFXO start procedure 134 135 // <i> If set to a non-zero value, LFRC will be started before LFXO and corresponding 136 // <i> event will be generated. It means that CPU will be woken up when LFRC 137 // <i> oscillator starts, but user callback will be invoked only after LFXO 138 // <i> finally starts. 139 140 #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 141 #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 142 #endif 143 144 145 // <o> NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 146 147 // <0=> 0 (highest) 148 // <1=> 1 149 // <2=> 2 150 // <3=> 3 151 // <4=> 4 152 // <5=> 5 153 // <6=> 6 154 // <7=> 7 155 156 #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 157 #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7 158 #endif 159 160 // <e> NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module. 161 //========================================================== 162 #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED 163 #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 164 #endif 165 // <o> NRFX_CLOCK_CONFIG_LOG_LEVEL - Default severity level. 166 167 // <0=> Off 168 // <1=> Error 169 // <2=> Warning 170 // <3=> Info 171 // <4=> Debug 172 173 #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL 174 #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 175 #endif 176 177 // <o> NRFX_CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix. 178 179 // <0=> Default 180 // <1=> Black 181 // <2=> Red 182 // <3=> Green 183 // <4=> Yellow 184 // <5=> Blue 185 // <6=> Magenta 186 // <7=> Cyan 187 // <8=> White 188 189 #ifndef NRFX_CLOCK_CONFIG_INFO_COLOR 190 #define NRFX_CLOCK_CONFIG_INFO_COLOR 0 191 #endif 192 193 // <o> NRFX_CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 194 195 // <0=> Default 196 // <1=> Black 197 // <2=> Red 198 // <3=> Green 199 // <4=> Yellow 200 // <5=> Blue 201 // <6=> Magenta 202 // <7=> Cyan 203 // <8=> White 204 205 #ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR 206 #define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0 207 #endif 208 209 // </e> 210 211 // </e> 212 213 // <e> NRFX_DPPI_ENABLED - nrfx_dppi - DPPI allocator. 214 //========================================================== 215 #ifndef NRFX_DPPI_ENABLED 216 #define NRFX_DPPI_ENABLED 0 217 #endif 218 // <e> NRFX_DPPI_CONFIG_LOG_ENABLED - Enables logging in the module. 219 //========================================================== 220 #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED 221 #define NRFX_DPPI_CONFIG_LOG_ENABLED 0 222 #endif 223 // <o> NRFX_DPPI_CONFIG_LOG_LEVEL - Default severity level. 224 225 // <0=> Off 226 // <1=> Error 227 // <2=> Warning 228 // <3=> Info 229 // <4=> Debug 230 231 #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL 232 #define NRFX_DPPI_CONFIG_LOG_LEVEL 3 233 #endif 234 235 // <o> NRFX_DPPI_CONFIG_INFO_COLOR - ANSI escape code prefix. 236 237 // <0=> Default 238 // <1=> Black 239 // <2=> Red 240 // <3=> Green 241 // <4=> Yellow 242 // <5=> Blue 243 // <6=> Magenta 244 // <7=> Cyan 245 // <8=> White 246 247 #ifndef NRFX_DPPI_CONFIG_INFO_COLOR 248 #define NRFX_DPPI_CONFIG_INFO_COLOR 0 249 #endif 250 251 // <o> NRFX_DPPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 252 253 // <0=> Default 254 // <1=> Black 255 // <2=> Red 256 // <3=> Green 257 // <4=> Yellow 258 // <5=> Blue 259 // <6=> Magenta 260 // <7=> Cyan 261 // <8=> White 262 263 #ifndef NRFX_DPPI_CONFIG_DEBUG_COLOR 264 #define NRFX_DPPI_CONFIG_DEBUG_COLOR 0 265 #endif 266 267 // </e> 268 269 // </e> 270 271 // <e> NRFX_EGU_ENABLED - nrfx_egu - EGU peripheral driver. 272 //========================================================== 273 #ifndef NRFX_EGU_ENABLED 274 #define NRFX_EGU_ENABLED 0 275 #endif 276 277 // <q> NRFX_EGU0_ENABLED - Enable EGU0 instance. 278 279 #ifndef NRFX_EGU0_ENABLED 280 #define NRFX_EGU0_ENABLED 0 281 #endif 282 283 // <q> NRFX_EGU1_ENABLED - Enable EGU1 instance. 284 285 #ifndef NRFX_EGU1_ENABLED 286 #define NRFX_EGU1_ENABLED 0 287 #endif 288 289 // <q> NRFX_EGU2_ENABLED - Enable EGU2 instance. 290 291 #ifndef NRFX_EGU2_ENABLED 292 #define NRFX_EGU2_ENABLED 0 293 #endif 294 295 // <q> NRFX_EGU3_ENABLED - Enable EGU3 instance. 296 297 #ifndef NRFX_EGU3_ENABLED 298 #define NRFX_EGU3_ENABLED 0 299 #endif 300 301 // <q> NRFX_EGU4_ENABLED - Enable EGU4 instance. 302 303 #ifndef NRFX_EGU4_ENABLED 304 #define NRFX_EGU4_ENABLED 0 305 #endif 306 307 // <q> NRFX_EGU5_ENABLED - Enable EGU5 instance. 308 309 #ifndef NRFX_EGU5_ENABLED 310 #define NRFX_EGU5_ENABLED 0 311 #endif 312 313 // <o> NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 314 315 // <0=> 0 (highest) 316 // <1=> 1 317 // <2=> 2 318 // <3=> 3 319 // <4=> 4 320 // <5=> 5 321 // <6=> 6 322 // <7=> 7 323 324 #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY 325 #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY 7 326 #endif 327 328 // </e> 329 330 // <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver. 331 //========================================================== 332 #ifndef NRFX_GPIOTE_ENABLED 333 #define NRFX_GPIOTE_ENABLED 0 334 #endif 335 // <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins. 336 #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 337 #define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1 338 #endif 339 340 // <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 341 342 // <0=> 0 (highest) 343 // <1=> 1 344 // <2=> 2 345 // <3=> 3 346 // <4=> 4 347 // <5=> 5 348 // <6=> 6 349 // <7=> 7 350 351 #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY 352 #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY 7 353 #endif 354 355 // <e> NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module. 356 //========================================================== 357 #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED 358 #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 359 #endif 360 // <o> NRFX_GPIOTE_CONFIG_LOG_LEVEL - Default severity level. 361 362 // <0=> Off 363 // <1=> Error 364 // <2=> Warning 365 // <3=> Info 366 // <4=> Debug 367 368 #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL 369 #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 370 #endif 371 372 // <o> NRFX_GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix. 373 374 // <0=> Default 375 // <1=> Black 376 // <2=> Red 377 // <3=> Green 378 // <4=> Yellow 379 // <5=> Blue 380 // <6=> Magenta 381 // <7=> Cyan 382 // <8=> White 383 384 #ifndef NRFX_GPIOTE_CONFIG_INFO_COLOR 385 #define NRFX_GPIOTE_CONFIG_INFO_COLOR 0 386 #endif 387 388 // <o> NRFX_GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 389 390 // <0=> Default 391 // <1=> Black 392 // <2=> Red 393 // <3=> Green 394 // <4=> Yellow 395 // <5=> Blue 396 // <6=> Magenta 397 // <7=> Cyan 398 // <8=> White 399 400 #ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR 401 #define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0 402 #endif 403 404 // </e> 405 406 // </e> 407 408 // <e> NRFX_I2S_ENABLED - nrfx_i2s - I2S peripheral driver. 409 //========================================================== 410 #ifndef NRFX_I2S_ENABLED 411 #define NRFX_I2S_ENABLED 0 412 #endif 413 414 // <o> NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 415 416 // <0=> 0 (highest) 417 // <1=> 1 418 // <2=> 2 419 // <3=> 3 420 // <4=> 4 421 // <5=> 5 422 // <6=> 6 423 // <7=> 7 424 425 #ifndef NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY 426 #define NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY 7 427 #endif 428 429 // <e> NRFX_I2S_CONFIG_LOG_ENABLED - Enables logging in the module. 430 //========================================================== 431 #ifndef NRFX_I2S_CONFIG_LOG_ENABLED 432 #define NRFX_I2S_CONFIG_LOG_ENABLED 0 433 #endif 434 // <o> NRFX_I2S_CONFIG_LOG_LEVEL - Default severity level. 435 436 // <0=> Off 437 // <1=> Error 438 // <2=> Warning 439 // <3=> Info 440 // <4=> Debug 441 442 #ifndef NRFX_I2S_CONFIG_LOG_LEVEL 443 #define NRFX_I2S_CONFIG_LOG_LEVEL 3 444 #endif 445 446 // <o> NRFX_I2S_CONFIG_INFO_COLOR - ANSI escape code prefix. 447 448 // <0=> Default 449 // <1=> Black 450 // <2=> Red 451 // <3=> Green 452 // <4=> Yellow 453 // <5=> Blue 454 // <6=> Magenta 455 // <7=> Cyan 456 // <8=> White 457 458 #ifndef NRFX_I2S_CONFIG_INFO_COLOR 459 #define NRFX_I2S_CONFIG_INFO_COLOR 0 460 #endif 461 462 // <o> NRFX_I2S_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 463 464 // <0=> Default 465 // <1=> Black 466 // <2=> Red 467 // <3=> Green 468 // <4=> Yellow 469 // <5=> Blue 470 // <6=> Magenta 471 // <7=> Cyan 472 // <8=> White 473 474 #ifndef NRFX_I2S_CONFIG_DEBUG_COLOR 475 #define NRFX_I2S_CONFIG_DEBUG_COLOR 0 476 #endif 477 478 // </e> 479 480 // </e> 481 482 // <e> NRFX_IPC_ENABLED - nrfx_ipc - IPC peripheral driver 483 //========================================================== 484 #ifndef NRFX_IPC_ENABLED 485 #define NRFX_IPC_ENABLED 0 486 #endif 487 488 // </e> 489 490 // <e> NRFX_NVMC_ENABLED - nrfx_nvmc - NVMC peripheral driver 491 //========================================================== 492 #ifndef NRFX_NVMC_ENABLED 493 #define NRFX_NVMC_ENABLED 0 494 #endif 495 496 // </e> 497 498 // <e> NRFX_PDM_ENABLED - nrfx_pdm - PDM peripheral driver. 499 //========================================================== 500 #ifndef NRFX_PDM_ENABLED 501 #define NRFX_PDM_ENABLED 0 502 #endif 503 504 // <o> NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 505 506 // <0=> 0 (highest) 507 // <1=> 1 508 // <2=> 2 509 // <3=> 3 510 // <4=> 4 511 // <5=> 5 512 // <6=> 6 513 // <7=> 7 514 515 #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY 516 #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY 7 517 #endif 518 519 // <e> NRFX_PDM_CONFIG_LOG_ENABLED - Enables logging in the module. 520 //========================================================== 521 #ifndef NRFX_PDM_CONFIG_LOG_ENABLED 522 #define NRFX_PDM_CONFIG_LOG_ENABLED 0 523 #endif 524 // <o> NRFX_PDM_CONFIG_LOG_LEVEL - Default severity level. 525 526 // <0=> Off 527 // <1=> Error 528 // <2=> Warning 529 // <3=> Info 530 // <4=> Debug 531 532 #ifndef NRFX_PDM_CONFIG_LOG_LEVEL 533 #define NRFX_PDM_CONFIG_LOG_LEVEL 3 534 #endif 535 536 // <o> NRFX_PDM_CONFIG_INFO_COLOR - ANSI escape code prefix. 537 538 // <0=> Default 539 // <1=> Black 540 // <2=> Red 541 // <3=> Green 542 // <4=> Yellow 543 // <5=> Blue 544 // <6=> Magenta 545 // <7=> Cyan 546 // <8=> White 547 548 #ifndef NRFX_PDM_CONFIG_INFO_COLOR 549 #define NRFX_PDM_CONFIG_INFO_COLOR 0 550 #endif 551 552 // <o> NRFX_PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 553 554 // <0=> Default 555 // <1=> Black 556 // <2=> Red 557 // <3=> Green 558 // <4=> Yellow 559 // <5=> Blue 560 // <6=> Magenta 561 // <7=> Cyan 562 // <8=> White 563 564 #ifndef NRFX_PDM_CONFIG_DEBUG_COLOR 565 #define NRFX_PDM_CONFIG_DEBUG_COLOR 0 566 #endif 567 568 // </e> 569 570 // </e> 571 572 // <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver. 573 //========================================================== 574 #ifndef NRFX_POWER_ENABLED 575 #define NRFX_POWER_ENABLED 0 576 #endif 577 // <o> NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 578 579 // <0=> 0 (highest) 580 // <1=> 1 581 // <2=> 2 582 // <3=> 3 583 // <4=> 4 584 // <5=> 5 585 // <6=> 6 586 // <7=> 7 587 588 #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY 589 #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY 7 590 #endif 591 592 // </e> 593 594 // <e> NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing (PRS) module. 595 //========================================================== 596 #ifndef NRFX_PRS_ENABLED 597 #define NRFX_PRS_ENABLED 0 598 #endif 599 // <q> NRFX_PRS_BOX_0_ENABLED - Enables box 0 in the module. 600 601 602 #ifndef NRFX_PRS_BOX_0_ENABLED 603 #define NRFX_PRS_BOX_0_ENABLED 0 604 #endif 605 606 // <q> NRFX_PRS_BOX_1_ENABLED - Enables box 1 in the module. 607 608 609 #ifndef NRFX_PRS_BOX_1_ENABLED 610 #define NRFX_PRS_BOX_1_ENABLED 0 611 #endif 612 613 // <q> NRFX_PRS_BOX_2_ENABLED - Enables box 2 in the module. 614 615 616 #ifndef NRFX_PRS_BOX_2_ENABLED 617 #define NRFX_PRS_BOX_2_ENABLED 0 618 #endif 619 620 // <q> NRFX_PRS_BOX_3_ENABLED - Enables box 3 in the module. 621 622 623 #ifndef NRFX_PRS_BOX_3_ENABLED 624 #define NRFX_PRS_BOX_3_ENABLED 0 625 #endif 626 627 // <e> NRFX_PRS_CONFIG_LOG_ENABLED - Enables logging in the module. 628 //========================================================== 629 #ifndef NRFX_PRS_CONFIG_LOG_ENABLED 630 #define NRFX_PRS_CONFIG_LOG_ENABLED 0 631 #endif 632 // <o> NRFX_PRS_CONFIG_LOG_LEVEL - Default severity level. 633 634 // <0=> Off 635 // <1=> Error 636 // <2=> Warning 637 // <3=> Info 638 // <4=> Debug 639 640 #ifndef NRFX_PRS_CONFIG_LOG_LEVEL 641 #define NRFX_PRS_CONFIG_LOG_LEVEL 3 642 #endif 643 644 // <o> NRFX_PRS_CONFIG_INFO_COLOR - ANSI escape code prefix. 645 646 // <0=> Default 647 // <1=> Black 648 // <2=> Red 649 // <3=> Green 650 // <4=> Yellow 651 // <5=> Blue 652 // <6=> Magenta 653 // <7=> Cyan 654 // <8=> White 655 656 #ifndef NRFX_PRS_CONFIG_INFO_COLOR 657 #define NRFX_PRS_CONFIG_INFO_COLOR 0 658 #endif 659 660 // <o> NRFX_PRS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 661 662 // <0=> Default 663 // <1=> Black 664 // <2=> Red 665 // <3=> Green 666 // <4=> Yellow 667 // <5=> Blue 668 // <6=> Magenta 669 // <7=> Cyan 670 // <8=> White 671 672 #ifndef NRFX_PRS_CONFIG_DEBUG_COLOR 673 #define NRFX_PRS_CONFIG_DEBUG_COLOR 0 674 #endif 675 676 // </e> 677 678 // </e> 679 680 // <e> NRFX_PWM_ENABLED - nrfx_pwm - PWM peripheral driver. 681 //========================================================== 682 #ifndef NRFX_PWM_ENABLED 683 #define NRFX_PWM_ENABLED 0 684 #endif 685 // <q> NRFX_PWM0_ENABLED - Enables PWM0 instance. 686 687 688 #ifndef NRFX_PWM0_ENABLED 689 #define NRFX_PWM0_ENABLED 0 690 #endif 691 692 // <q> NRFX_PWM1_ENABLED - Enables PWM1 instance. 693 694 695 #ifndef NRFX_PWM1_ENABLED 696 #define NRFX_PWM1_ENABLED 0 697 #endif 698 699 // <q> NRFX_PWM2_ENABLED - Enables PWM2 instance. 700 701 702 #ifndef NRFX_PWM2_ENABLED 703 #define NRFX_PWM2_ENABLED 0 704 #endif 705 706 // <q> NRFX_PWM3_ENABLED - Enables PWM3 instance. 707 708 709 #ifndef NRFX_PWM3_ENABLED 710 #define NRFX_PWM3_ENABLED 0 711 #endif 712 713 // <o> NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 714 715 // <0=> 0 (highest) 716 // <1=> 1 717 // <2=> 2 718 // <3=> 3 719 // <4=> 4 720 // <5=> 5 721 // <6=> 6 722 // <7=> 7 723 724 #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 725 #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 7 726 #endif 727 728 // <e> NRFX_PWM_CONFIG_LOG_ENABLED - Enables logging in the module. 729 //========================================================== 730 #ifndef NRFX_PWM_CONFIG_LOG_ENABLED 731 #define NRFX_PWM_CONFIG_LOG_ENABLED 0 732 #endif 733 // <o> NRFX_PWM_CONFIG_LOG_LEVEL - Default severity level. 734 735 // <0=> Off 736 // <1=> Error 737 // <2=> Warning 738 // <3=> Info 739 // <4=> Debug 740 741 #ifndef NRFX_PWM_CONFIG_LOG_LEVEL 742 #define NRFX_PWM_CONFIG_LOG_LEVEL 3 743 #endif 744 745 // <o> NRFX_PWM_CONFIG_INFO_COLOR - ANSI escape code prefix. 746 747 // <0=> Default 748 // <1=> Black 749 // <2=> Red 750 // <3=> Green 751 // <4=> Yellow 752 // <5=> Blue 753 // <6=> Magenta 754 // <7=> Cyan 755 // <8=> White 756 757 #ifndef NRFX_PWM_CONFIG_INFO_COLOR 758 #define NRFX_PWM_CONFIG_INFO_COLOR 0 759 #endif 760 761 // <o> NRFX_PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 762 763 // <0=> Default 764 // <1=> Black 765 // <2=> Red 766 // <3=> Green 767 // <4=> Yellow 768 // <5=> Blue 769 // <6=> Magenta 770 // <7=> Cyan 771 // <8=> White 772 773 #ifndef NRFX_PWM_CONFIG_DEBUG_COLOR 774 #define NRFX_PWM_CONFIG_DEBUG_COLOR 0 775 #endif 776 777 // </e> 778 779 // </e> 780 781 // <e> NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver. 782 //========================================================== 783 #ifndef NRFX_RTC_ENABLED 784 #define NRFX_RTC_ENABLED 0 785 #endif 786 // <q> NRFX_RTC0_ENABLED - Enables RTC0 instance. 787 788 789 #ifndef NRFX_RTC0_ENABLED 790 #define NRFX_RTC0_ENABLED 0 791 #endif 792 793 // <q> NRFX_RTC1_ENABLED - Enables RTC1 instance. 794 795 796 #ifndef NRFX_RTC1_ENABLED 797 #define NRFX_RTC1_ENABLED 0 798 #endif 799 800 // <o> NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 801 802 // <0=> 0 (highest) 803 // <1=> 1 804 // <2=> 2 805 // <3=> 3 806 // <4=> 4 807 // <5=> 5 808 // <6=> 6 809 // <7=> 7 810 811 #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 812 #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 7 813 #endif 814 815 // <e> NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module. 816 //========================================================== 817 #ifndef NRFX_RTC_CONFIG_LOG_ENABLED 818 #define NRFX_RTC_CONFIG_LOG_ENABLED 0 819 #endif 820 // <o> NRFX_RTC_CONFIG_LOG_LEVEL - Default severity level. 821 822 // <0=> Off 823 // <1=> Error 824 // <2=> Warning 825 // <3=> Info 826 // <4=> Debug 827 828 #ifndef NRFX_RTC_CONFIG_LOG_LEVEL 829 #define NRFX_RTC_CONFIG_LOG_LEVEL 3 830 #endif 831 832 // <o> NRFX_RTC_CONFIG_INFO_COLOR - ANSI escape code prefix. 833 834 // <0=> Default 835 // <1=> Black 836 // <2=> Red 837 // <3=> Green 838 // <4=> Yellow 839 // <5=> Blue 840 // <6=> Magenta 841 // <7=> Cyan 842 // <8=> White 843 844 #ifndef NRFX_RTC_CONFIG_INFO_COLOR 845 #define NRFX_RTC_CONFIG_INFO_COLOR 0 846 #endif 847 848 // <o> NRFX_RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 849 850 // <0=> Default 851 // <1=> Black 852 // <2=> Red 853 // <3=> Green 854 // <4=> Yellow 855 // <5=> Blue 856 // <6=> Magenta 857 // <7=> Cyan 858 // <8=> White 859 860 #ifndef NRFX_RTC_CONFIG_DEBUG_COLOR 861 #define NRFX_RTC_CONFIG_DEBUG_COLOR 0 862 #endif 863 864 // </e> 865 866 // </e> 867 868 // <e> NRFX_SAADC_ENABLED - nrfx_saadc - SAADC peripheral driver. 869 //========================================================== 870 #ifndef NRFX_SAADC_ENABLED 871 #define NRFX_SAADC_ENABLED 0 872 #endif 873 874 // <o> NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 875 876 // <0=> 0 (highest) 877 // <1=> 1 878 // <2=> 2 879 // <3=> 3 880 // <4=> 4 881 // <5=> 5 882 // <6=> 6 883 // <7=> 7 884 885 #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY 886 #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY 7 887 #endif 888 889 // <e> NRFX_SAADC_CONFIG_LOG_ENABLED - Enables logging in the module. 890 //========================================================== 891 #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED 892 #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 893 #endif 894 // <o> NRFX_SAADC_CONFIG_LOG_LEVEL - Default severity level. 895 896 // <0=> Off 897 // <1=> Error 898 // <2=> Warning 899 // <3=> Info 900 // <4=> Debug 901 902 #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL 903 #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 904 #endif 905 906 // <o> NRFX_SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix. 907 908 // <0=> Default 909 // <1=> Black 910 // <2=> Red 911 // <3=> Green 912 // <4=> Yellow 913 // <5=> Blue 914 // <6=> Magenta 915 // <7=> Cyan 916 // <8=> White 917 918 #ifndef NRFX_SAADC_CONFIG_INFO_COLOR 919 #define NRFX_SAADC_CONFIG_INFO_COLOR 0 920 #endif 921 922 // <o> NRFX_SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 923 924 // <0=> Default 925 // <1=> Black 926 // <2=> Red 927 // <3=> Green 928 // <4=> Yellow 929 // <5=> Blue 930 // <6=> Magenta 931 // <7=> Cyan 932 // <8=> White 933 934 #ifndef NRFX_SAADC_CONFIG_DEBUG_COLOR 935 #define NRFX_SAADC_CONFIG_DEBUG_COLOR 0 936 #endif 937 938 // </e> 939 940 // </e> 941 942 // <e> NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver. 943 //========================================================== 944 #ifndef NRFX_SPIM_ENABLED 945 #define NRFX_SPIM_ENABLED 0 946 #endif 947 // <q> NRFX_SPIM0_ENABLED - Enables SPIM0 instance. 948 949 950 #ifndef NRFX_SPIM0_ENABLED 951 #define NRFX_SPIM0_ENABLED 0 952 #endif 953 954 // <q> NRFX_SPIM1_ENABLED - Enables SPIM1 instance. 955 956 957 #ifndef NRFX_SPIM1_ENABLED 958 #define NRFX_SPIM1_ENABLED 0 959 #endif 960 961 // <q> NRFX_SPIM2_ENABLED - Enables SPIM2 instance. 962 963 964 #ifndef NRFX_SPIM2_ENABLED 965 #define NRFX_SPIM2_ENABLED 0 966 #endif 967 968 // <q> NRFX_SPIM3_ENABLED - Enables SPIM3 instance. 969 970 971 #ifndef NRFX_SPIM3_ENABLED 972 #define NRFX_SPIM3_ENABLED 0 973 #endif 974 975 // <o> NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 976 977 // <0=> 0 (highest) 978 // <1=> 1 979 // <2=> 2 980 // <3=> 3 981 // <4=> 4 982 // <5=> 5 983 // <6=> 6 984 // <7=> 7 985 986 #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 987 #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 7 988 #endif 989 990 // <e> NRFX_SPIM_CONFIG_LOG_ENABLED - Enables logging in the module. 991 //========================================================== 992 #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED 993 #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 994 #endif 995 // <o> NRFX_SPIM_CONFIG_LOG_LEVEL - Default severity level. 996 997 // <0=> Off 998 // <1=> Error 999 // <2=> Warning 1000 // <3=> Info 1001 // <4=> Debug 1002 1003 #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL 1004 #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 1005 #endif 1006 1007 // <o> NRFX_SPIM_CONFIG_INFO_COLOR - ANSI escape code prefix. 1008 1009 // <0=> Default 1010 // <1=> Black 1011 // <2=> Red 1012 // <3=> Green 1013 // <4=> Yellow 1014 // <5=> Blue 1015 // <6=> Magenta 1016 // <7=> Cyan 1017 // <8=> White 1018 1019 #ifndef NRFX_SPIM_CONFIG_INFO_COLOR 1020 #define NRFX_SPIM_CONFIG_INFO_COLOR 0 1021 #endif 1022 1023 // <o> NRFX_SPIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1024 1025 // <0=> Default 1026 // <1=> Black 1027 // <2=> Red 1028 // <3=> Green 1029 // <4=> Yellow 1030 // <5=> Blue 1031 // <6=> Magenta 1032 // <7=> Cyan 1033 // <8=> White 1034 1035 #ifndef NRFX_SPIM_CONFIG_DEBUG_COLOR 1036 #define NRFX_SPIM_CONFIG_DEBUG_COLOR 0 1037 #endif 1038 1039 // </e> 1040 1041 // </e> 1042 1043 // <e> NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver. 1044 //========================================================== 1045 #ifndef NRFX_SPIS_ENABLED 1046 #define NRFX_SPIS_ENABLED 0 1047 #endif 1048 // <q> NRFX_SPIS0_ENABLED - Enables SPIS0 instance. 1049 1050 1051 #ifndef NRFX_SPIS0_ENABLED 1052 #define NRFX_SPIS0_ENABLED 0 1053 #endif 1054 1055 // <q> NRFX_SPIS1_ENABLED - Enables SPIS1 instance. 1056 1057 1058 #ifndef NRFX_SPIS1_ENABLED 1059 #define NRFX_SPIS1_ENABLED 0 1060 #endif 1061 1062 // <q> NRFX_SPIS2_ENABLED - Enables SPIS2 instance. 1063 1064 1065 #ifndef NRFX_SPIS2_ENABLED 1066 #define NRFX_SPIS2_ENABLED 0 1067 #endif 1068 1069 // <q> NRFX_SPIS3_ENABLED - Enables SPIS3 instance. 1070 1071 1072 #ifndef NRFX_SPIS3_ENABLED 1073 #define NRFX_SPIS3_ENABLED 0 1074 #endif 1075 1076 // <o> NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 1077 1078 // <0=> 0 (highest) 1079 // <1=> 1 1080 // <2=> 2 1081 // <3=> 3 1082 // <4=> 4 1083 // <5=> 5 1084 // <6=> 6 1085 // <7=> 7 1086 1087 #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 1088 #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 1089 #endif 1090 1091 // <e> NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module. 1092 //========================================================== 1093 #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED 1094 #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 1095 #endif 1096 // <o> NRFX_SPIS_CONFIG_LOG_LEVEL - Default severity level. 1097 1098 // <0=> Off 1099 // <1=> Error 1100 // <2=> Warning 1101 // <3=> Info 1102 // <4=> Debug 1103 1104 #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL 1105 #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 1106 #endif 1107 1108 // <o> NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix. 1109 1110 // <0=> Default 1111 // <1=> Black 1112 // <2=> Red 1113 // <3=> Green 1114 // <4=> Yellow 1115 // <5=> Blue 1116 // <6=> Magenta 1117 // <7=> Cyan 1118 // <8=> White 1119 1120 #ifndef NRFX_SPIS_CONFIG_INFO_COLOR 1121 #define NRFX_SPIS_CONFIG_INFO_COLOR 0 1122 #endif 1123 1124 // <o> NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1125 1126 // <0=> Default 1127 // <1=> Black 1128 // <2=> Red 1129 // <3=> Green 1130 // <4=> Yellow 1131 // <5=> Blue 1132 // <6=> Magenta 1133 // <7=> Cyan 1134 // <8=> White 1135 1136 #ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR 1137 #define NRFX_SPIS_CONFIG_DEBUG_COLOR 0 1138 #endif 1139 1140 // </e> 1141 1142 // </e> 1143 1144 // <q> NRFX_SYSTICK_ENABLED - nrfx_systick - ARM(R) SysTick driver. 1145 1146 1147 #ifndef NRFX_SYSTICK_ENABLED 1148 #define NRFX_SYSTICK_ENABLED 0 1149 #endif 1150 1151 // <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver. 1152 //========================================================== 1153 #ifndef NRFX_TIMER_ENABLED 1154 #define NRFX_TIMER_ENABLED 0 1155 #endif 1156 1157 // <q> NRFX_TIMER0_ENABLED - Enables TIMER0 instance. 1158 1159 #ifndef NRFX_TIMER0_ENABLED 1160 #define NRFX_TIMER0_ENABLED 0 1161 #endif 1162 1163 // <q> NRFX_TIMER1_ENABLED - Enables TIMER1 instance. 1164 1165 #ifndef NRFX_TIMER1_ENABLED 1166 #define NRFX_TIMER1_ENABLED 0 1167 #endif 1168 1169 // <q> NRFX_TIMER2_ENABLED - Enables TIMER2 instance. 1170 1171 #ifndef NRFX_TIMER2_ENABLED 1172 #define NRFX_TIMER2_ENABLED 0 1173 #endif 1174 1175 // <o> NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 1176 1177 // <0=> 0 (highest) 1178 // <1=> 1 1179 // <2=> 2 1180 // <3=> 3 1181 // <4=> 4 1182 // <5=> 5 1183 // <6=> 6 1184 // <7=> 7 1185 1186 #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 1187 #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 7 1188 #endif 1189 1190 // <e> NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. 1191 //========================================================== 1192 #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED 1193 #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 1194 #endif 1195 // <o> NRFX_TIMER_CONFIG_LOG_LEVEL - Default severity level. 1196 1197 // <0=> Off 1198 // <1=> Error 1199 // <2=> Warning 1200 // <3=> Info 1201 // <4=> Debug 1202 1203 #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL 1204 #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 1205 #endif 1206 1207 // <o> NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. 1208 1209 // <0=> Default 1210 // <1=> Black 1211 // <2=> Red 1212 // <3=> Green 1213 // <4=> Yellow 1214 // <5=> Blue 1215 // <6=> Magenta 1216 // <7=> Cyan 1217 // <8=> White 1218 1219 #ifndef NRFX_TIMER_CONFIG_INFO_COLOR 1220 #define NRFX_TIMER_CONFIG_INFO_COLOR 0 1221 #endif 1222 1223 // <o> NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1224 1225 // <0=> Default 1226 // <1=> Black 1227 // <2=> Red 1228 // <3=> Green 1229 // <4=> Yellow 1230 // <5=> Blue 1231 // <6=> Magenta 1232 // <7=> Cyan 1233 // <8=> White 1234 1235 #ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR 1236 #define NRFX_TIMER_CONFIG_DEBUG_COLOR 0 1237 #endif 1238 1239 // </e> 1240 1241 // </e> 1242 1243 // <e> NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver. 1244 //========================================================== 1245 #ifndef NRFX_TWIM_ENABLED 1246 #define NRFX_TWIM_ENABLED 0 1247 #endif 1248 // <q> NRFX_TWIM0_ENABLED - Enables TWIM0 instance. 1249 1250 1251 #ifndef NRFX_TWIM0_ENABLED 1252 #define NRFX_TWIM0_ENABLED 0 1253 #endif 1254 1255 // <q> NRFX_TWIM1_ENABLED - Enables TWIM1 instance. 1256 1257 1258 #ifndef NRFX_TWIM1_ENABLED 1259 #define NRFX_TWIM1_ENABLED 0 1260 #endif 1261 1262 // <q> NRFX_TWIM2_ENABLED - Enables TWIM2 instance. 1263 1264 1265 #ifndef NRFX_TWIM2_ENABLED 1266 #define NRFX_TWIM2_ENABLED 0 1267 #endif 1268 1269 // <q> NRFX_TWIM3_ENABLED - Enables TWIM3 instance. 1270 1271 1272 #ifndef NRFX_TWIM3_ENABLED 1273 #define NRFX_TWIM3_ENABLED 0 1274 #endif 1275 1276 // <o> NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 1277 1278 // <0=> 0 (highest) 1279 // <1=> 1 1280 // <2=> 2 1281 // <3=> 3 1282 // <4=> 4 1283 // <5=> 5 1284 // <6=> 6 1285 // <7=> 7 1286 1287 #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 1288 #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 7 1289 #endif 1290 1291 // <e> NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module. 1292 //========================================================== 1293 #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED 1294 #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 1295 #endif 1296 // <o> NRFX_TWIM_CONFIG_LOG_LEVEL - Default severity level. 1297 1298 // <0=> Off 1299 // <1=> Error 1300 // <2=> Warning 1301 // <3=> Info 1302 // <4=> Debug 1303 1304 #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL 1305 #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 1306 #endif 1307 1308 // <o> NRFX_TWIM_CONFIG_INFO_COLOR - ANSI escape code prefix. 1309 1310 // <0=> Default 1311 // <1=> Black 1312 // <2=> Red 1313 // <3=> Green 1314 // <4=> Yellow 1315 // <5=> Blue 1316 // <6=> Magenta 1317 // <7=> Cyan 1318 // <8=> White 1319 1320 #ifndef NRFX_TWIM_CONFIG_INFO_COLOR 1321 #define NRFX_TWIM_CONFIG_INFO_COLOR 0 1322 #endif 1323 1324 // <o> NRFX_TWIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1325 1326 // <0=> Default 1327 // <1=> Black 1328 // <2=> Red 1329 // <3=> Green 1330 // <4=> Yellow 1331 // <5=> Blue 1332 // <6=> Magenta 1333 // <7=> Cyan 1334 // <8=> White 1335 1336 #ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR 1337 #define NRFX_TWIM_CONFIG_DEBUG_COLOR 0 1338 #endif 1339 1340 // </e> 1341 1342 // </e> 1343 1344 // <e> NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver. 1345 //========================================================== 1346 #ifndef NRFX_TWIS_ENABLED 1347 #define NRFX_TWIS_ENABLED 0 1348 #endif 1349 // <q> NRFX_TWIS0_ENABLED - Enables TWIS0 instance. 1350 1351 1352 #ifndef NRFX_TWIS0_ENABLED 1353 #define NRFX_TWIS0_ENABLED 0 1354 #endif 1355 1356 // <q> NRFX_TWIS1_ENABLED - Enables TWIS1 instance. 1357 1358 1359 #ifndef NRFX_TWIS1_ENABLED 1360 #define NRFX_TWIS1_ENABLED 0 1361 #endif 1362 1363 // <q> NRFX_TWIS2_ENABLED - Enables TWIS2 instance. 1364 1365 1366 #ifndef NRFX_TWIS2_ENABLED 1367 #define NRFX_TWIS2_ENABLED 0 1368 #endif 1369 1370 // <q> NRFX_TWIS3_ENABLED - Enables TWIS3 instance. 1371 1372 1373 #ifndef NRFX_TWIS3_ENABLED 1374 #define NRFX_TWIS3_ENABLED 0 1375 #endif 1376 1377 // <q> NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assumes that any instance would be initialized only once. 1378 1379 1380 // <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. 1381 1382 #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 1383 #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 1384 #endif 1385 1386 // <q> NRFX_TWIS_NO_SYNC_MODE - Removes support for synchronous mode. 1387 1388 // <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. 1389 1390 #ifndef NRFX_TWIS_NO_SYNC_MODE 1391 #define NRFX_TWIS_NO_SYNC_MODE 0 1392 #endif 1393 1394 // <o> NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 1395 1396 // <0=> 0 (highest) 1397 // <1=> 1 1398 // <2=> 2 1399 // <3=> 3 1400 // <4=> 4 1401 // <5=> 5 1402 // <6=> 6 1403 // <7=> 7 1404 1405 #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 1406 #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 1407 #endif 1408 1409 // <e> NRFX_TWIS_CONFIG_LOG_ENABLED - Enables logging in the module. 1410 //========================================================== 1411 #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED 1412 #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 1413 #endif 1414 // <o> NRFX_TWIS_CONFIG_LOG_LEVEL - Default severity level. 1415 1416 // <0=> Off 1417 // <1=> Error 1418 // <2=> Warning 1419 // <3=> Info 1420 // <4=> Debug 1421 1422 #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL 1423 #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 1424 #endif 1425 1426 // <o> NRFX_TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix. 1427 1428 // <0=> Default 1429 // <1=> Black 1430 // <2=> Red 1431 // <3=> Green 1432 // <4=> Yellow 1433 // <5=> Blue 1434 // <6=> Magenta 1435 // <7=> Cyan 1436 // <8=> White 1437 1438 #ifndef NRFX_TWIS_CONFIG_INFO_COLOR 1439 #define NRFX_TWIS_CONFIG_INFO_COLOR 0 1440 #endif 1441 1442 // <o> NRFX_TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1443 1444 // <0=> Default 1445 // <1=> Black 1446 // <2=> Red 1447 // <3=> Green 1448 // <4=> Yellow 1449 // <5=> Blue 1450 // <6=> Magenta 1451 // <7=> Cyan 1452 // <8=> White 1453 1454 #ifndef NRFX_TWIS_CONFIG_DEBUG_COLOR 1455 #define NRFX_TWIS_CONFIG_DEBUG_COLOR 0 1456 #endif 1457 1458 // </e> 1459 1460 // </e> 1461 1462 // <e> NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver. 1463 //========================================================== 1464 #ifndef NRFX_UARTE_ENABLED 1465 #define NRFX_UARTE_ENABLED 0 1466 #endif 1467 // <q> NRFX_UARTE0_ENABLED - Enables UARTE0 instances 1468 #ifndef NRFX_UARTE0_ENABLED 1469 #define NRFX_UARTE0_ENABLED 0 1470 #endif 1471 1472 // <q> NRFX_UARTE1_ENABLED - Enables UARTE1 instance. 1473 #ifndef NRFX_UARTE1_ENABLED 1474 #define NRFX_UARTE1_ENABLED 0 1475 #endif 1476 1477 // <q> NRFX_UARTE2_ENABLED - Enables UARTE2 instance. 1478 #ifndef NRFX_UARTE2_ENABLED 1479 #define NRFX_UARTE2_ENABLED 0 1480 #endif 1481 1482 // <q> NRFX_UARTE3_ENABLED - Enables UARTE3 instance. 1483 #ifndef NRFX_UARTE3_ENABLED 1484 #define NRFX_UARTE3_ENABLED 0 1485 #endif 1486 1487 // <o> NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 1488 1489 // <0=> 0 (highest) 1490 // <1=> 1 1491 // <2=> 2 1492 // <3=> 3 1493 // <4=> 4 1494 // <5=> 5 1495 // <6=> 6 1496 // <7=> 7 1497 1498 #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 1499 #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 7 1500 #endif 1501 1502 // <e> NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module. 1503 //========================================================== 1504 #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED 1505 #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 1506 #endif 1507 // <o> NRFX_UARTE_CONFIG_LOG_LEVEL - Default severity level. 1508 1509 // <0=> Off 1510 // <1=> Error 1511 // <2=> Warning 1512 // <3=> Info 1513 // <4=> Debug 1514 1515 #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL 1516 #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 1517 #endif 1518 1519 // <o> NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix. 1520 1521 // <0=> Default 1522 // <1=> Black 1523 // <2=> Red 1524 // <3=> Green 1525 // <4=> Yellow 1526 // <5=> Blue 1527 // <6=> Magenta 1528 // <7=> Cyan 1529 // <8=> White 1530 1531 #ifndef NRFX_UARTE_CONFIG_INFO_COLOR 1532 #define NRFX_UARTE_CONFIG_INFO_COLOR 0 1533 #endif 1534 1535 // <o> NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1536 1537 // <0=> Default 1538 // <1=> Black 1539 // <2=> Red 1540 // <3=> Green 1541 // <4=> Yellow 1542 // <5=> Blue 1543 // <6=> Magenta 1544 // <7=> Cyan 1545 // <8=> White 1546 1547 #ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR 1548 #define NRFX_UARTE_CONFIG_DEBUG_COLOR 0 1549 #endif 1550 1551 // </e> 1552 1553 // </e> 1554 1555 // <e> NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver. 1556 //========================================================== 1557 #ifndef NRFX_WDT_ENABLED 1558 #define NRFX_WDT_ENABLED 0 1559 #endif 1560 // <q> NRFX_WDT0_ENABLED - Enable WDT0 instance. 1561 1562 1563 #ifndef NRFX_WDT0_ENABLED 1564 #define NRFX_WDT0_ENABLED 0 1565 #endif 1566 1567 // <o> NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver. 1568 1569 // <0=> Include WDT IRQ handling 1570 // <1=> Remove WDT IRQ handling 1571 1572 #ifndef NRFX_WDT_CONFIG_NO_IRQ 1573 #define NRFX_WDT_CONFIG_NO_IRQ 0 1574 #endif 1575 1576 // <o> NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority. 1577 1578 // <0=> 0 (highest) 1579 // <1=> 1 1580 // <2=> 2 1581 // <3=> 3 1582 // <4=> 4 1583 // <5=> 5 1584 // <6=> 6 1585 // <7=> 7 1586 1587 #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY 1588 #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY 7 1589 #endif 1590 1591 // <e> NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module. 1592 //========================================================== 1593 #ifndef NRFX_WDT_CONFIG_LOG_ENABLED 1594 #define NRFX_WDT_CONFIG_LOG_ENABLED 0 1595 #endif 1596 // <o> NRFX_WDT_CONFIG_LOG_LEVEL - Default severity level. 1597 1598 // <0=> Off 1599 // <1=> Error 1600 // <2=> Warning 1601 // <3=> Info 1602 // <4=> Debug 1603 1604 #ifndef NRFX_WDT_CONFIG_LOG_LEVEL 1605 #define NRFX_WDT_CONFIG_LOG_LEVEL 3 1606 #endif 1607 1608 // <o> NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix. 1609 1610 // <0=> Default 1611 // <1=> Black 1612 // <2=> Red 1613 // <3=> Green 1614 // <4=> Yellow 1615 // <5=> Blue 1616 // <6=> Magenta 1617 // <7=> Cyan 1618 // <8=> White 1619 1620 #ifndef NRFX_WDT_CONFIG_INFO_COLOR 1621 #define NRFX_WDT_CONFIG_INFO_COLOR 0 1622 #endif 1623 1624 // <o> NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1625 1626 // <0=> Default 1627 // <1=> Black 1628 // <2=> Red 1629 // <3=> Green 1630 // <4=> Yellow 1631 // <5=> Blue 1632 // <6=> Magenta 1633 // <7=> Cyan 1634 // <8=> White 1635 1636 #ifndef NRFX_WDT_CONFIG_DEBUG_COLOR 1637 #define NRFX_WDT_CONFIG_DEBUG_COLOR 0 1638 #endif 1639 1640 // </e> 1641 1642 // </e> 1643 1644 // </h> 1645 1646 #endif // NRFX_CONFIG_NRF91_H__ 1647