未验证 提交 479ea9a5 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #2192 from HubertXie/master

[stm32][drv_usart]修复串口中断接收数据丢数据问题
......@@ -235,8 +235,6 @@ static void uart_isr(struct rt_serial_device *serial)
(__HAL_UART_GET_IT_SOURCE(&(uart->handle), UART_IT_RXNE) != RESET))
{
rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND);
/* Clear RXNE interrupt flag */
UART_INSTANCE_CLEAR_FUNCTION(&(uart->handle), UART_FLAG_RXNE);
}
#ifdef RT_SERIAL_USING_DMA
else if ((uart->uart_dma_flag) && (__HAL_UART_GET_FLAG(&(uart->handle), UART_FLAG_IDLE) != RESET) &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册