mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/sam0: use generic hw fc module
This commit is contained in:
parent
87ee82afd3
commit
7a095a80d7
@ -31,7 +31,4 @@ CFLAGS += -DDONT_USE_PREDEFINED_PERIPHERALS_HANDLERS
|
||||
# For Cortex-M cpu we use the common cortexm.ld linker script
|
||||
LINKER_SCRIPT ?= cortexm.ld
|
||||
|
||||
# define sam0 specific pseudomodules
|
||||
PSEUDOMODULES += sam0_periph_uart_hw_fc
|
||||
|
||||
INCLUDES += -I$(RIOTCPU)/sam0_common/include
|
||||
|
@ -212,7 +212,7 @@ typedef struct {
|
||||
SercomUsart *dev; /**< pointer to the used UART device */
|
||||
gpio_t rx_pin; /**< pin used for RX */
|
||||
gpio_t tx_pin; /**< pin used for TX */
|
||||
#ifdef MODULE_SAM0_PERIPH_UART_HW_FC
|
||||
#ifdef MODULE_PERIPH_UART_HW_FC
|
||||
gpio_t rts_pin; /**< pin used for RTS */
|
||||
gpio_t cts_pin; /**< pin used for CTS */
|
||||
#endif
|
||||
|
@ -80,7 +80,7 @@ int uart_init(uart_t uart, uint32_t baudrate, uart_rx_cb_t rx_cb, void *arg)
|
||||
gpio_set(uart_config[uart].tx_pin);
|
||||
gpio_init_mux(uart_config[uart].tx_pin, uart_config[uart].mux);
|
||||
|
||||
#ifdef MODULE_SAM0_PERIPH_UART_HW_FC
|
||||
#ifdef MODULE_PERIPH_UART_HW_FC
|
||||
/* If RTS/CTS needed, enable them */
|
||||
if (uart_config[uart].tx_pad == UART_PAD_TX_0_RTS_2_CTS_3) {
|
||||
/* Ensure RTS is defined */
|
||||
|
Loading…
Reference in New Issue
Block a user