diff --git a/boards/arduino-mkrwan1300/include/periph_conf.h b/boards/arduino-mkrwan1300/include/periph_conf.h index 663217e400..1ae898d599 100644 --- a/boards/arduino-mkrwan1300/include/periph_conf.h +++ b/boards/arduino-mkrwan1300/include/periph_conf.h @@ -40,6 +40,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM5->USART, .rx_pin = GPIO_PIN(PB,23), /* ARDUINO_PIN_13, RX Pin */ .tx_pin = GPIO_PIN(PB,22), /* ARDUINO_PIN_14, TX Pin */ +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_3, .tx_pad = UART_PAD_TX_2, @@ -50,6 +54,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM4->USART, .rx_pin = GPIO_PIN(PA,15), .tx_pin = GPIO_PIN(PA,12), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_3, .tx_pad = UART_PAD_TX_0, diff --git a/boards/arduino-zero/include/periph_conf.h b/boards/arduino-zero/include/periph_conf.h index 6a92217bd5..b0832df9c8 100644 --- a/boards/arduino-zero/include/periph_conf.h +++ b/boards/arduino-zero/include/periph_conf.h @@ -132,6 +132,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM5->USART, .rx_pin = GPIO_PIN(PB,23), .tx_pin = GPIO_PIN(PB,22), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_3, .tx_pad = UART_PAD_TX_2, @@ -142,6 +146,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM0->USART, .rx_pin = GPIO_PIN(PA,11), .tx_pin = GPIO_PIN(PA,10), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_C, .rx_pad = UART_PAD_RX_3, .tx_pad = UART_PAD_TX_2, diff --git a/boards/common/arduino-mkr/include/periph_conf.h b/boards/common/arduino-mkr/include/periph_conf.h index ec81467d20..4a39122cce 100644 --- a/boards/common/arduino-mkr/include/periph_conf.h +++ b/boards/common/arduino-mkr/include/periph_conf.h @@ -40,6 +40,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM5->USART, .rx_pin = GPIO_PIN(PB,23), /* ARDUINO_PIN_13, RX Pin */ .tx_pin = GPIO_PIN(PB,22), /* ARDUINO_PIN_14, TX Pin */ +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_3, .tx_pad = UART_PAD_TX_2, diff --git a/boards/common/saml1x/include/periph_conf.h b/boards/common/saml1x/include/periph_conf.h index 3baf0e6bb9..752c32b2a3 100644 --- a/boards/common/saml1x/include/periph_conf.h +++ b/boards/common/saml1x/include/periph_conf.h @@ -61,8 +61,12 @@ static const tc32_conf_t timer_config[] = { static const uart_conf_t uart_config[] = { { /* Virtual COM Port */ .dev = &SERCOM2->USART, - .rx_pin = GPIO_PIN(PA,25), - .tx_pin = GPIO_PIN(PA,24), + .rx_pin = GPIO_PIN(PA, 25), + .tx_pin = GPIO_PIN(PA, 24), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_3, .tx_pad = UART_PAD_TX_2, diff --git a/boards/feather-m0/include/periph_conf.h b/boards/feather-m0/include/periph_conf.h index 7154a1b74b..af1a3d6d42 100644 --- a/boards/feather-m0/include/periph_conf.h +++ b/boards/feather-m0/include/periph_conf.h @@ -124,13 +124,17 @@ static const tc32_conf_t timer_config[] = { */ static const uart_conf_t uart_config[] = { { - .dev = &SERCOM0->USART, - .rx_pin = GPIO_PIN(PA, 11), /* RX pin */ - .tx_pin = GPIO_PIN(PA, 10), /* TX pin */ - .mux = GPIO_MUX_C, - .rx_pad = UART_PAD_RX_3, - .tx_pad = UART_PAD_TX_2, - .flags = UART_FLAG_NONE, + .dev = &SERCOM0->USART, + .rx_pin = GPIO_PIN(PA, 11), /* RX pin */ + .tx_pin = GPIO_PIN(PA, 10), /* TX pin */ +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif + .mux = GPIO_MUX_C, + .rx_pad = UART_PAD_RX_3, + .tx_pad = UART_PAD_TX_2, + .flags = UART_FLAG_NONE, .gclk_src = GCLK_CLKCTRL_GEN_GCLK0, } }; diff --git a/boards/samd21-xpro/include/periph_conf.h b/boards/samd21-xpro/include/periph_conf.h index 459e953e72..e21b31ae2d 100644 --- a/boards/samd21-xpro/include/periph_conf.h +++ b/boards/samd21-xpro/include/periph_conf.h @@ -138,6 +138,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM3->USART, .rx_pin = GPIO_PIN(PA,23), .tx_pin = GPIO_PIN(PA,22), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_C, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_0, @@ -145,23 +149,31 @@ static const uart_conf_t uart_config[] = { .gclk_src = GCLK_CLKCTRL_GEN_GCLK0 }, { /* EXT1 */ - .dev = &SERCOM4->USART, - .rx_pin = GPIO_PIN(PB,9), - .tx_pin = GPIO_PIN(PB,8), - .mux = GPIO_MUX_D, - .rx_pad = UART_PAD_RX_1, - .tx_pad = UART_PAD_TX_0, - .flags = UART_FLAG_NONE, + .dev = &SERCOM4->USART, + .rx_pin = GPIO_PIN(PB,9), + .tx_pin = GPIO_PIN(PB,8), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif + .mux = GPIO_MUX_D, + .rx_pad = UART_PAD_RX_1, + .tx_pad = UART_PAD_TX_0, + .flags = UART_FLAG_NONE, .gclk_src = GCLK_CLKCTRL_GEN_GCLK0 }, { /* EXT2/3 */ - .dev = &SERCOM4->USART, - .rx_pin = GPIO_PIN(PB,11), - .tx_pin = GPIO_PIN(PB,10), - .mux = GPIO_MUX_D, - .rx_pad = UART_PAD_RX_3, - .tx_pad = UART_PAD_TX_2, - .flags = UART_FLAG_NONE, + .dev = &SERCOM4->USART, + .rx_pin = GPIO_PIN(PB,11), + .tx_pin = GPIO_PIN(PB,10), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif + .mux = GPIO_MUX_D, + .rx_pad = UART_PAD_RX_3, + .tx_pad = UART_PAD_TX_2, + .flags = UART_FLAG_NONE, .gclk_src = GCLK_CLKCTRL_GEN_GCLK0 } }; diff --git a/boards/same54-xpro/include/periph_conf.h b/boards/same54-xpro/include/periph_conf.h index b4125c6c93..2bd0810f31 100644 --- a/boards/same54-xpro/include/periph_conf.h +++ b/boards/same54-xpro/include/periph_conf.h @@ -76,8 +76,12 @@ static const tc32_conf_t timer_config[] = { static const uart_conf_t uart_config[] = { { /* Virtual COM Port */ .dev = &SERCOM2->USART, - .rx_pin = GPIO_PIN(PB,24), - .tx_pin = GPIO_PIN(PB,25), + .rx_pin = GPIO_PIN(PB, 24), + .tx_pin = GPIO_PIN(PB, 25), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_0, diff --git a/boards/saml21-xpro/include/periph_conf.h b/boards/saml21-xpro/include/periph_conf.h index 3eadf66e5d..452ca332f6 100644 --- a/boards/saml21-xpro/include/periph_conf.h +++ b/boards/saml21-xpro/include/periph_conf.h @@ -66,6 +66,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM3->USART, .rx_pin = GPIO_PIN(PA,23), .tx_pin = GPIO_PIN(PA,22), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_C, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_0, @@ -76,6 +80,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM4->USART, .rx_pin = GPIO_PIN(PB, 9), .tx_pin = GPIO_PIN(PB, 8), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_0, diff --git a/boards/samr21-xpro/include/periph_conf.h b/boards/samr21-xpro/include/periph_conf.h index 20950cc485..9bfcb97d65 100644 --- a/boards/samr21-xpro/include/periph_conf.h +++ b/boards/samr21-xpro/include/periph_conf.h @@ -135,23 +135,31 @@ static const tc32_conf_t timer_config[] = { */ static const uart_conf_t uart_config[] = { { - .dev = &SERCOM0->USART, - .rx_pin = GPIO_PIN(PA,5), - .tx_pin = GPIO_PIN(PA,4), - .mux = GPIO_MUX_D, - .rx_pad = UART_PAD_RX_1, - .tx_pad = UART_PAD_TX_0, - .flags = UART_FLAG_NONE, + .dev = &SERCOM0->USART, + .rx_pin = GPIO_PIN(PA,5), + .tx_pin = GPIO_PIN(PA,4), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif + .mux = GPIO_MUX_D, + .rx_pad = UART_PAD_RX_1, + .tx_pad = UART_PAD_TX_0, + .flags = UART_FLAG_NONE, .gclk_src = GCLK_CLKCTRL_GEN_GCLK0 }, { - .dev = &SERCOM5->USART, - .rx_pin = GPIO_PIN(PA,23), - .tx_pin = GPIO_PIN(PA,22), - .mux = GPIO_MUX_D, - .rx_pad = UART_PAD_RX_1, - .tx_pad = UART_PAD_TX_0, - .flags = UART_FLAG_NONE, + .dev = &SERCOM5->USART, + .rx_pin = GPIO_PIN(PA,23), + .tx_pin = GPIO_PIN(PA,22), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif + .mux = GPIO_MUX_D, + .rx_pad = UART_PAD_RX_1, + .tx_pad = UART_PAD_TX_0, + .flags = UART_FLAG_NONE, .gclk_src = GCLK_CLKCTRL_GEN_GCLK0 } }; diff --git a/boards/samr30-xpro/include/periph_conf.h b/boards/samr30-xpro/include/periph_conf.h index 9b3ddc7d4a..3c306e7c1e 100644 --- a/boards/samr30-xpro/include/periph_conf.h +++ b/boards/samr30-xpro/include/periph_conf.h @@ -62,6 +62,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM0->USART, .rx_pin = GPIO_PIN(PA,5), .tx_pin = GPIO_PIN(PA,4), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_0, diff --git a/boards/samr34-xpro/include/periph_conf.h b/boards/samr34-xpro/include/periph_conf.h index 03afe23408..73eda2baa0 100644 --- a/boards/samr34-xpro/include/periph_conf.h +++ b/boards/samr34-xpro/include/periph_conf.h @@ -64,6 +64,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM0->USART, .rx_pin = GPIO_PIN(PA, 5), .tx_pin = GPIO_PIN(PA, 4), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_0, diff --git a/boards/sensebox_samd21/include/periph_conf.h b/boards/sensebox_samd21/include/periph_conf.h index e015c9b82a..a505dafe02 100644 --- a/boards/sensebox_samd21/include/periph_conf.h +++ b/boards/sensebox_samd21/include/periph_conf.h @@ -125,23 +125,31 @@ static const tc32_conf_t timer_config[] = { */ static const uart_conf_t uart_config[] = { { - .dev = &SERCOM3->USART, - .rx_pin = GPIO_PIN(PA, 23), - .tx_pin = GPIO_PIN(PA, 22), - .mux = GPIO_MUX_C, - .rx_pad = UART_PAD_RX_1, - .tx_pad = UART_PAD_TX_0, - .flags = UART_FLAG_NONE, + .dev = &SERCOM3->USART, + .rx_pin = GPIO_PIN(PA, 23), + .tx_pin = GPIO_PIN(PA, 22), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif + .mux = GPIO_MUX_C, + .rx_pad = UART_PAD_RX_1, + .tx_pad = UART_PAD_TX_0, + .flags = UART_FLAG_NONE, .gclk_src = GCLK_CLKCTRL_GEN_GCLK0, }, { - .dev = &SERCOM4->USART, - .rx_pin = GPIO_PIN(PB, 9), - .tx_pin = GPIO_PIN(PB, 8), - .mux = GPIO_MUX_D, - .rx_pad = UART_PAD_RX_1, - .tx_pad = UART_PAD_TX_0, - .flags = UART_FLAG_NONE, + .dev = &SERCOM4->USART, + .rx_pin = GPIO_PIN(PB, 9), + .tx_pin = GPIO_PIN(PB, 8), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif + .mux = GPIO_MUX_D, + .rx_pad = UART_PAD_RX_1, + .tx_pad = UART_PAD_TX_0, + .flags = UART_FLAG_NONE, .gclk_src = GCLK_CLKCTRL_GEN_GCLK0, } }; diff --git a/boards/sodaq-autonomo/include/periph_conf.h b/boards/sodaq-autonomo/include/periph_conf.h index 6e57e9b05d..c429416461 100644 --- a/boards/sodaq-autonomo/include/periph_conf.h +++ b/boards/sodaq-autonomo/include/periph_conf.h @@ -44,6 +44,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM0->USART, .rx_pin = GPIO_PIN(PA,9), .tx_pin = GPIO_PIN(PA,10), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_C, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_2, @@ -54,6 +58,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM5->USART, .rx_pin = GPIO_PIN(PB,31), .tx_pin = GPIO_PIN(PB,30), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_0_RTS_2_CTS_3, @@ -64,6 +72,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM4->USART, .rx_pin = GPIO_PIN(PB,13), .tx_pin = GPIO_PIN(PB,14), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_C, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_2, @@ -74,6 +86,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM1->USART, .rx_pin = GPIO_PIN(PA,17), .tx_pin = GPIO_PIN(PA,18), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_C, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_2, diff --git a/boards/sodaq-explorer/include/periph_conf.h b/boards/sodaq-explorer/include/periph_conf.h index 522c64cd17..21ac42f693 100644 --- a/boards/sodaq-explorer/include/periph_conf.h +++ b/boards/sodaq-explorer/include/periph_conf.h @@ -40,6 +40,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM5->USART, .rx_pin = GPIO_PIN(PB,31), /* D0, RX Pin */ .tx_pin = GPIO_PIN(PB,30), /* D1, TX Pin */ +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_0_RTS_2_CTS_3, @@ -50,6 +54,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM4->USART, .rx_pin = GPIO_PIN(PB,13), .tx_pin = GPIO_PIN(PB,14), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_C, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_2, @@ -60,6 +68,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM0->USART, .rx_pin = GPIO_PIN(PA,5), .tx_pin = GPIO_PIN(PA,6), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_2, diff --git a/boards/sodaq-one/include/periph_conf.h b/boards/sodaq-one/include/periph_conf.h index 4ceafc6233..aeda804ce0 100644 --- a/boards/sodaq-one/include/periph_conf.h +++ b/boards/sodaq-one/include/periph_conf.h @@ -43,6 +43,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM5->USART, .rx_pin = GPIO_PIN(PB,3), /* D0, RX Pin */ .tx_pin = GPIO_PIN(PB,2), /* D1, TX Pin */ +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_0, @@ -53,6 +57,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM2->USART, .rx_pin = GPIO_PIN(PA,13), .tx_pin = GPIO_PIN(PA,12), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_C, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_0, diff --git a/boards/sodaq-sara-aff/include/periph_conf.h b/boards/sodaq-sara-aff/include/periph_conf.h index 8fd285d2dc..635073ac57 100644 --- a/boards/sodaq-sara-aff/include/periph_conf.h +++ b/boards/sodaq-sara-aff/include/periph_conf.h @@ -46,6 +46,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM5->USART, .rx_pin = GPIO_PIN(PB, 30), /* D0, RX Pin */ .tx_pin = GPIO_PIN(PB, 31), /* D1, TX Pin */ +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_0, @@ -56,6 +60,10 @@ static const uart_conf_t uart_config[] = { .dev = &SERCOM0->USART, .rx_pin = GPIO_PIN(PA,5), .tx_pin = GPIO_PIN(PA,6), +#ifdef MODULE_SAM0_PERIPH_UART_HW_FC + .rts_pin = GPIO_UNDEF, + .cts_pin = GPIO_UNDEF, +#endif .mux = GPIO_MUX_D, .rx_pad = UART_PAD_RX_1, .tx_pad = UART_PAD_TX_2,