4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 16:03:30 +08:00

Merge pull request #2037 from balanceTWK/master

【bsp/stm32f10x】 复位后串口打印第一个字节丢失的问题 | The loss of the first byte of serial port pr…
This commit is contained in:
Bernard Xiong 2018-12-06 10:59:51 +08:00 committed by GitHub
commit fabb3ecfd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,8 @@ static rt_err_t stm32_configure(struct rt_serial_device *serial, struct serial_c
/* Enable USART */
USART_Cmd(uart->uart_device, ENABLE);
USART_ClearFlag(uart->uart_device,USART_FLAG_TC);
return RT_EOK;
}