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