From 6baf501a3d7ed2cc631ffaed9fcfad52be30f3ea Mon Sep 17 00:00:00 2001 From: Dylan Laduranty Date: Tue, 10 Mar 2020 14:18:40 +0100 Subject: [PATCH] boards/cc2538: update to use generic uart_hw_fc module --- boards/cc2538dk/include/periph_conf.h | 2 ++ boards/common/remote/include/cfg_uart_default.h | 4 ++++ boards/openmote-b/include/periph_conf.h | 2 ++ boards/openmote-cc2538/include/periph_conf.h | 2 ++ 4 files changed, 10 insertions(+) diff --git a/boards/cc2538dk/include/periph_conf.h b/boards/cc2538dk/include/periph_conf.h index a116bbfa42..492cc16735 100644 --- a/boards/cc2538dk/include/periph_conf.h +++ b/boards/cc2538dk/include/periph_conf.h @@ -67,8 +67,10 @@ static const uart_conf_t uart_config[] = { .dev = UART0_BASEADDR, .rx_pin = GPIO_PIN(0, 0), .tx_pin = GPIO_PIN(0, 1), +#ifdef MODULE_PERIPH_UART_HW_FC .cts_pin = GPIO_UNDEF, .rts_pin = GPIO_UNDEF +#endif } }; diff --git a/boards/common/remote/include/cfg_uart_default.h b/boards/common/remote/include/cfg_uart_default.h index 2eb9df6966..b347839b23 100644 --- a/boards/common/remote/include/cfg_uart_default.h +++ b/boards/common/remote/include/cfg_uart_default.h @@ -38,15 +38,19 @@ static const uart_conf_t uart_config[] = { .dev = UART0_BASEADDR, .rx_pin = GPIO_PIN(PORT_A, 0), .tx_pin = GPIO_PIN(PORT_A, 1), +#ifdef MODULE_PERIPH_UART_HW_FC .cts_pin = GPIO_UNDEF, .rts_pin = GPIO_UNDEF +#endif }, { .dev = UART1_BASEADDR, .rx_pin = GPIO_PIN(PORT_C, 1), .tx_pin = GPIO_PIN(PORT_C, 0), +#ifdef MODULE_PERIPH_UART_HW_FC .cts_pin = GPIO_UNDEF, .rts_pin = GPIO_UNDEF +#endif } }; diff --git a/boards/openmote-b/include/periph_conf.h b/boards/openmote-b/include/periph_conf.h index c6b53d18e9..a01002cd0b 100644 --- a/boards/openmote-b/include/periph_conf.h +++ b/boards/openmote-b/include/periph_conf.h @@ -95,8 +95,10 @@ static const uart_conf_t uart_config[] = { .dev = UART0_BASEADDR, .rx_pin = GPIO_PIN(0, 0), .tx_pin = GPIO_PIN(0, 1), +#ifdef MODULE_PERIPH_UART_HW_FC .cts_pin = GPIO_UNDEF, .rts_pin = GPIO_UNDEF +#endif } }; diff --git a/boards/openmote-cc2538/include/periph_conf.h b/boards/openmote-cc2538/include/periph_conf.h index 29bc1d4175..7b96ad749e 100644 --- a/boards/openmote-cc2538/include/periph_conf.h +++ b/boards/openmote-cc2538/include/periph_conf.h @@ -91,8 +91,10 @@ static const uart_conf_t uart_config[] = { .dev = UART0_BASEADDR, .rx_pin = GPIO_PIN(0, 0), .tx_pin = GPIO_PIN(0, 1), +#ifdef MODULE_PERIPH_UART_HW_FC .cts_pin = GPIO_UNDEF, .rts_pin = GPIO_UNDEF +#endif } };