mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +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:
parent
146d1ebe7d
commit
1f20e5ab1c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user