瀏覽代碼

Merge pull request #269 from wzyy2/master

[bsp/stm32f40x] fix the uart3
Bernard Xiong 11 年之前
父節點
當前提交
1fdcede3bf
共有 1 個文件被更改,包括 2 次插入2 次删除
  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);
 
     /* 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
 }