Procházet zdrojové kódy

[BSP] fix UART3 issue in STM32F40x.

bernard před 11 roky
rodič
revize
7c2c3ddc34
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      bsp/stm32f40x/drivers/usart.c

+ 2 - 2
bsp/stm32f40x/drivers/usart.c

@@ -165,8 +165,8 @@ static void GPIO_Configuration(void)
 	GPIO_Init(UART3_GPIO, &GPIO_InitStructure);
 	GPIO_Init(UART3_GPIO, &GPIO_InitStructure);
 
 
     /* Connect alternate function */
     /* 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
 #endif
 }
 }