Browse Source

Merge pull request #1983 from whj4674672/master

Fix usart3 initialization bug
Bernard Xiong 6 years ago
parent
commit
63a6f6c4d2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bsp/stm32f107/drivers/usart.c

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

@@ -394,8 +394,8 @@ void rt_hw_usart_init(void)
     uart = &uart3;
 
     config.baud_rate = BAUD_RATE_115200;
-    serial2.ops    = &stm32_uart_ops;
-    serial2.config = config;
+    serial3.ops    = &stm32_uart_ops;
+    serial3.config = config;
 
     NVIC_Configuration(&uart3);