Skip to content

Commit 7c2c3dd

Browse files
committed
[BSP] fix UART3 issue in STM32F40x.
1 parent 50e7ae7 commit 7c2c3dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bsp/stm32f40x/drivers/usart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ static void GPIO_Configuration(void)
165165
GPIO_Init(UART3_GPIO, &GPIO_InitStructure);
166166

167167
/* Connect alternate function */
168-
GPIO_PinAFConfig(UART2_GPIO, UART3_TX_PIN_SOURCE, GPIO_AF_USART3);
169-
GPIO_PinAFConfig(UART2_GPIO, UART3_RX_PIN_SOURCE, GPIO_AF_USART3);
168+
GPIO_PinAFConfig(UART3_GPIO, UART3_TX_PIN_SOURCE, GPIO_AF_USART3);
169+
GPIO_PinAFConfig(UART3_GPIO, UART3_RX_PIN_SOURCE, GPIO_AF_USART3);
170170
#endif
171171
}
172172

0 commit comments

Comments
 (0)