瀏覽代碼

fix stm32f407 uart3 TX config error

unknown 10 年之前
父節點
當前提交
a0b71c1c77
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bsp/stm32f40x/drivers/usart.c

+ 1 - 1
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 */