1 /**
2  *
3  * @defgroup nrfx_spim_config SPIM peripheral driver configuration
4  * @{
5  * @ingroup nrfx_spim
6  */
7 /** @brief
8  *
9  *  Set to 1 to activate.
10  *
11  * @note This is an NRF_CONFIG macro.
12  */
13 #define NRFX_SPIM_ENABLED
14 
15 /** @brief Enable SPIM0 instance
16  *
17  *  Set to 1 to activate.
18  *
19  * @note This is an NRF_CONFIG macro.
20  */
21 #define NRFX_SPIM0_ENABLED
22 
23 /** @brief Enable SPIM1 instance
24  *
25  *  Set to 1 to activate.
26  *
27  * @note This is an NRF_CONFIG macro.
28  */
29 #define NRFX_SPIM1_ENABLED
30 
31 /** @brief Enable SPIM2 instance
32  *
33  *  Set to 1 to activate.
34  *
35  * @note This is an NRF_CONFIG macro.
36  */
37 #define NRFX_SPIM2_ENABLED
38 
39 /** @brief Enable SPIM3 instance
40  *
41  *  Set to 1 to activate.
42  *
43  * @note This is an NRF_CONFIG macro.
44  */
45 #define NRFX_SPIM3_ENABLED
46 
47 /** @brief Enable extended SPIM features
48  *
49  *  Set to 1 to activate.
50  *
51  * @note This is an NRF_CONFIG macro.
52  */
53 #define NRFX_SPIM_EXTENDED_ENABLED
54 
55 /** @brief Interrupt priority
56  *
57  *  Following options are available:
58  * - 0 - 0 (highest)
59  * - 1 - 1
60  * - 2 - 2
61  * - 3 - 3
62  * - 4 - 4
63  * - 5 - 5
64  * - 6 - 6
65  * - 7 - 7
66  *
67  * @note This is an NRF_CONFIG macro.
68  */
69 #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY
70 
71 /** @brief Enables logging in the module.
72  *
73  *  Set to 1 to activate.
74  *
75  * @note This is an NRF_CONFIG macro.
76  */
77 #define NRFX_SPIM_CONFIG_LOG_ENABLED
78 
79 /** @brief Default Severity level
80  *
81  *  Following options are available:
82  * - 0 - Off
83  * - 1 - Error
84  * - 2 - Warning
85  * - 3 - Info
86  * - 4 - Debug
87  *
88  * @note This is an NRF_CONFIG macro.
89  */
90 #define NRFX_SPIM_CONFIG_LOG_LEVEL
91 
92 /** @brief ANSI escape code prefix.
93  *
94  *  Following options are available:
95  * - 0 - Default
96  * - 1 - Black
97  * - 2 - Red
98  * - 3 - Green
99  * - 4 - Yellow
100  * - 5 - Blue
101  * - 6 - Magenta
102  * - 7 - Cyan
103  * - 8 - White
104  *
105  * @note This is an NRF_CONFIG macro.
106  */
107 #define NRFX_SPIM_CONFIG_INFO_COLOR
108 
109 /** @brief ANSI escape code prefix.
110  *
111  *  Following options are available:
112  * - 0 - Default
113  * - 1 - Black
114  * - 2 - Red
115  * - 3 - Green
116  * - 4 - Yellow
117  * - 5 - Blue
118  * - 6 - Magenta
119  * - 7 - Cyan
120  * - 8 - White
121  *
122  * @note This is an NRF_CONFIG macro.
123  */
124 #define NRFX_SPIM_CONFIG_DEBUG_COLOR
125 
126 
127 /** @brief Enables nRF52 anomaly 109 workaround for SPIM.
128  *
129  * The workaround uses interrupts to wake up the CPU by catching
130  * a start event of zero-length transmission to start the clock. This
131  * ensures that the DMA transfer will be executed without issues and
132  * that the proper transfer will be started. See more in the Errata
133  * document or Anomaly 109 Addendum located at
134  * https://infocenter.nordicsemi.com/
135  *
136  *  Set to 1 to activate.
137  *
138  * @note This is an NRF_CONFIG macro.
139  */
140 #define NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
141 
142 /** @brief Enables nRF52840 anomaly 198 workaround for SPIM3.
143  *
144  * See more in the Errata document located at
145  * https://infocenter.nordicsemi.com/
146  *
147  *  Set to 1 to activate.
148  *
149  * @note This is an NRF_CONFIG macro.
150  */
151 #define NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED
152 
153 
154 /** @} */
155