1 /*
2  * Copyright (c) 2020 - 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_NRF52820_H__
35 #define NRFX_CONFIG_NRF52820_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: 7.
46  */
47 #ifndef NRFX_DEFAULT_IRQ_PRIORITY
48 #define NRFX_DEFAULT_IRQ_PRIORITY 7
49 #endif
50 
51 /**
52  * @brief NRFX_CLOCK_ENABLED
53  *
54  * Boolean. Accepted values: 0 and 1.
55  */
56 #ifndef NRFX_CLOCK_ENABLED
57 #define NRFX_CLOCK_ENABLED 0
58 #endif
59 
60 /**
61  * @brief NRFX_CLOCK_CONFIG_LF_SRC
62  *
63  * Integer value.
64  * Supported values:
65  * - RC    = 0
66  * - XTAL  = 1
67  * - Synth = 2
68  * - External Low Swing  = 131073
69  * - External Full Swing = 196609
70  */
71 #ifndef NRFX_CLOCK_CONFIG_LF_SRC
72 #define NRFX_CLOCK_CONFIG_LF_SRC 1
73 #endif
74 
75 /**
76  * @brief NRFX_CLOCK_CONFIG_LF_CAL_ENABLED
77  *
78  * Boolean. Accepted values: 0 and 1.
79  */
80 #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED
81 #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0
82 #endif
83 
84 /**
85  * @brief NRFX_CLOCK_CONFIG_CT_ENABLED
86  *
87  * Boolean. Accepted values: 0 and 1.
88  */
89 #ifndef NRFX_CLOCK_CONFIG_CT_ENABLED
90 #define NRFX_CLOCK_CONFIG_CT_ENABLED 1
91 #endif
92 
93 /**
94  * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED
95  *
96  * Boolean. Accepted values: 0 and 1.
97  */
98 #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED
99 #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0
100 #endif
101 
102 /**
103  * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
104  *
105  * Integer value. Minimum: 0. Maximum: 7.
106  */
107 #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
108 #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
109 #endif
110 
111 /**
112  * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED
113  *
114  * Boolean. Accepted values: 0 and 1.
115  */
116 #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED
117 #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0
118 #endif
119 
120 /**
121  * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL
122  *
123  * Integer value.
124  * Supported values:
125  * - Off     = 0
126  * - Error   = 1
127  * - Warning = 2
128  * - Info    = 3
129  * - Debug   = 4
130  */
131 #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL
132 #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3
133 #endif
134 
135 /**
136  * @brief NRFX_COMP_ENABLED
137  *
138  * Boolean. Accepted values: 0 and 1.
139  */
140 #ifndef NRFX_COMP_ENABLED
141 #define NRFX_COMP_ENABLED 0
142 #endif
143 
144 /**
145  * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY
146  *
147  * Integer value. Minimum: 0. Maximum: 7.
148  */
149 #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY
150 #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
151 #endif
152 
153 /**
154  * @brief NRFX_COMP_CONFIG_LOG_ENABLED
155  *
156  * Boolean. Accepted values: 0 and 1.
157  */
158 #ifndef NRFX_COMP_CONFIG_LOG_ENABLED
159 #define NRFX_COMP_CONFIG_LOG_ENABLED 0
160 #endif
161 
162 /**
163  * @brief NRFX_COMP_CONFIG_LOG_LEVEL
164  *
165  * Integer value.
166  * Supported values:
167  * - Off     = 0
168  * - Error   = 1
169  * - Warning = 2
170  * - Info    = 3
171  * - Debug   = 4
172  */
173 #ifndef NRFX_COMP_CONFIG_LOG_LEVEL
174 #define NRFX_COMP_CONFIG_LOG_LEVEL 3
175 #endif
176 
177 /**
178  * @brief NRFX_EGU_ENABLED
179  *
180  * Boolean. Accepted values: 0 and 1.
181  */
182 #ifndef NRFX_EGU_ENABLED
183 #define NRFX_EGU_ENABLED 0
184 #endif
185 
186 /**
187  * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY
188  *
189  * Integer value. Minimum: 0. Maximum: 7.
190  */
191 #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY
192 #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
193 #endif
194 
195 /**
196  * @brief NRFX_EGU0_ENABLED
197  *
198  * Boolean. Accepted values: 0 and 1.
199  */
200 #ifndef NRFX_EGU0_ENABLED
201 #define NRFX_EGU0_ENABLED 0
202 #endif
203 
204 /**
205  * @brief NRFX_EGU1_ENABLED
206  *
207  * Boolean. Accepted values: 0 and 1.
208  */
209 #ifndef NRFX_EGU1_ENABLED
210 #define NRFX_EGU1_ENABLED 0
211 #endif
212 
213 /**
214  * @brief NRFX_EGU2_ENABLED
215  *
216  * Boolean. Accepted values: 0 and 1.
217  */
218 #ifndef NRFX_EGU2_ENABLED
219 #define NRFX_EGU2_ENABLED 0
220 #endif
221 
222 /**
223  * @brief NRFX_EGU3_ENABLED
224  *
225  * Boolean. Accepted values: 0 and 1.
226  */
227 #ifndef NRFX_EGU3_ENABLED
228 #define NRFX_EGU3_ENABLED 0
229 #endif
230 
231 /**
232  * @brief NRFX_EGU4_ENABLED
233  *
234  * Boolean. Accepted values: 0 and 1.
235  */
236 #ifndef NRFX_EGU4_ENABLED
237 #define NRFX_EGU4_ENABLED 0
238 #endif
239 
240 /**
241  * @brief NRFX_EGU5_ENABLED
242  *
243  * Boolean. Accepted values: 0 and 1.
244  */
245 #ifndef NRFX_EGU5_ENABLED
246 #define NRFX_EGU5_ENABLED 0
247 #endif
248 
249 /**
250  * @brief NRFX_GPIOTE_ENABLED
251  *
252  * Boolean. Accepted values: 0 and 1.
253  */
254 #ifndef NRFX_GPIOTE_ENABLED
255 #define NRFX_GPIOTE_ENABLED 0
256 #endif
257 
258 /**
259  * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY
260  *
261  * Integer value. Minimum: 0. Maximum: 7.
262  */
263 #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY
264 #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
265 #endif
266 
267 /**
268  * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
269  *
270  * Integer value. Minimum: 0. Maximum: 15.
271  */
272 #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
273 #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 2
274 #endif
275 
276 /**
277  * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED
278  *
279  * Boolean. Accepted values: 0 and 1.
280  */
281 #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED
282 #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0
283 #endif
284 
285 /**
286  * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL
287  *
288  * Integer value.
289  * Supported values:
290  * - Off     = 0
291  * - Error   = 1
292  * - Warning = 2
293  * - Info    = 3
294  * - Debug   = 4
295  */
296 #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL
297 #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3
298 #endif
299 
300 /**
301  * @brief NRFX_NVMC_ENABLED
302  *
303  * Boolean. Accepted values: 0 and 1.
304  */
305 #ifndef NRFX_NVMC_ENABLED
306 #define NRFX_NVMC_ENABLED 0
307 #endif
308 
309 /**
310  * @brief NRFX_POWER_ENABLED
311  *
312  * Boolean. Accepted values: 0 and 1.
313  */
314 #ifndef NRFX_POWER_ENABLED
315 #define NRFX_POWER_ENABLED 0
316 #endif
317 
318 /**
319  * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY
320  *
321  * Integer value. Minimum: 0. Maximum: 7.
322  */
323 #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY
324 #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
325 #endif
326 
327 /**
328  * @brief NRFX_PPI_ENABLED
329  *
330  * Boolean. Accepted values: 0 and 1.
331  */
332 #ifndef NRFX_PPI_ENABLED
333 #define NRFX_PPI_ENABLED 0
334 #endif
335 
336 /**
337  * @brief NRFX_PPI_CONFIG_LOG_ENABLED
338  *
339  * Boolean. Accepted values: 0 and 1.
340  */
341 #ifndef NRFX_PPI_CONFIG_LOG_ENABLED
342 #define NRFX_PPI_CONFIG_LOG_ENABLED 0
343 #endif
344 
345 /**
346  * @brief NRFX_PPI_CONFIG_LOG_LEVEL
347  *
348  * Integer value.
349  * Supported values:
350  * - Off     = 0
351  * - Error   = 1
352  * - Warning = 2
353  * - Info    = 3
354  * - Debug   = 4
355  */
356 #ifndef NRFX_PPI_CONFIG_LOG_LEVEL
357 #define NRFX_PPI_CONFIG_LOG_LEVEL 3
358 #endif
359 
360 /**
361  * @brief NRFX_PRS_ENABLED
362  *
363  * Boolean. Accepted values: 0 and 1.
364  */
365 #ifndef NRFX_PRS_ENABLED
366 #define NRFX_PRS_ENABLED 0
367 #endif
368 
369 /**
370  * @brief NRFX_PRS_CONFIG_LOG_ENABLED
371  *
372  * Boolean. Accepted values: 0 and 1.
373  */
374 #ifndef NRFX_PRS_CONFIG_LOG_ENABLED
375 #define NRFX_PRS_CONFIG_LOG_ENABLED 0
376 #endif
377 
378 /**
379  * @brief NRFX_PRS_CONFIG_LOG_LEVEL
380  *
381  * Integer value.
382  * Supported values:
383  * - Off     = 0
384  * - Error   = 1
385  * - Warning = 2
386  * - Info    = 3
387  * - Debug   = 4
388  */
389 #ifndef NRFX_PRS_CONFIG_LOG_LEVEL
390 #define NRFX_PRS_CONFIG_LOG_LEVEL 3
391 #endif
392 
393 /**
394  * @brief NRFX_PRS_BOX_0_ENABLED
395  *
396  * Boolean. Accepted values: 0 and 1.
397  */
398 #ifndef NRFX_PRS_BOX_0_ENABLED
399 #define NRFX_PRS_BOX_0_ENABLED 0
400 #endif
401 
402 /**
403  * @brief NRFX_PRS_BOX_1_ENABLED
404  *
405  * Boolean. Accepted values: 0 and 1.
406  */
407 #ifndef NRFX_PRS_BOX_1_ENABLED
408 #define NRFX_PRS_BOX_1_ENABLED 0
409 #endif
410 
411 /**
412  * @brief NRFX_PRS_BOX_2_ENABLED
413  *
414  * Boolean. Accepted values: 0 and 1.
415  */
416 #ifndef NRFX_PRS_BOX_2_ENABLED
417 #define NRFX_PRS_BOX_2_ENABLED 0
418 #endif
419 
420 /**
421  * @brief NRFX_QDEC_ENABLED
422  *
423  * Boolean. Accepted values: 0 and 1.
424  */
425 #ifndef NRFX_QDEC_ENABLED
426 #define NRFX_QDEC_ENABLED 0
427 #endif
428 
429 /**
430  * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY
431  *
432  * Integer value. Minimum: 0. Maximum: 7.
433  */
434 #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY
435 #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
436 #endif
437 
438 /**
439  * @brief NRFX_QDEC_CONFIG_LOG_ENABLED
440  *
441  * Boolean. Accepted values: 0 and 1.
442  */
443 #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED
444 #define NRFX_QDEC_CONFIG_LOG_ENABLED 0
445 #endif
446 
447 /**
448  * @brief NRFX_QDEC_CONFIG_LOG_LEVEL
449  *
450  * Integer value.
451  * Supported values:
452  * - Off     = 0
453  * - Error   = 1
454  * - Warning = 2
455  * - Info    = 3
456  * - Debug   = 4
457  */
458 #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL
459 #define NRFX_QDEC_CONFIG_LOG_LEVEL 3
460 #endif
461 
462 /**
463  * @brief NRFX_RNG_ENABLED
464  *
465  * Boolean. Accepted values: 0 and 1.
466  */
467 #ifndef NRFX_RNG_ENABLED
468 #define NRFX_RNG_ENABLED 0
469 #endif
470 
471 /**
472  * @brief NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY
473  *
474  * Integer value. Minimum: 0. Maximum: 7.
475  */
476 #ifndef NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY
477 #define NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
478 #endif
479 
480 /**
481  * @brief NRFX_RNG_CONFIG_LOG_ENABLED
482  *
483  * Boolean. Accepted values: 0 and 1.
484  */
485 #ifndef NRFX_RNG_CONFIG_LOG_ENABLED
486 #define NRFX_RNG_CONFIG_LOG_ENABLED 0
487 #endif
488 
489 /**
490  * @brief NRFX_RNG_CONFIG_LOG_LEVEL
491  *
492  * Integer value.
493  * Supported values:
494  * - Off     = 0
495  * - Error   = 1
496  * - Warning = 2
497  * - Info    = 3
498  * - Debug   = 4
499  */
500 #ifndef NRFX_RNG_CONFIG_LOG_LEVEL
501 #define NRFX_RNG_CONFIG_LOG_LEVEL 3
502 #endif
503 
504 /**
505  * @brief NRFX_RTC_ENABLED
506  *
507  * Boolean. Accepted values: 0 and 1.
508  */
509 #ifndef NRFX_RTC_ENABLED
510 #define NRFX_RTC_ENABLED 0
511 #endif
512 
513 /**
514  * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY
515  *
516  * Integer value. Minimum: 0. Maximum: 7.
517  */
518 #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY
519 #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
520 #endif
521 
522 /**
523  * @brief NRFX_RTC_CONFIG_LOG_ENABLED
524  *
525  * Boolean. Accepted values: 0 and 1.
526  */
527 #ifndef NRFX_RTC_CONFIG_LOG_ENABLED
528 #define NRFX_RTC_CONFIG_LOG_ENABLED 0
529 #endif
530 
531 /**
532  * @brief NRFX_RTC_CONFIG_LOG_LEVEL
533  *
534  * Integer value.
535  * Supported values:
536  * - Off     = 0
537  * - Error   = 1
538  * - Warning = 2
539  * - Info    = 3
540  * - Debug   = 4
541  */
542 #ifndef NRFX_RTC_CONFIG_LOG_LEVEL
543 #define NRFX_RTC_CONFIG_LOG_LEVEL 3
544 #endif
545 
546 /**
547  * @brief NRFX_RTC0_ENABLED
548  *
549  * Boolean. Accepted values: 0 and 1.
550  */
551 #ifndef NRFX_RTC0_ENABLED
552 #define NRFX_RTC0_ENABLED 0
553 #endif
554 
555 /**
556  * @brief NRFX_RTC1_ENABLED
557  *
558  * Boolean. Accepted values: 0 and 1.
559  */
560 #ifndef NRFX_RTC1_ENABLED
561 #define NRFX_RTC1_ENABLED 0
562 #endif
563 
564 /**
565  * @brief NRFX_SPI_ENABLED
566  *
567  * Boolean. Accepted values: 0 and 1.
568  */
569 #ifndef NRFX_SPI_ENABLED
570 #define NRFX_SPI_ENABLED 0
571 #endif
572 
573 /**
574  * @brief NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY
575  *
576  * Integer value. Minimum: 0. Maximum: 7.
577  */
578 #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY
579 #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
580 #endif
581 
582 /**
583  * @brief NRFX_SPI_CONFIG_LOG_ENABLED
584  *
585  * Boolean. Accepted values: 0 and 1.
586  */
587 #ifndef NRFX_SPI_CONFIG_LOG_ENABLED
588 #define NRFX_SPI_CONFIG_LOG_ENABLED 0
589 #endif
590 
591 /**
592  * @brief NRFX_SPI_CONFIG_LOG_LEVEL
593  *
594  * Integer value.
595  * Supported values:
596  * - Off     = 0
597  * - Error   = 1
598  * - Warning = 2
599  * - Info    = 3
600  * - Debug   = 4
601  */
602 #ifndef NRFX_SPI_CONFIG_LOG_LEVEL
603 #define NRFX_SPI_CONFIG_LOG_LEVEL 3
604 #endif
605 
606 /**
607  * @brief NRFX_SPI0_ENABLED
608  *
609  * Boolean. Accepted values: 0 and 1.
610  */
611 #ifndef NRFX_SPI0_ENABLED
612 #define NRFX_SPI0_ENABLED 0
613 #endif
614 
615 /**
616  * @brief NRFX_SPI1_ENABLED
617  *
618  * Boolean. Accepted values: 0 and 1.
619  */
620 #ifndef NRFX_SPI1_ENABLED
621 #define NRFX_SPI1_ENABLED 0
622 #endif
623 
624 /**
625  * @brief NRFX_SPIM_ENABLED
626  *
627  * Boolean. Accepted values: 0 and 1.
628  */
629 #ifndef NRFX_SPIM_ENABLED
630 #define NRFX_SPIM_ENABLED 0
631 #endif
632 
633 /**
634  * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY
635  *
636  * Integer value. Minimum: 0. Maximum: 7.
637  */
638 #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY
639 #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
640 #endif
641 
642 /**
643  * @brief NRFX_SPIM_CONFIG_LOG_ENABLED
644  *
645  * Boolean. Accepted values: 0 and 1.
646  */
647 #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED
648 #define NRFX_SPIM_CONFIG_LOG_ENABLED 0
649 #endif
650 
651 /**
652  * @brief NRFX_SPIM_CONFIG_LOG_LEVEL
653  *
654  * Integer value.
655  * Supported values:
656  * - Off     = 0
657  * - Error   = 1
658  * - Warning = 2
659  * - Info    = 3
660  * - Debug   = 4
661  */
662 #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL
663 #define NRFX_SPIM_CONFIG_LOG_LEVEL 3
664 #endif
665 
666 /**
667  * @brief NRFX_SPIM0_ENABLED
668  *
669  * Boolean. Accepted values: 0 and 1.
670  */
671 #ifndef NRFX_SPIM0_ENABLED
672 #define NRFX_SPIM0_ENABLED 0
673 #endif
674 
675 /**
676  * @brief NRFX_SPIM1_ENABLED
677  *
678  * Boolean. Accepted values: 0 and 1.
679  */
680 #ifndef NRFX_SPIM1_ENABLED
681 #define NRFX_SPIM1_ENABLED 0
682 #endif
683 
684 /**
685  * @brief NRFX_SPIS_ENABLED
686  *
687  * Boolean. Accepted values: 0 and 1.
688  */
689 #ifndef NRFX_SPIS_ENABLED
690 #define NRFX_SPIS_ENABLED 0
691 #endif
692 
693 /**
694  * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
695  *
696  * Integer value. Minimum: 0. Maximum: 7.
697  */
698 #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
699 #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
700 #endif
701 
702 /**
703  * @brief NRFX_SPIS_CONFIG_LOG_ENABLED
704  *
705  * Boolean. Accepted values: 0 and 1.
706  */
707 #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED
708 #define NRFX_SPIS_CONFIG_LOG_ENABLED 0
709 #endif
710 
711 /**
712  * @brief NRFX_SPIS_CONFIG_LOG_LEVEL
713  *
714  * Integer value.
715  * Supported values:
716  * - Off     = 0
717  * - Error   = 1
718  * - Warning = 2
719  * - Info    = 3
720  * - Debug   = 4
721  */
722 #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL
723 #define NRFX_SPIS_CONFIG_LOG_LEVEL 3
724 #endif
725 
726 /**
727  * @brief NRFX_SPIS0_ENABLED
728  *
729  * Boolean. Accepted values: 0 and 1.
730  */
731 #ifndef NRFX_SPIS0_ENABLED
732 #define NRFX_SPIS0_ENABLED 0
733 #endif
734 
735 /**
736  * @brief NRFX_SPIS1_ENABLED
737  *
738  * Boolean. Accepted values: 0 and 1.
739  */
740 #ifndef NRFX_SPIS1_ENABLED
741 #define NRFX_SPIS1_ENABLED 0
742 #endif
743 
744 /**
745  * @brief NRFX_SYSTICK_ENABLED
746  *
747  * Boolean. Accepted values: 0 and 1.
748  */
749 #ifndef NRFX_SYSTICK_ENABLED
750 #define NRFX_SYSTICK_ENABLED 0
751 #endif
752 
753 /**
754  * @brief NRFX_TEMP_ENABLED
755  *
756  * Boolean. Accepted values: 0 and 1.
757  */
758 #ifndef NRFX_TEMP_ENABLED
759 #define NRFX_TEMP_ENABLED 0
760 #endif
761 
762 /**
763  * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY
764  *
765  * Integer value. Minimum: 0. Maximum: 7.
766  */
767 #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY
768 #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
769 #endif
770 
771 /**
772  * @brief NRFX_TEMP_CONFIG_LOG_ENABLED
773  *
774  * Boolean. Accepted values: 0 and 1.
775  */
776 #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED
777 #define NRFX_TEMP_CONFIG_LOG_ENABLED 0
778 #endif
779 
780 /**
781  * @brief NRFX_TEMP_CONFIG_LOG_LEVEL
782  *
783  * Integer value.
784  * Supported values:
785  * - Off     = 0
786  * - Error   = 1
787  * - Warning = 2
788  * - Info    = 3
789  * - Debug   = 4
790  */
791 #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL
792 #define NRFX_TEMP_CONFIG_LOG_LEVEL 3
793 #endif
794 
795 /**
796  * @brief NRFX_TIMER_ENABLED
797  *
798  * Boolean. Accepted values: 0 and 1.
799  */
800 #ifndef NRFX_TIMER_ENABLED
801 #define NRFX_TIMER_ENABLED 0
802 #endif
803 
804 /**
805  * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
806  *
807  * Integer value. Minimum: 0. Maximum: 7.
808  */
809 #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
810 #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
811 #endif
812 
813 /**
814  * @brief NRFX_TIMER_CONFIG_LOG_ENABLED
815  *
816  * Boolean. Accepted values: 0 and 1.
817  */
818 #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED
819 #define NRFX_TIMER_CONFIG_LOG_ENABLED 0
820 #endif
821 
822 /**
823  * @brief NRFX_TIMER_CONFIG_LOG_LEVEL
824  *
825  * Integer value.
826  * Supported values:
827  * - Off     = 0
828  * - Error   = 1
829  * - Warning = 2
830  * - Info    = 3
831  * - Debug   = 4
832  */
833 #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL
834 #define NRFX_TIMER_CONFIG_LOG_LEVEL 3
835 #endif
836 
837 /**
838  * @brief NRFX_TIMER0_ENABLED
839  *
840  * Boolean. Accepted values: 0 and 1.
841  */
842 #ifndef NRFX_TIMER0_ENABLED
843 #define NRFX_TIMER0_ENABLED 0
844 #endif
845 
846 /**
847  * @brief NRFX_TIMER1_ENABLED
848  *
849  * Boolean. Accepted values: 0 and 1.
850  */
851 #ifndef NRFX_TIMER1_ENABLED
852 #define NRFX_TIMER1_ENABLED 0
853 #endif
854 
855 /**
856  * @brief NRFX_TIMER2_ENABLED
857  *
858  * Boolean. Accepted values: 0 and 1.
859  */
860 #ifndef NRFX_TIMER2_ENABLED
861 #define NRFX_TIMER2_ENABLED 0
862 #endif
863 
864 /**
865  * @brief NRFX_TIMER3_ENABLED
866  *
867  * Boolean. Accepted values: 0 and 1.
868  */
869 #ifndef NRFX_TIMER3_ENABLED
870 #define NRFX_TIMER3_ENABLED 0
871 #endif
872 
873 /**
874  * @brief NRFX_TWI_ENABLED
875  *
876  * Boolean. Accepted values: 0 and 1.
877  */
878 #ifndef NRFX_TWI_ENABLED
879 #define NRFX_TWI_ENABLED 0
880 #endif
881 
882 /**
883  * @brief NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY
884  *
885  * Integer value. Minimum: 0. Maximum: 7.
886  */
887 #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY
888 #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
889 #endif
890 
891 /**
892  * @brief NRFX_TWI_CONFIG_LOG_ENABLED
893  *
894  * Boolean. Accepted values: 0 and 1.
895  */
896 #ifndef NRFX_TWI_CONFIG_LOG_ENABLED
897 #define NRFX_TWI_CONFIG_LOG_ENABLED 0
898 #endif
899 
900 /**
901  * @brief NRFX_TWI_CONFIG_LOG_LEVEL
902  *
903  * Integer value.
904  * Supported values:
905  * - Off     = 0
906  * - Error   = 1
907  * - Warning = 2
908  * - Info    = 3
909  * - Debug   = 4
910  */
911 #ifndef NRFX_TWI_CONFIG_LOG_LEVEL
912 #define NRFX_TWI_CONFIG_LOG_LEVEL 3
913 #endif
914 
915 /**
916  * @brief NRFX_TWI0_ENABLED
917  *
918  * Boolean. Accepted values: 0 and 1.
919  */
920 #ifndef NRFX_TWI0_ENABLED
921 #define NRFX_TWI0_ENABLED 0
922 #endif
923 
924 /**
925  * @brief NRFX_TWI1_ENABLED
926  *
927  * Boolean. Accepted values: 0 and 1.
928  */
929 #ifndef NRFX_TWI1_ENABLED
930 #define NRFX_TWI1_ENABLED 0
931 #endif
932 
933 /**
934  * @brief NRFX_TWIM_ENABLED
935  *
936  * Boolean. Accepted values: 0 and 1.
937  */
938 #ifndef NRFX_TWIM_ENABLED
939 #define NRFX_TWIM_ENABLED 0
940 #endif
941 
942 /**
943  * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
944  *
945  * Integer value. Minimum: 0. Maximum: 7.
946  */
947 #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
948 #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
949 #endif
950 
951 /**
952  * @brief NRFX_TWIM_CONFIG_LOG_ENABLED
953  *
954  * Boolean. Accepted values: 0 and 1.
955  */
956 #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED
957 #define NRFX_TWIM_CONFIG_LOG_ENABLED 0
958 #endif
959 
960 /**
961  * @brief NRFX_TWIM_CONFIG_LOG_LEVEL
962  *
963  * Integer value.
964  * Supported values:
965  * - Off     = 0
966  * - Error   = 1
967  * - Warning = 2
968  * - Info    = 3
969  * - Debug   = 4
970  */
971 #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL
972 #define NRFX_TWIM_CONFIG_LOG_LEVEL 3
973 #endif
974 
975 /**
976  * @brief NRFX_TWIM0_ENABLED
977  *
978  * Boolean. Accepted values: 0 and 1.
979  */
980 #ifndef NRFX_TWIM0_ENABLED
981 #define NRFX_TWIM0_ENABLED 0
982 #endif
983 
984 /**
985  * @brief NRFX_TWIM1_ENABLED
986  *
987  * Boolean. Accepted values: 0 and 1.
988  */
989 #ifndef NRFX_TWIM1_ENABLED
990 #define NRFX_TWIM1_ENABLED 0
991 #endif
992 
993 /**
994  * @brief NRFX_TWIS_ENABLED
995  *
996  * Boolean. Accepted values: 0 and 1.
997  */
998 #ifndef NRFX_TWIS_ENABLED
999 #define NRFX_TWIS_ENABLED 0
1000 #endif
1001 
1002 /**
1003  * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
1004  *
1005  * Integer value. Minimum: 0. Maximum: 7.
1006  */
1007 #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
1008 #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
1009 #endif
1010 
1011 /**
1012  * @brief NRFX_TWIS_CONFIG_LOG_ENABLED
1013  *
1014  * Boolean. Accepted values: 0 and 1.
1015  */
1016 #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED
1017 #define NRFX_TWIS_CONFIG_LOG_ENABLED 0
1018 #endif
1019 
1020 /**
1021  * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once.
1022  *
1023  * Boolean. Accepted values: 0 and 1.
1024  */
1025 #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY
1026 #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
1027 #endif
1028 
1029 /**
1030  * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode.
1031  *
1032  * Boolean. Accepted values: 0 and 1.
1033  */
1034 #ifndef NRFX_TWIS_NO_SYNC_MODE
1035 #define NRFX_TWIS_NO_SYNC_MODE 0
1036 #endif
1037 
1038 /**
1039  * @brief NRFX_TWIS_CONFIG_LOG_LEVEL
1040  *
1041  * Integer value.
1042  * Supported values:
1043  * - Off     = 0
1044  * - Error   = 1
1045  * - Warning = 2
1046  * - Info    = 3
1047  * - Debug   = 4
1048  */
1049 #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL
1050 #define NRFX_TWIS_CONFIG_LOG_LEVEL 3
1051 #endif
1052 
1053 /**
1054  * @brief NRFX_TWIS0_ENABLED
1055  *
1056  * Boolean. Accepted values: 0 and 1.
1057  */
1058 #ifndef NRFX_TWIS0_ENABLED
1059 #define NRFX_TWIS0_ENABLED 0
1060 #endif
1061 
1062 /**
1063  * @brief NRFX_TWIS1_ENABLED
1064  *
1065  * Boolean. Accepted values: 0 and 1.
1066  */
1067 #ifndef NRFX_TWIS1_ENABLED
1068 #define NRFX_TWIS1_ENABLED 0
1069 #endif
1070 
1071 /**
1072  * @brief NRFX_UART_ENABLED
1073  *
1074  * Boolean. Accepted values: 0 and 1.
1075  */
1076 #ifndef NRFX_UART_ENABLED
1077 #define NRFX_UART_ENABLED 0
1078 #endif
1079 
1080 /**
1081  * @brief NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY
1082  *
1083  * Integer value. Minimum: 0. Maximum: 7.
1084  */
1085 #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY
1086 #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
1087 #endif
1088 
1089 /**
1090  * @brief NRFX_UART_CONFIG_LOG_ENABLED
1091  *
1092  * Boolean. Accepted values: 0 and 1.
1093  */
1094 #ifndef NRFX_UART_CONFIG_LOG_ENABLED
1095 #define NRFX_UART_CONFIG_LOG_ENABLED 0
1096 #endif
1097 
1098 /**
1099  * @brief NRFX_UART_CONFIG_LOG_LEVEL
1100  *
1101  * Integer value.
1102  * Supported values:
1103  * - Off     = 0
1104  * - Error   = 1
1105  * - Warning = 2
1106  * - Info    = 3
1107  * - Debug   = 4
1108  */
1109 #ifndef NRFX_UART_CONFIG_LOG_LEVEL
1110 #define NRFX_UART_CONFIG_LOG_LEVEL 3
1111 #endif
1112 
1113 /**
1114  * @brief NRFX_UART0_ENABLED
1115  *
1116  * Boolean. Accepted values: 0 and 1.
1117  */
1118 #ifndef NRFX_UART0_ENABLED
1119 #define NRFX_UART0_ENABLED 0
1120 #endif
1121 
1122 /**
1123  * @brief NRFX_UARTE_ENABLED
1124  *
1125  * Boolean. Accepted values: 0 and 1.
1126  */
1127 #ifndef NRFX_UARTE_ENABLED
1128 #define NRFX_UARTE_ENABLED 0
1129 #endif
1130 
1131 /**
1132  * @brief NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG - If enabled, support for configuring GPIO pins is removed from the driver
1133  *
1134  * Boolean. Accepted values: 0 and 1.
1135  */
1136 #ifndef NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG
1137 #define NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG 0
1138 #endif
1139 
1140 /**
1141  * @brief NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG - If enabled, support for configuring PSEL registers is removed from the driver
1142  *
1143  * Boolean. Accepted values: 0 and 1.
1144  */
1145 #ifndef NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG
1146 #define NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG 0
1147 #endif
1148 
1149 /**
1150  * @brief NRFX_UARTE_CONFIG_TX_LINK - If enabled, driver supports linking of TX transfers.
1151  *
1152  * Boolean. Accepted values: 0 and 1.
1153  */
1154 #ifndef NRFX_UARTE_CONFIG_TX_LINK
1155 #define NRFX_UARTE_CONFIG_TX_LINK 1
1156 #endif
1157 
1158 /**
1159  * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY
1160  *
1161  * Integer value. Minimum: 0. Maximum: 7.
1162  */
1163 #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY
1164 #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
1165 #endif
1166 
1167 /**
1168  * @brief NRFX_UARTE_CONFIG_LOG_ENABLED
1169  *
1170  * Boolean. Accepted values: 0 and 1.
1171  */
1172 #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED
1173 #define NRFX_UARTE_CONFIG_LOG_ENABLED 0
1174 #endif
1175 
1176 /**
1177  * @brief NRFX_UARTE_CONFIG_LOG_LEVEL
1178  *
1179  * Integer value.
1180  * Supported values:
1181  * - Off     = 0
1182  * - Error   = 1
1183  * - Warning = 2
1184  * - Info    = 3
1185  * - Debug   = 4
1186  */
1187 #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL
1188 #define NRFX_UARTE_CONFIG_LOG_LEVEL 3
1189 #endif
1190 
1191 /**
1192  * @brief NRFX_UARTE0_ENABLED
1193  *
1194  * Boolean. Accepted values: 0 and 1.
1195  */
1196 #ifndef NRFX_UARTE0_ENABLED
1197 #define NRFX_UARTE0_ENABLED 0
1198 #endif
1199 
1200 /**
1201  * @brief NRFX_USBD_ENABLED
1202  *
1203  * Boolean. Accepted values: 0 and 1.
1204  */
1205 #ifndef NRFX_USBD_ENABLED
1206 #define NRFX_USBD_ENABLED 0
1207 #endif
1208 
1209 /**
1210  * @brief NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY
1211  *
1212  * Integer value. Minimum: 0. Maximum: 7.
1213  */
1214 #ifndef NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY
1215 #define NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
1216 #endif
1217 
1218 /**
1219  * @brief NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers
1220  *
1221  * Boolean. Accepted values: 0 and 1.
1222  */
1223 #ifndef NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST
1224 #define NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1
1225 #endif
1226 
1227 /**
1228  * @brief NRFX_USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no data is ready.
1229  *
1230  * Boolean. Accepted values: 0 and 1.
1231  */
1232 #ifndef NRFX_USBD_CONFIG_ISO_IN_ZLP
1233 #define NRFX_USBD_CONFIG_ISO_IN_ZLP 0
1234 #endif
1235 
1236 /**
1237  * @brief NRFX_USBD_CONFIG_LOG_ENABLED
1238  *
1239  * Boolean. Accepted values: 0 and 1.
1240  */
1241 #ifndef NRFX_USBD_CONFIG_LOG_ENABLED
1242 #define NRFX_USBD_CONFIG_LOG_ENABLED 0
1243 #endif
1244 
1245 /**
1246  * @brief NRFX_USBD_CONFIG_LOG_LEVEL
1247  *
1248  * Integer value.
1249  * Supported values:
1250  * - Off     = 0
1251  * - Error   = 1
1252  * - Warning = 2
1253  * - Info    = 3
1254  * - Debug   = 4
1255  */
1256 #ifndef NRFX_USBD_CONFIG_LOG_LEVEL
1257 #define NRFX_USBD_CONFIG_LOG_LEVEL 3
1258 #endif
1259 
1260 /**
1261  * @brief NRFX_WDT_ENABLED
1262  *
1263  * Boolean. Accepted values: 0 and 1.
1264  */
1265 #ifndef NRFX_WDT_ENABLED
1266 #define NRFX_WDT_ENABLED 0
1267 #endif
1268 
1269 /**
1270  * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY
1271  *
1272  * Integer value. Minimum: 0. Maximum: 7.
1273  */
1274 #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY
1275 #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
1276 #endif
1277 
1278 /**
1279  * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver
1280  *
1281  * Boolean. Accepted values: 0 and 1.
1282  */
1283 #ifndef NRFX_WDT_CONFIG_NO_IRQ
1284 #define NRFX_WDT_CONFIG_NO_IRQ 0
1285 #endif
1286 
1287 /**
1288  * @brief NRFX_WDT_CONFIG_LOG_ENABLED
1289  *
1290  * Boolean. Accepted values: 0 and 1.
1291  */
1292 #ifndef NRFX_WDT_CONFIG_LOG_ENABLED
1293 #define NRFX_WDT_CONFIG_LOG_ENABLED 0
1294 #endif
1295 
1296 /**
1297  * @brief NRFX_WDT_CONFIG_LOG_LEVEL
1298  *
1299  * Integer value.
1300  * Supported values:
1301  * - Off     = 0
1302  * - Error   = 1
1303  * - Warning = 2
1304  * - Info    = 3
1305  * - Debug   = 4
1306  */
1307 #ifndef NRFX_WDT_CONFIG_LOG_LEVEL
1308 #define NRFX_WDT_CONFIG_LOG_LEVEL 3
1309 #endif
1310 
1311 #endif // NRFX_CONFIG_NRF52820_H__
1312