1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/stm32: update to use generic uart_hw_fc module

This commit is contained in:
Dylan Laduranty 2020-03-10 14:08:54 +01:00
parent 3c47911189
commit a33e61e997
5 changed files with 13 additions and 13 deletions

View File

@ -85,7 +85,7 @@ static const uart_conf_t uart_config[] = {
.tx_af = GPIO_AF7,
.bus = APB1,
.irqn = USART2_IRQn,
#ifdef MODULE_STM32_PERIPH_UART_HW_FC
#ifdef MODULE_PERIPH_UART_HW_FC
.cts_pin = GPIO_UNDEF,
.rts_pin = GPIO_UNDEF,
.cts_af = GPIO_AF7,
@ -103,7 +103,7 @@ static const uart_conf_t uart_config[] = {
.tx_af = GPIO_AF8,
.bus = APB12,
.irqn = LPUART1_IRQn,
#ifdef MODULE_STM32_PERIPH_UART_HW_FC
#ifdef MODULE_PERIPH_UART_HW_FC
.cts_pin = GPIO_UNDEF,
.rts_pin = GPIO_UNDEF,
.cts_af = GPIO_AF7,
@ -121,7 +121,7 @@ static const uart_conf_t uart_config[] = {
.tx_af = GPIO_AF7,
.bus = APB2,
.irqn = USART1_IRQn,
#ifdef MODULE_STM32_PERIPH_UART_HW_FC
#ifdef MODULE_PERIPH_UART_HW_FC
.cts_pin = GPIO_PIN(PORT_G, 11),
.rts_pin = GPIO_PIN(PORT_G, 12),
.cts_af = GPIO_AF7,

View File

@ -1,4 +1,4 @@
USEMODULE += stm32_periph_uart_hw_fc
USEMODULE += periph_uart_hw_fc
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio

View File

@ -91,7 +91,7 @@ static const uart_conf_t uart_config[] = {
.tx_af = GPIO_AF8,
.bus = APB2,
.irqn = USART6_IRQn,
#ifdef MODULE_STM32_PERIPH_UART_HW_FC
#ifdef MODULE_PERIPH_UART_HW_FC
.cts_pin = GPIO_UNDEF,
.rts_pin = GPIO_UNDEF,
.cts_af = GPIO_AF8,
@ -107,7 +107,7 @@ static const uart_conf_t uart_config[] = {
.tx_af = GPIO_AF7,
.bus = APB1,
.irqn = USART2_IRQn,
#ifdef MODULE_STM32_PERIPH_UART_HW_FC
#ifdef MODULE_PERIPH_UART_HW_FC
.cts_pin = GPIO_UNDEF,
.rts_pin = GPIO_UNDEF,
.cts_af = GPIO_AF8,
@ -123,7 +123,7 @@ static const uart_conf_t uart_config[] = {
.tx_af = GPIO_AF8,
.bus = APB1,
.irqn = UART7_IRQn,
#ifdef MODULE_STM32_PERIPH_UART_HW_FC
#ifdef MODULE_PERIPH_UART_HW_FC
.cts_pin = GPIO_PIN(PORT_F, 9),
.rts_pin = GPIO_PIN(PORT_F, 8),
.cts_af = GPIO_AF8,
@ -139,7 +139,7 @@ static const uart_conf_t uart_config[] = {
.tx_af = GPIO_AF8,
.bus = APB1,
.irqn = UART5_IRQn,
#ifdef MODULE_STM32_PERIPH_UART_HW_FC
#ifdef MODULE_PERIPH_UART_HW_FC
.cts_pin = GPIO_UNDEF,
.rts_pin = GPIO_UNDEF,
.cts_af = GPIO_AF8,

View File

@ -1,4 +1,4 @@
USEMODULE += stm32_periph_uart_hw_fc
USEMODULE += periph_uart_hw_fc
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio

View File

@ -71,7 +71,7 @@ static const uart_conf_t uart_config[] = {
.tx_af = GPIO_AF7,
.bus = APB2,
.irqn = USART1_IRQn,
#ifdef MODULE_STM32_PERIPH_UART_HW_FC
#ifdef MODULE_PERIPH_UART_HW_FC
.cts_pin = GPIO_UNDEF,
.rts_pin = GPIO_UNDEF,
.cts_af = GPIO_AF7,
@ -87,7 +87,7 @@ static const uart_conf_t uart_config[] = {
.tx_af = GPIO_AF7,
.bus = APB1,
.irqn = USART2_IRQn,
#ifdef MODULE_STM32_PERIPH_UART_HW_FC
#ifdef MODULE_PERIPH_UART_HW_FC
.cts_pin = GPIO_PIN(PORT_D, 3),
.rts_pin = GPIO_PIN(PORT_D, 4),
.cts_af = GPIO_AF7,
@ -103,7 +103,7 @@ static const uart_conf_t uart_config[] = {
.tx_af = GPIO_AF8,
.bus = APB2,
.irqn = USART6_IRQn,
#ifdef MODULE_STM32_PERIPH_UART_HW_FC
#ifdef MODULE_PERIPH_UART_HW_FC
.cts_pin = GPIO_UNDEF,
.rts_pin = GPIO_UNDEF,
.cts_af = GPIO_AF8,
@ -119,7 +119,7 @@ static const uart_conf_t uart_config[] = {
.tx_af = GPIO_AF7,
.bus = APB1,
.irqn = USART3_IRQn,
#ifdef MODULE_STM32_PERIPH_UART_HW_FC
#ifdef MODULE_PERIPH_UART_HW_FC
.cts_pin = GPIO_UNDEF,
.rts_pin = GPIO_UNDEF,
.cts_af = GPIO_AF7,