mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-21 03:07:10 +08:00
Merge pull request #2192 from HubertXie/master
[stm32][drv_usart]修复串口中断接收数据丢数据问题
This commit is contained in:
commit
479ea9a520
@ -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) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user