File tree 3 files changed +25
-39
lines changed
3 files changed +25
-39
lines changed Original file line number Diff line number Diff line change @@ -201,23 +201,6 @@ typedef struct {
201
201
} pwm_conf_t ;
202
202
#endif
203
203
204
- #if !defined(CPU_MODEL_NRF52832XXAA )
205
- /**
206
- * @brief Structure for UART configuration data
207
- */
208
- typedef struct {
209
- NRF_UARTE_Type * dev ; /**< UART with EasyDMA device base
210
- * register address */
211
- gpio_t rx_pin ; /**< RX pin */
212
- gpio_t tx_pin ; /**< TX pin */
213
- #ifdef MODULE_PERIPH_UART_HW_FC
214
- gpio_t rts_pin ; /**< RTS pin */
215
- gpio_t cts_pin ; /**< CTS pin */
216
- #endif
217
- uint8_t irqn ; /**< IRQ channel */
218
- } uart_conf_t ;
219
- #endif
220
-
221
204
/**
222
205
* @brief Size of the UART TX buffer for non-blocking mode.
223
206
*/
Original file line number Diff line number Diff line change @@ -277,6 +277,31 @@ typedef struct {
277
277
*/
278
278
uint8_t gpio_int_get_exti (gpio_t pin );
279
279
280
+ #if !defined(CPU_MODEL_NRF52832XXAA ) && !defined(CPU_FAM_NRF51 )
281
+ /**
282
+ * @brief Structure for UART configuration data
283
+ */
284
+ typedef struct {
285
+ NRF_UARTE_Type * dev ; /**< UART with EasyDMA device base
286
+ * register address */
287
+ gpio_t rx_pin ; /**< RX pin */
288
+ gpio_t tx_pin ; /**< TX pin */
289
+ #ifdef MODULE_PERIPH_UART_HW_FC
290
+ gpio_t rts_pin ; /**< RTS pin */
291
+ gpio_t cts_pin ; /**< CTS pin */
292
+ #endif
293
+ uint8_t irqn ; /**< IRQ channel */
294
+ } uart_conf_t ;
295
+
296
+ /**
297
+ * @brief Size of the UART TX buffer for non-blocking mode.
298
+ */
299
+ #ifndef UART_TXBUF_SIZE
300
+ #define UART_TXBUF_SIZE (64)
301
+ #endif
302
+
303
+ #endif /* ndef CPU_MODEL_NRF52832XXAA && ndef CPU_FAM_NRF51 */
304
+
280
305
#ifdef __cplusplus
281
306
}
282
307
#endif
Original file line number Diff line number Diff line change @@ -36,28 +36,6 @@ extern "C" {
36
36
*/
37
37
#define PERIPH_CLOCK MHZ(16)
38
38
39
- /**
40
- * @brief Structure for UART configuration data
41
- */
42
- typedef struct {
43
- NRF_UARTE_Type * dev ; /**< UART with EasyDMA device base
44
- * register address */
45
- gpio_t rx_pin ; /**< RX pin */
46
- gpio_t tx_pin ; /**< TX pin */
47
- #ifdef MODULE_PERIPH_UART_HW_FC
48
- gpio_t rts_pin ; /**< RTS pin */
49
- gpio_t cts_pin ; /**< CTS pin */
50
- #endif
51
- uint8_t irqn ; /**< IRQ channel */
52
- } uart_conf_t ;
53
-
54
- /**
55
- * @brief Size of the UART TX buffer for non-blocking mode.
56
- */
57
- #ifndef UART_TXBUF_SIZE
58
- #define UART_TXBUF_SIZE (64)
59
- #endif
60
-
61
39
#ifndef DOXYGEN
62
40
/**
63
41
* @brief Wrapper to fix differences between nRF9160 and
You can’t perform that action at this time.
0 commit comments