1 /**
2  *
3  * @defgroup nrfx_twim_config TWIM peripheral driver configuration
4  * @{
5  * @ingroup nrfx_twim
6  */
7 /** @brief
8  *
9  *  Set to 1 to activate.
10  *
11  * @note This is an NRF_CONFIG macro.
12  */
13 #define NRFX_TWIM_ENABLED
14 
15 /** @brief Enable TWIM0 instance
16  *
17  *  Set to 1 to activate.
18  *
19  * @note This is an NRF_CONFIG macro.
20  */
21 #define NRFX_TWIM0_ENABLED
22 
23 /** @brief Enable TWIM1 instance
24  *
25  *  Set to 1 to activate.
26  *
27  * @note This is an NRF_CONFIG macro.
28  */
29 #define NRFX_TWIM1_ENABLED
30 
31 /** @brief Interrupt priority
32  *
33  *  Following options are available:
34  * - 0 - 0 (highest)
35  * - 1 - 1
36  * - 2 - 2
37  * - 3 - 3
38  * - 4 - 4
39  * - 5 - 5
40  * - 6 - 6
41  * - 7 - 7
42  *
43  * @note This is an NRF_CONFIG macro.
44  */
45 #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
46 
47 /** @brief Enables logging in the module.
48  *
49  *  Set to 1 to activate.
50  *
51  * @note This is an NRF_CONFIG macro.
52  */
53 #define NRFX_TWIM_CONFIG_LOG_ENABLED
54 
55 /** @brief Default Severity level
56  *
57  *  Following options are available:
58  * - 0 - Off
59  * - 1 - Error
60  * - 2 - Warning
61  * - 3 - Info
62  * - 4 - Debug
63  *
64  * @note This is an NRF_CONFIG macro.
65  */
66 #define NRFX_TWIM_CONFIG_LOG_LEVEL
67 
68 /** @brief ANSI escape code prefix.
69  *
70  *  Following options are available:
71  * - 0 - Default
72  * - 1 - Black
73  * - 2 - Red
74  * - 3 - Green
75  * - 4 - Yellow
76  * - 5 - Blue
77  * - 6 - Magenta
78  * - 7 - Cyan
79  * - 8 - White
80  *
81  * @note This is an NRF_CONFIG macro.
82  */
83 #define NRFX_TWIM_CONFIG_INFO_COLOR
84 
85 /** @brief ANSI escape code prefix.
86  *
87  *  Following options are available:
88  * - 0 - Default
89  * - 1 - Black
90  * - 2 - Red
91  * - 3 - Green
92  * - 4 - Yellow
93  * - 5 - Blue
94  * - 6 - Magenta
95  * - 7 - Cyan
96  * - 8 - White
97  *
98  * @note This is an NRF_CONFIG macro.
99  */
100 #define NRFX_TWIM_CONFIG_DEBUG_COLOR
101 
102 
103 /** @brief Enables nRF52 anomaly 109 workaround for TWIM.
104  *
105  * The workaround uses interrupts to wake up the CPU by catching
106  * the start event of zero-frequency transmission, clear the
107  * peripheral, set desired frequency, start the peripheral, and
108  * the proper transmission. See more in the Errata document or
109  * Anomaly 109 Addendum located at https://infocenter.nordicsemi.com/
110  *
111  *  Set to 1 to activate.
112  *
113  * @note This is an NRF_CONFIG macro.
114  */
115 #define NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
116 
117 
118 /** @} */
119