diff options
| author | bernard <[email protected]> | 2014-07-20 16:53:49 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2014-07-20 16:53:49 +0800 |
| commit | 7c2c3ddc341a14d8db1a6c1833c799f40cb468f4 (patch) | |
| tree | f86d9ccff58482c582477b160d5e574405d38a7f | |
| parent | 50e7ae7e875c28cdc65baf9c0ec7893a59211a23 (diff) | |
[BSP] fix UART3 issue in STM32F40x.
| -rw-r--r-- | bsp/stm32f40x/drivers/usart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bsp/stm32f40x/drivers/usart.c b/bsp/stm32f40x/drivers/usart.c index ab03c92b12..cd221ab0a2 100644 --- a/bsp/stm32f40x/drivers/usart.c +++ b/bsp/stm32f40x/drivers/usart.c @@ -165,8 +165,8 @@ static void GPIO_Configuration(void) GPIO_Init(UART3_GPIO, &GPIO_InitStructure); /* Connect alternate function */ - GPIO_PinAFConfig(UART2_GPIO, UART3_TX_PIN_SOURCE, GPIO_AF_USART3); - GPIO_PinAFConfig(UART2_GPIO, UART3_RX_PIN_SOURCE, GPIO_AF_USART3); + GPIO_PinAFConfig(UART3_GPIO, UART3_TX_PIN_SOURCE, GPIO_AF_USART3); + GPIO_PinAFConfig(UART3_GPIO, UART3_RX_PIN_SOURCE, GPIO_AF_USART3); #endif } |
