diff --git a/bsp/stm32f40x/drivers/usart.c b/bsp/stm32f40x/drivers/usart.c index 89d9ca3dddbcfcefd80c2cf1e6501cd6a91ea28e..d352081d2b48fd52fd853dcf8edf1f6855613907 100644 --- a/bsp/stm32f40x/drivers/usart.c +++ b/bsp/stm32f40x/drivers/usart.c @@ -187,7 +187,7 @@ static void GPIO_Configuration(void) #ifdef RT_USING_UART3 /* Configure USART3 Rx/tx PIN */ - GPIO_InitStructure.GPIO_Pin = UART3_GPIO_RX | UART3_GPIO_RX; + GPIO_InitStructure.GPIO_Pin = UART3_GPIO_TX | UART3_GPIO_RX; GPIO_Init(UART3_GPIO, &GPIO_InitStructure); /* Connect alternate function */