1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 10:12:45 +01:00

boards/nucleo-l152re: fix uart1 pinout config

According to the pinout the rx and tx pin need to be the other way around.
Though the swapped tx and rx pins allow the uart to work in loopback, it is still not correct.
The PA10 functions as an RX pin even though PA10 states TX pin in the periph_conf.
With this fixed the pullup for the rx is configured correctly and noise doesn't trigger the line.

This change sets the .tx_pin from PA10 to PA9 and the .rx_pin from PA9 to PA10.
This commit is contained in:
MarcelStenzel 2020-03-12 16:20:33 +01:00
parent 146d1ebe7d
commit 1f20e5ab1c

View File

@ -104,8 +104,8 @@ static const uart_conf_t uart_config[] = {
{
.dev = USART1,
.rcc_mask = RCC_APB2ENR_USART1EN,
.rx_pin = GPIO_PIN(PORT_A, 9),
.tx_pin = GPIO_PIN(PORT_A, 10),
.rx_pin = GPIO_PIN(PORT_A, 10),
.tx_pin = GPIO_PIN(PORT_A, 9),
.rx_af = GPIO_AF7,
.tx_af = GPIO_AF7,
.bus = APB2,