1 /**
2  *
3  * @defgroup nrfx_pwm_config PWM peripheral driver configuration
4  * @{
5  * @ingroup nrfx_pwm
6  */
7 /** @brief
8  *
9  *  Set to 1 to activate.
10  *
11  * @note This is an NRF_CONFIG macro.
12  */
13 #define NRFX_PWM_ENABLED
14 
15 /** @brief Enable PWM0 instance
16  *
17  *  Set to 1 to activate.
18  *
19  * @note This is an NRF_CONFIG macro.
20  */
21 #define NRFX_PWM0_ENABLED
22 
23 /** @brief Enable PWM1 instance
24  *
25  *  Set to 1 to activate.
26  *
27  * @note This is an NRF_CONFIG macro.
28  */
29 #define NRFX_PWM1_ENABLED
30 
31 /** @brief Enable PWM2 instance
32  *
33  *  Set to 1 to activate.
34  *
35  * @note This is an NRF_CONFIG macro.
36  */
37 #define NRFX_PWM2_ENABLED
38 
39 /** @brief Enable PWM3 instance
40  *
41  *  Set to 1 to activate.
42  *
43  * @note This is an NRF_CONFIG macro.
44  */
45 #define NRFX_PWM3_ENABLED
46 
47 /** @brief Interrupt priority
48  *
49  *  Following options are available:
50  * - 0 - 0 (highest)
51  * - 1 - 1
52  * - 2 - 2
53  * - 3 - 3
54  * - 4 - 4
55  * - 5 - 5
56  * - 6 - 6
57  * - 7 - 7
58  *
59  * @note This is an NRF_CONFIG macro.
60  */
61 #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY
62 
63 /** @brief Enables logging in the module.
64  *
65  *  Set to 1 to activate.
66  *
67  * @note This is an NRF_CONFIG macro.
68  */
69 #define NRFX_PWM_CONFIG_LOG_ENABLED
70 
71 /** @brief Default Severity level
72  *
73  *  Following options are available:
74  * - 0 - Off
75  * - 1 - Error
76  * - 2 - Warning
77  * - 3 - Info
78  * - 4 - Debug
79  *
80  * @note This is an NRF_CONFIG macro.
81  */
82 #define NRFX_PWM_CONFIG_LOG_LEVEL
83 
84 /** @brief ANSI escape code prefix.
85  *
86  *  Following options are available:
87  * - 0 - Default
88  * - 1 - Black
89  * - 2 - Red
90  * - 3 - Green
91  * - 4 - Yellow
92  * - 5 - Blue
93  * - 6 - Magenta
94  * - 7 - Cyan
95  * - 8 - White
96  *
97  * @note This is an NRF_CONFIG macro.
98  */
99 #define NRFX_PWM_CONFIG_INFO_COLOR
100 
101 /** @brief ANSI escape code prefix.
102  *
103  *  Following options are available:
104  * - 0 - Default
105  * - 1 - Black
106  * - 2 - Red
107  * - 3 - Green
108  * - 4 - Yellow
109  * - 5 - Blue
110  * - 6 - Magenta
111  * - 7 - Cyan
112  * - 8 - White
113  *
114  * @note This is an NRF_CONFIG macro.
115  */
116 #define NRFX_PWM_CONFIG_DEBUG_COLOR
117 
118 /** @brief Enables nRF52 Anomaly 109 workaround for PWM.
119  *
120  * The workaround uses interrupts to wake up the CPU and ensure
121  * it is active when PWM is about to start a DMA transfer. For
122  * initial transfer, done when a playback is started via PPI,
123  * a specific EGU instance is used to generate the interrupt.
124  * During the playback, the PWM interrupt triggered on SEQEND
125  * event of a preceding sequence is used to protect the transfer
126  * done for the next sequence to be played.
127  *
128  *  Set to 1 to activate.
129  *
130  * @note This is an NRF_CONFIG macro.
131  */
132 #define NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
133 
134 /** @brief EGU instance used by the nRF52 Anomaly 109 workaround for PWM.
135  *
136  *  Following options are available:
137  * - 0 - EGU0
138  * - 1 - EGU1
139  * - 2 - EGU2
140  * - 3 - EGU3
141  * - 4 - EGU4
142  * - 5 - EGU5
143  *
144  * @note This is an NRF_CONFIG macro.
145  */
146 #define NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE
147 
148 
149 
150 /** @} */
151