1 /*
2  * Copyright (c) 2018 - 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_NRF91_H__
35 #define NRFX_CONFIG_NRF91_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  * The MDK provides macros for accessing the peripheral register structures
43  * by using their secure and non-secure address mappings (with the names
44  * containing the suffix _S or _NS, respectively). Because the nrfx drivers
45  * use the macros without any suffixes, you must translate the names.
46  * The following section provides configuration for the name translation.
47  * It must be modified to reflect the actual configuration set in NRF_SPU.
48  */
49 #define NRF_CLOCK      NRF_CLOCK_S
50 #define NRF_DPPIC      NRF_DPPIC_S
51 #define NRF_EGU0       NRF_EGU0_S
52 #define NRF_EGU1       NRF_EGU1_S
53 #define NRF_EGU2       NRF_EGU2_S
54 #define NRF_EGU3       NRF_EGU3_S
55 #define NRF_EGU4       NRF_EGU4_S
56 #define NRF_EGU5       NRF_EGU5_S
57 #define NRF_FPU        NRF_FPU_S
58 #define NRF_I2S        NRF_I2S_S
59 #define NRF_IPC        NRF_IPC_S
60 #define NRF_KMU        NRF_KMU_S
61 #define NRF_NVMC       NRF_NVMC_S
62 #define NRF_P0         NRF_P0_S
63 #define NRF_PDM        NRF_PDM_S
64 #define NRF_POWER      NRF_POWER_S
65 #define NRF_PWM0       NRF_PWM0_S
66 #define NRF_PWM1       NRF_PWM1_S
67 #define NRF_PWM2       NRF_PWM2_S
68 #define NRF_PWM3       NRF_PWM3_S
69 #define NRF_REGULATORS NRF_REGULATORS_S
70 #define NRF_RTC0       NRF_RTC0_S
71 #define NRF_RTC1       NRF_RTC1_S
72 #define NRF_SAADC      NRF_SAADC_S
73 #define NRF_SPIM0      NRF_SPIM0_S
74 #define NRF_SPIM1      NRF_SPIM1_S
75 #define NRF_SPIM2      NRF_SPIM2_S
76 #define NRF_SPIM3      NRF_SPIM3_S
77 #define NRF_SPIS0      NRF_SPIS0_S
78 #define NRF_SPIS1      NRF_SPIS1_S
79 #define NRF_SPIS2      NRF_SPIS2_S
80 #define NRF_SPIS3      NRF_SPIS3_S
81 #define NRF_TIMER0     NRF_TIMER0_S
82 #define NRF_TIMER1     NRF_TIMER1_S
83 #define NRF_TIMER2     NRF_TIMER2_S
84 #define NRF_TWIM0      NRF_TWIM0_S
85 #define NRF_TWIM1      NRF_TWIM1_S
86 #define NRF_TWIM2      NRF_TWIM2_S
87 #define NRF_TWIM3      NRF_TWIM3_S
88 #define NRF_TWIS0      NRF_TWIS0_S
89 #define NRF_TWIS1      NRF_TWIS1_S
90 #define NRF_TWIS2      NRF_TWIS2_S
91 #define NRF_TWIS3      NRF_TWIS3_S
92 #define NRF_UARTE0     NRF_UARTE0_S
93 #define NRF_UARTE1     NRF_UARTE1_S
94 #define NRF_UARTE2     NRF_UARTE2_S
95 #define NRF_UARTE3     NRF_UARTE3_S
96 #define NRF_VMC        NRF_VMC_S
97 #define NRF_WDT        NRF_WDT_S
98 
99 /*
100  * The following section provides the name translation for peripherals with
101  * only one type of access available. For these peripherals, you cannot choose
102  * between secure and non-secure mapping.
103  */
104 #if defined(NRF_TRUSTZONE_NONSECURE)
105 #define NRF_GPIOTE1      NRF_GPIOTE1_NS
106 #else
107 #define NRF_CC_HOST_RGF  NRF_CC_HOST_RGF_S
108 #define NRF_CRYPTOCELL   NRF_CRYPTOCELL_S
109 #define NRF_CTRL_AP_PERI NRF_CTRL_AP_PERI_S
110 #define NRF_FICR         NRF_FICR_S
111 #define NRF_GPIOTE0      NRF_GPIOTE0_S
112 #define NRF_SPU          NRF_SPU_S
113 #define NRF_TAD          NRF_TAD_S
114 #define NRF_UICR         NRF_UICR_S
115 #endif
116 
117 /* Fixups for the GPIOTE driver. */
118 #if defined(NRF_TRUSTZONE_NONSECURE)
119 #define NRF_GPIOTE        NRF_GPIOTE1
120 #define GPIOTE_IRQHandler GPIOTE1_IRQHandler
121 #else
122 #define NRF_GPIOTE        NRF_GPIOTE0
123 #define GPIOTE_IRQHandler GPIOTE0_IRQHandler
124 #endif
125 
126 /**
127  * @brief NRFX_DEFAULT_IRQ_PRIORITY
128  *
129  * Integer value. Minimum: 0 Maximum: 7
130  */
131 #ifndef NRFX_DEFAULT_IRQ_PRIORITY
132 #define NRFX_DEFAULT_IRQ_PRIORITY 7
133 #endif
134 
135 /**
136  * @brief NRFX_CLOCK_ENABLED
137  *
138  * Boolean. Accepted values 0 and 1.
139  */
140 #ifndef NRFX_CLOCK_ENABLED
141 #define NRFX_CLOCK_ENABLED 0
142 #endif
143 
144 /**
145  * @brief NRFX_CLOCK_CONFIG_LF_SRC
146  *
147  * Integer value.
148  * Supported values:
149  * - RC    = 1
150  * - XTAL  = 2
151  */
152 #ifndef NRFX_CLOCK_CONFIG_LF_SRC
153 #define NRFX_CLOCK_CONFIG_LF_SRC 2
154 #endif
155 
156 /**
157  * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED
158  *
159  * Boolean. Accepted values 0 and 1.
160  */
161 #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED
162 #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0
163 #endif
164 
165 /**
166  * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
167  *
168  * Integer value. Minimum: 0 Maximum: 7
169  */
170 #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
171 #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
172 #endif
173 
174 /**
175  * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED
176  *
177  * Boolean. Accepted values 0 and 1.
178  */
179 #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED
180 #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0
181 #endif
182 
183 /**
184  * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL
185  *
186  * Integer value.
187  * Supported values:
188  * - Off     = 0
189  * - Error   = 1
190  * - Warning = 2
191  * - Info    = 3
192  * - Debug   = 4
193  */
194 #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL
195 #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3
196 #endif
197 
198 /**
199  * @brief NRFX_DPPI_ENABLED
200  *
201  * Boolean. Accepted values 0 and 1.
202  */
203 #ifndef NRFX_DPPI_ENABLED
204 #define NRFX_DPPI_ENABLED 0
205 #endif
206 
207 /**
208  * @brief NRFX_DPPI_CONFIG_LOG_ENABLED
209  *
210  * Boolean. Accepted values 0 and 1.
211  */
212 #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED
213 #define NRFX_DPPI_CONFIG_LOG_ENABLED 0
214 #endif
215 
216 /**
217  * @brief NRFX_DPPI_CONFIG_LOG_LEVEL
218  *
219  * Integer value.
220  * Supported values:
221  * - Off     = 0
222  * - Error   = 1
223  * - Warning = 2
224  * - Info    = 3
225  * - Debug   = 4
226  */
227 #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL
228 #define NRFX_DPPI_CONFIG_LOG_LEVEL 3
229 #endif
230 
231 /**
232  * @brief NRFX_EGU_ENABLED
233  *
234  * Boolean. Accepted values 0 and 1.
235  */
236 #ifndef NRFX_EGU_ENABLED
237 #define NRFX_EGU_ENABLED 0
238 #endif
239 
240 /**
241  * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY
242  *
243  * Integer value. Minimum: 0 Maximum: 7
244  */
245 #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY
246 #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
247 #endif
248 
249 /**
250  * @brief NRFX_EGU0_ENABLED
251  *
252  * Boolean. Accepted values 0 and 1.
253  */
254 #ifndef NRFX_EGU0_ENABLED
255 #define NRFX_EGU0_ENABLED 0
256 #endif
257 
258 /**
259  * @brief NRFX_EGU1_ENABLED
260  *
261  * Boolean. Accepted values 0 and 1.
262  */
263 #ifndef NRFX_EGU1_ENABLED
264 #define NRFX_EGU1_ENABLED 0
265 #endif
266 
267 /**
268  * @brief NRFX_EGU2_ENABLED
269  *
270  * Boolean. Accepted values 0 and 1.
271  */
272 #ifndef NRFX_EGU2_ENABLED
273 #define NRFX_EGU2_ENABLED 0
274 #endif
275 
276 /**
277  * @brief NRFX_EGU3_ENABLED
278  *
279  * Boolean. Accepted values 0 and 1.
280  */
281 #ifndef NRFX_EGU3_ENABLED
282 #define NRFX_EGU3_ENABLED 0
283 #endif
284 
285 /**
286  * @brief NRFX_EGU4_ENABLED
287  *
288  * Boolean. Accepted values 0 and 1.
289  */
290 #ifndef NRFX_EGU4_ENABLED
291 #define NRFX_EGU4_ENABLED 0
292 #endif
293 
294 /**
295  * @brief NRFX_EGU5_ENABLED
296  *
297  * Boolean. Accepted values 0 and 1.
298  */
299 #ifndef NRFX_EGU5_ENABLED
300 #define NRFX_EGU5_ENABLED 0
301 #endif
302 
303 /**
304  * @brief NRFX_GPIOTE_ENABLED
305  *
306  * Boolean. Accepted values 0 and 1.
307  */
308 #ifndef NRFX_GPIOTE_ENABLED
309 #define NRFX_GPIOTE_ENABLED 0
310 #endif
311 
312 /**
313  * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY
314  *
315  * Integer value. Minimum: 0 Maximum: 7
316  */
317 #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY
318 #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
319 #endif
320 
321 /**
322  * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
323  *
324  * Integer value. Minimum: 0 Maximum: 15
325  */
326 #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
327 #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 2
328 #endif
329 
330 /**
331  * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED
332  *
333  * Boolean. Accepted values 0 and 1.
334  */
335 #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED
336 #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0
337 #endif
338 
339 /**
340  * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL
341  *
342  * Integer value.
343  * Supported values:
344  * - Off     = 0
345  * - Error   = 1
346  * - Warning = 2
347  * - Info    = 3
348  * - Debug   = 4
349  */
350 #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL
351 #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3
352 #endif
353 
354 /**
355  * @brief NRFX_I2S_ENABLED
356  *
357  * Boolean. Accepted values 0 and 1.
358  */
359 #ifndef NRFX_I2S_ENABLED
360 #define NRFX_I2S_ENABLED 0
361 #endif
362 
363 /**
364  * @brief NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY
365  *
366  * Integer value. Minimum: 0 Maximum: 7
367  */
368 #ifndef NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY
369 #define NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
370 #endif
371 
372 /**
373  * @brief NRFX_I2S_CONFIG_LOG_ENABLED
374  *
375  * Boolean. Accepted values 0 and 1.
376  */
377 #ifndef NRFX_I2S_CONFIG_LOG_ENABLED
378 #define NRFX_I2S_CONFIG_LOG_ENABLED 0
379 #endif
380 
381 /**
382  * @brief NRFX_I2S_CONFIG_LOG_LEVEL
383  *
384  * Integer value.
385  * Supported values:
386  * - Off     = 0
387  * - Error   = 1
388  * - Warning = 2
389  * - Info    = 3
390  * - Debug   = 4
391  */
392 #ifndef NRFX_I2S_CONFIG_LOG_LEVEL
393 #define NRFX_I2S_CONFIG_LOG_LEVEL 3
394 #endif
395 
396 /**
397  * @brief NRFX_IPC_ENABLED
398  *
399  * Boolean. Accepted values 0 and 1.
400  */
401 #ifndef NRFX_IPC_ENABLED
402 #define NRFX_IPC_ENABLED 0
403 #endif
404 
405 /**
406  * @brief NRFX_NVMC_ENABLED
407  *
408  * Boolean. Accepted values 0 and 1.
409  */
410 #ifndef NRFX_NVMC_ENABLED
411 #define NRFX_NVMC_ENABLED 0
412 #endif
413 
414 /**
415  * @brief NRFX_PDM_ENABLED
416  *
417  * Boolean. Accepted values 0 and 1.
418  */
419 #ifndef NRFX_PDM_ENABLED
420 #define NRFX_PDM_ENABLED 0
421 #endif
422 
423 /**
424  * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY
425  *
426  * Integer value. Minimum: 0 Maximum: 7
427  */
428 #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY
429 #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
430 #endif
431 
432 /**
433  * @brief NRFX_PDM_CONFIG_LOG_ENABLED
434  *
435  * Boolean. Accepted values 0 and 1.
436  */
437 #ifndef NRFX_PDM_CONFIG_LOG_ENABLED
438 #define NRFX_PDM_CONFIG_LOG_ENABLED 0
439 #endif
440 
441 /**
442  * @brief NRFX_PDM_CONFIG_LOG_LEVEL
443  *
444  * Integer value.
445  * Supported values:
446  * - Off     = 0
447  * - Error   = 1
448  * - Warning = 2
449  * - Info    = 3
450  * - Debug   = 4
451  */
452 #ifndef NRFX_PDM_CONFIG_LOG_LEVEL
453 #define NRFX_PDM_CONFIG_LOG_LEVEL 3
454 #endif
455 
456 /**
457  * @brief NRFX_POWER_ENABLED
458  *
459  * Boolean. Accepted values 0 and 1.
460  */
461 #ifndef NRFX_POWER_ENABLED
462 #define NRFX_POWER_ENABLED 0
463 #endif
464 
465 /**
466  * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY
467  *
468  * Integer value. Minimum: 0 Maximum: 7
469  */
470 #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY
471 #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
472 #endif
473 
474 /**
475  * @brief NRFX_PRS_ENABLED
476  *
477  * Boolean. Accepted values 0 and 1.
478  */
479 #ifndef NRFX_PRS_ENABLED
480 #define NRFX_PRS_ENABLED 0
481 #endif
482 
483 /**
484  * @brief NRFX_PRS_CONFIG_LOG_ENABLED
485  *
486  * Boolean. Accepted values 0 and 1.
487  */
488 #ifndef NRFX_PRS_CONFIG_LOG_ENABLED
489 #define NRFX_PRS_CONFIG_LOG_ENABLED 0
490 #endif
491 
492 /**
493  * @brief NRFX_PRS_CONFIG_LOG_LEVEL
494  *
495  * Integer value.
496  * Supported values:
497  * - Off     = 0
498  * - Error   = 1
499  * - Warning = 2
500  * - Info    = 3
501  * - Debug   = 4
502  */
503 #ifndef NRFX_PRS_CONFIG_LOG_LEVEL
504 #define NRFX_PRS_CONFIG_LOG_LEVEL 3
505 #endif
506 
507 /**
508  * @brief NRFX_PRS_BOX_0_ENABLED
509  *
510  * Boolean. Accepted values 0 and 1.
511  */
512 #ifndef NRFX_PRS_BOX_0_ENABLED
513 #define NRFX_PRS_BOX_0_ENABLED 0
514 #endif
515 
516 /**
517  * @brief NRFX_PRS_BOX_1_ENABLED
518  *
519  * Boolean. Accepted values 0 and 1.
520  */
521 #ifndef NRFX_PRS_BOX_1_ENABLED
522 #define NRFX_PRS_BOX_1_ENABLED 0
523 #endif
524 
525 /**
526  * @brief NRFX_PRS_BOX_2_ENABLED
527  *
528  * Boolean. Accepted values 0 and 1.
529  */
530 #ifndef NRFX_PRS_BOX_2_ENABLED
531 #define NRFX_PRS_BOX_2_ENABLED 0
532 #endif
533 
534 /**
535  * @brief NRFX_PRS_BOX_3_ENABLED
536  *
537  * Boolean. Accepted values 0 and 1.
538  */
539 #ifndef NRFX_PRS_BOX_3_ENABLED
540 #define NRFX_PRS_BOX_3_ENABLED 0
541 #endif
542 
543 /**
544  * @brief NRFX_PWM_ENABLED
545  *
546  * Boolean. Accepted values 0 and 1.
547  */
548 #ifndef NRFX_PWM_ENABLED
549 #define NRFX_PWM_ENABLED 0
550 #endif
551 
552 /**
553  * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY
554  *
555  * Integer value. Minimum: 0 Maximum: 7
556  */
557 #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY
558 #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
559 #endif
560 
561 /**
562  * @brief NRFX_PWM_CONFIG_LOG_ENABLED
563  *
564  * Boolean. Accepted values 0 and 1.
565  */
566 #ifndef NRFX_PWM_CONFIG_LOG_ENABLED
567 #define NRFX_PWM_CONFIG_LOG_ENABLED 0
568 #endif
569 
570 /**
571  * @brief NRFX_PWM_CONFIG_LOG_LEVEL
572  *
573  * Integer value.
574  * Supported values:
575  * - Off     = 0
576  * - Error   = 1
577  * - Warning = 2
578  * - Info    = 3
579  * - Debug   = 4
580  */
581 #ifndef NRFX_PWM_CONFIG_LOG_LEVEL
582 #define NRFX_PWM_CONFIG_LOG_LEVEL 3
583 #endif
584 
585 /**
586  * @brief NRFX_PWM0_ENABLED
587  *
588  * Boolean. Accepted values 0 and 1.
589  */
590 #ifndef NRFX_PWM0_ENABLED
591 #define NRFX_PWM0_ENABLED 0
592 #endif
593 
594 /**
595  * @brief NRFX_PWM1_ENABLED
596  *
597  * Boolean. Accepted values 0 and 1.
598  */
599 #ifndef NRFX_PWM1_ENABLED
600 #define NRFX_PWM1_ENABLED 0
601 #endif
602 
603 /**
604  * @brief NRFX_PWM2_ENABLED
605  *
606  * Boolean. Accepted values 0 and 1.
607  */
608 #ifndef NRFX_PWM2_ENABLED
609 #define NRFX_PWM2_ENABLED 0
610 #endif
611 
612 /**
613  * @brief NRFX_PWM3_ENABLED
614  *
615  * Boolean. Accepted values 0 and 1.
616  */
617 #ifndef NRFX_PWM3_ENABLED
618 #define NRFX_PWM3_ENABLED 0
619 #endif
620 
621 /**
622  * @brief NRFX_RTC_ENABLED
623  *
624  * Boolean. Accepted values 0 and 1.
625  */
626 #ifndef NRFX_RTC_ENABLED
627 #define NRFX_RTC_ENABLED 0
628 #endif
629 
630 /**
631  * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY
632  *
633  * Integer value. Minimum: 0 Maximum: 7
634  */
635 #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY
636 #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
637 #endif
638 
639 /**
640  * @brief NRFX_RTC_CONFIG_LOG_ENABLED
641  *
642  * Boolean. Accepted values 0 and 1.
643  */
644 #ifndef NRFX_RTC_CONFIG_LOG_ENABLED
645 #define NRFX_RTC_CONFIG_LOG_ENABLED 0
646 #endif
647 
648 /**
649  * @brief NRFX_RTC_CONFIG_LOG_LEVEL
650  *
651  * Integer value.
652  * Supported values:
653  * - Off     = 0
654  * - Error   = 1
655  * - Warning = 2
656  * - Info    = 3
657  * - Debug   = 4
658  */
659 #ifndef NRFX_RTC_CONFIG_LOG_LEVEL
660 #define NRFX_RTC_CONFIG_LOG_LEVEL 3
661 #endif
662 
663 /**
664  * @brief NRFX_RTC0_ENABLED
665  *
666  * Boolean. Accepted values 0 and 1.
667  */
668 #ifndef NRFX_RTC0_ENABLED
669 #define NRFX_RTC0_ENABLED 0
670 #endif
671 
672 /**
673  * @brief NRFX_RTC1_ENABLED
674  *
675  * Boolean. Accepted values 0 and 1.
676  */
677 #ifndef NRFX_RTC1_ENABLED
678 #define NRFX_RTC1_ENABLED 0
679 #endif
680 
681 /**
682  * @brief NRFX_SAADC_ENABLED
683  *
684  * Boolean. Accepted values 0 and 1.
685  */
686 #ifndef NRFX_SAADC_ENABLED
687 #define NRFX_SAADC_ENABLED 0
688 #endif
689 
690 /**
691  * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY
692  *
693  * Integer value. Minimum: 0 Maximum: 7
694  */
695 #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY
696 #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
697 #endif
698 
699 /**
700  * @brief NRFX_SAADC_CONFIG_LOG_ENABLED
701  *
702  * Boolean. Accepted values 0 and 1.
703  */
704 #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED
705 #define NRFX_SAADC_CONFIG_LOG_ENABLED 0
706 #endif
707 
708 /**
709  * @brief NRFX_SAADC_CONFIG_LOG_LEVEL
710  *
711  * Integer value.
712  * Supported values:
713  * - Off     = 0
714  * - Error   = 1
715  * - Warning = 2
716  * - Info    = 3
717  * - Debug   = 4
718  */
719 #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL
720 #define NRFX_SAADC_CONFIG_LOG_LEVEL 3
721 #endif
722 
723 /**
724  * @brief NRFX_SPIM_ENABLED
725  *
726  * Boolean. Accepted values 0 and 1.
727  */
728 #ifndef NRFX_SPIM_ENABLED
729 #define NRFX_SPIM_ENABLED 0
730 #endif
731 
732 /**
733  * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY
734  *
735  * Integer value. Minimum: 0 Maximum: 7
736  */
737 #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY
738 #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
739 #endif
740 
741 /**
742  * @brief NRFX_SPIM_CONFIG_LOG_ENABLED
743  *
744  * Boolean. Accepted values 0 and 1.
745  */
746 #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED
747 #define NRFX_SPIM_CONFIG_LOG_ENABLED 0
748 #endif
749 
750 /**
751  * @brief NRFX_SPIM_CONFIG_LOG_LEVEL
752  *
753  * Integer value.
754  * Supported values:
755  * - Off     = 0
756  * - Error   = 1
757  * - Warning = 2
758  * - Info    = 3
759  * - Debug   = 4
760  */
761 #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL
762 #define NRFX_SPIM_CONFIG_LOG_LEVEL 3
763 #endif
764 
765 /**
766  * @brief NRFX_SPIM0_ENABLED
767  *
768  * Boolean. Accepted values 0 and 1.
769  */
770 #ifndef NRFX_SPIM0_ENABLED
771 #define NRFX_SPIM0_ENABLED 0
772 #endif
773 
774 /**
775  * @brief NRFX_SPIM1_ENABLED
776  *
777  * Boolean. Accepted values 0 and 1.
778  */
779 #ifndef NRFX_SPIM1_ENABLED
780 #define NRFX_SPIM1_ENABLED 0
781 #endif
782 
783 /**
784  * @brief NRFX_SPIM2_ENABLED
785  *
786  * Boolean. Accepted values 0 and 1.
787  */
788 #ifndef NRFX_SPIM2_ENABLED
789 #define NRFX_SPIM2_ENABLED 0
790 #endif
791 
792 /**
793  * @brief NRFX_SPIM3_ENABLED
794  *
795  * Boolean. Accepted values 0 and 1.
796  */
797 #ifndef NRFX_SPIM3_ENABLED
798 #define NRFX_SPIM3_ENABLED 0
799 #endif
800 
801 /**
802  * @brief NRFX_SPIS_ENABLED
803  *
804  * Boolean. Accepted values 0 and 1.
805  */
806 #ifndef NRFX_SPIS_ENABLED
807 #define NRFX_SPIS_ENABLED 0
808 #endif
809 
810 /**
811  * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
812  *
813  * Integer value. Minimum: 0 Maximum: 7
814  */
815 #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
816 #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
817 #endif
818 
819 /**
820  * @brief NRFX_SPIS_CONFIG_LOG_ENABLED
821  *
822  * Boolean. Accepted values 0 and 1.
823  */
824 #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED
825 #define NRFX_SPIS_CONFIG_LOG_ENABLED 0
826 #endif
827 
828 /**
829  * @brief NRFX_SPIS_CONFIG_LOG_LEVEL
830  *
831  * Integer value.
832  * Supported values:
833  * - Off     = 0
834  * - Error   = 1
835  * - Warning = 2
836  * - Info    = 3
837  * - Debug   = 4
838  */
839 #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL
840 #define NRFX_SPIS_CONFIG_LOG_LEVEL 3
841 #endif
842 
843 /**
844  * @brief NRFX_SPIS0_ENABLED
845  *
846  * Boolean. Accepted values 0 and 1.
847  */
848 #ifndef NRFX_SPIS0_ENABLED
849 #define NRFX_SPIS0_ENABLED 0
850 #endif
851 
852 /**
853  * @brief NRFX_SPIS1_ENABLED
854  *
855  * Boolean. Accepted values 0 and 1.
856  */
857 #ifndef NRFX_SPIS1_ENABLED
858 #define NRFX_SPIS1_ENABLED 0
859 #endif
860 
861 /**
862  * @brief NRFX_SPIS2_ENABLED
863  *
864  * Boolean. Accepted values 0 and 1.
865  */
866 #ifndef NRFX_SPIS2_ENABLED
867 #define NRFX_SPIS2_ENABLED 0
868 #endif
869 
870 /**
871  * @brief NRFX_SPIS3_ENABLED
872  *
873  * Boolean. Accepted values 0 and 1.
874  */
875 #ifndef NRFX_SPIS3_ENABLED
876 #define NRFX_SPIS3_ENABLED 0
877 #endif
878 
879 /**
880  * @brief NRFX_SYSTICK_ENABLED
881  *
882  * Boolean. Accepted values 0 and 1.
883  */
884 #ifndef NRFX_SYSTICK_ENABLED
885 #define NRFX_SYSTICK_ENABLED 0
886 #endif
887 
888 /**
889  * @brief NRFX_TIMER_ENABLED
890  *
891  * Boolean. Accepted values 0 and 1.
892  */
893 #ifndef NRFX_TIMER_ENABLED
894 #define NRFX_TIMER_ENABLED 0
895 #endif
896 
897 /**
898  * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
899  *
900  * Integer value. Minimum: 0 Maximum: 7
901  */
902 #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
903 #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
904 #endif
905 
906 /**
907  * @brief NRFX_TIMER_CONFIG_LOG_ENABLED
908  *
909  * Boolean. Accepted values 0 and 1.
910  */
911 #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED
912 #define NRFX_TIMER_CONFIG_LOG_ENABLED 0
913 #endif
914 
915 /**
916  * @brief NRFX_TIMER_CONFIG_LOG_LEVEL
917  *
918  * Integer value.
919  * Supported values:
920  * - Off     = 0
921  * - Error   = 1
922  * - Warning = 2
923  * - Info    = 3
924  * - Debug   = 4
925  */
926 #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL
927 #define NRFX_TIMER_CONFIG_LOG_LEVEL 3
928 #endif
929 
930 /**
931  * @brief NRFX_TIMER0_ENABLED
932  *
933  * Boolean. Accepted values 0 and 1.
934  */
935 #ifndef NRFX_TIMER0_ENABLED
936 #define NRFX_TIMER0_ENABLED 0
937 #endif
938 
939 /**
940  * @brief NRFX_TIMER1_ENABLED
941  *
942  * Boolean. Accepted values 0 and 1.
943  */
944 #ifndef NRFX_TIMER1_ENABLED
945 #define NRFX_TIMER1_ENABLED 0
946 #endif
947 
948 /**
949  * @brief NRFX_TIMER2_ENABLED
950  *
951  * Boolean. Accepted values 0 and 1.
952  */
953 #ifndef NRFX_TIMER2_ENABLED
954 #define NRFX_TIMER2_ENABLED 0
955 #endif
956 
957 /**
958  * @brief NRFX_TWIM_ENABLED
959  *
960  * Boolean. Accepted values 0 and 1.
961  */
962 #ifndef NRFX_TWIM_ENABLED
963 #define NRFX_TWIM_ENABLED 0
964 #endif
965 
966 /**
967  * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
968  *
969  * Integer value. Minimum: 0 Maximum: 7
970  */
971 #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
972 #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
973 #endif
974 
975 /**
976  * @brief NRFX_TWIM_CONFIG_LOG_ENABLED
977  *
978  * Boolean. Accepted values 0 and 1.
979  */
980 #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED
981 #define NRFX_TWIM_CONFIG_LOG_ENABLED 0
982 #endif
983 
984 /**
985  * @brief NRFX_TWIM_CONFIG_LOG_LEVEL
986  *
987  * Integer value.
988  * Supported values:
989  * - Off     = 0
990  * - Error   = 1
991  * - Warning = 2
992  * - Info    = 3
993  * - Debug   = 4
994  */
995 #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL
996 #define NRFX_TWIM_CONFIG_LOG_LEVEL 3
997 #endif
998 
999 /**
1000  * @brief NRFX_TWIM0_ENABLED
1001  *
1002  * Boolean. Accepted values 0 and 1.
1003  */
1004 #ifndef NRFX_TWIM0_ENABLED
1005 #define NRFX_TWIM0_ENABLED 0
1006 #endif
1007 
1008 /**
1009  * @brief NRFX_TWIM1_ENABLED
1010  *
1011  * Boolean. Accepted values 0 and 1.
1012  */
1013 #ifndef NRFX_TWIM1_ENABLED
1014 #define NRFX_TWIM1_ENABLED 0
1015 #endif
1016 
1017 /**
1018  * @brief NRFX_TWIM2_ENABLED
1019  *
1020  * Boolean. Accepted values 0 and 1.
1021  */
1022 #ifndef NRFX_TWIM2_ENABLED
1023 #define NRFX_TWIM2_ENABLED 0
1024 #endif
1025 
1026 /**
1027  * @brief NRFX_TWIM3_ENABLED
1028  *
1029  * Boolean. Accepted values 0 and 1.
1030  */
1031 #ifndef NRFX_TWIM3_ENABLED
1032 #define NRFX_TWIM3_ENABLED 0
1033 #endif
1034 
1035 /**
1036  * @brief NRFX_TWIS_ENABLED
1037  *
1038  * Boolean. Accepted values 0 and 1.
1039  */
1040 #ifndef NRFX_TWIS_ENABLED
1041 #define NRFX_TWIS_ENABLED 0
1042 #endif
1043 
1044 /**
1045  * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
1046  *
1047  * Integer value. Minimum: 0 Maximum: 7
1048  */
1049 #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
1050 #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
1051 #endif
1052 
1053 /**
1054  * @brief NRFX_TWIS_CONFIG_LOG_ENABLED
1055  *
1056  * Boolean. Accepted values 0 and 1.
1057  */
1058 #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED
1059 #define NRFX_TWIS_CONFIG_LOG_ENABLED 0
1060 #endif
1061 
1062 /**
1063  * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once.
1064  *
1065  * Boolean. Accepted values 0 and 1.
1066  */
1067 #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY
1068 #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
1069 #endif
1070 
1071 /**
1072  * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode.
1073  *
1074  * Boolean. Accepted values 0 and 1.
1075  */
1076 #ifndef NRFX_TWIS_NO_SYNC_MODE
1077 #define NRFX_TWIS_NO_SYNC_MODE 0
1078 #endif
1079 
1080 /**
1081  * @brief NRFX_TWIS_CONFIG_LOG_LEVEL
1082  *
1083  * Integer value.
1084  * Supported values:
1085  * - Off     = 0
1086  * - Error   = 1
1087  * - Warning = 2
1088  * - Info    = 3
1089  * - Debug   = 4
1090  */
1091 #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL
1092 #define NRFX_TWIS_CONFIG_LOG_LEVEL 3
1093 #endif
1094 
1095 /**
1096  * @brief NRFX_TWIS0_ENABLED
1097  *
1098  * Boolean. Accepted values 0 and 1.
1099  */
1100 #ifndef NRFX_TWIS0_ENABLED
1101 #define NRFX_TWIS0_ENABLED 0
1102 #endif
1103 
1104 /**
1105  * @brief NRFX_TWIS1_ENABLED
1106  *
1107  * Boolean. Accepted values 0 and 1.
1108  */
1109 #ifndef NRFX_TWIS1_ENABLED
1110 #define NRFX_TWIS1_ENABLED 0
1111 #endif
1112 
1113 /**
1114  * @brief NRFX_TWIS2_ENABLED
1115  *
1116  * Boolean. Accepted values 0 and 1.
1117  */
1118 #ifndef NRFX_TWIS2_ENABLED
1119 #define NRFX_TWIS2_ENABLED 0
1120 #endif
1121 
1122 /**
1123  * @brief NRFX_TWIS3_ENABLED
1124  *
1125  * Boolean. Accepted values 0 and 1.
1126  */
1127 #ifndef NRFX_TWIS3_ENABLED
1128 #define NRFX_TWIS3_ENABLED 0
1129 #endif
1130 
1131 /**
1132  * @brief NRFX_UARTE_ENABLED
1133  *
1134  * Boolean. Accepted values 0 and 1.
1135  */
1136 #ifndef NRFX_UARTE_ENABLED
1137 #define NRFX_UARTE_ENABLED 0
1138 #endif
1139 
1140 /**
1141  * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY
1142  *
1143  * Integer value. Minimum: 0 Maximum: 7
1144  */
1145 #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY
1146 #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
1147 #endif
1148 
1149 /**
1150  * @brief NRFX_UARTE_CONFIG_LOG_ENABLED
1151  *
1152  * Boolean. Accepted values 0 and 1.
1153  */
1154 #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED
1155 #define NRFX_UARTE_CONFIG_LOG_ENABLED 0
1156 #endif
1157 
1158 /**
1159  * @brief NRFX_UARTE_CONFIG_LOG_LEVEL
1160  *
1161  * Integer value.
1162  * Supported values:
1163  * - Off     = 0
1164  * - Error   = 1
1165  * - Warning = 2
1166  * - Info    = 3
1167  * - Debug   = 4
1168  */
1169 #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL
1170 #define NRFX_UARTE_CONFIG_LOG_LEVEL 3
1171 #endif
1172 
1173 /**
1174  * @brief NRFX_UARTE0_ENABLED
1175  *
1176  * Boolean. Accepted values 0 and 1.
1177  */
1178 #ifndef NRFX_UARTE0_ENABLED
1179 #define NRFX_UARTE0_ENABLED 0
1180 #endif
1181 
1182 /**
1183  * @brief NRFX_UARTE1_ENABLED
1184  *
1185  * Boolean. Accepted values 0 and 1.
1186  */
1187 #ifndef NRFX_UARTE1_ENABLED
1188 #define NRFX_UARTE1_ENABLED 0
1189 #endif
1190 
1191 /**
1192  * @brief NRFX_UARTE2_ENABLED
1193  *
1194  * Boolean. Accepted values 0 and 1.
1195  */
1196 #ifndef NRFX_UARTE2_ENABLED
1197 #define NRFX_UARTE2_ENABLED 0
1198 #endif
1199 
1200 /**
1201  * @brief NRFX_UARTE3_ENABLED
1202  *
1203  * Boolean. Accepted values 0 and 1.
1204  */
1205 #ifndef NRFX_UARTE3_ENABLED
1206 #define NRFX_UARTE3_ENABLED 0
1207 #endif
1208 
1209 /**
1210  * @brief NRFX_WDT_ENABLED
1211  *
1212  * Boolean. Accepted values 0 and 1.
1213  */
1214 #ifndef NRFX_WDT_ENABLED
1215 #define NRFX_WDT_ENABLED 0
1216 #endif
1217 
1218 /**
1219  * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY
1220  *
1221  * Integer value. Minimum: 0 Maximum: 7
1222  */
1223 #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY
1224 #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY
1225 #endif
1226 
1227 /**
1228  * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver
1229  *
1230  * Boolean. Accepted values 0 and 1.
1231  */
1232 #ifndef NRFX_WDT_CONFIG_NO_IRQ
1233 #define NRFX_WDT_CONFIG_NO_IRQ 0
1234 #endif
1235 
1236 /**
1237  * @brief NRFX_WDT_CONFIG_LOG_ENABLED
1238  *
1239  * Boolean. Accepted values 0 and 1.
1240  */
1241 #ifndef NRFX_WDT_CONFIG_LOG_ENABLED
1242 #define NRFX_WDT_CONFIG_LOG_ENABLED 0
1243 #endif
1244 
1245 /**
1246  * @brief NRFX_WDT_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_WDT_CONFIG_LOG_LEVEL
1257 #define NRFX_WDT_CONFIG_LOG_LEVEL 3
1258 #endif
1259 
1260 #endif // NRFX_CONFIG_NRF91_H__
1261