Merge pull request #2192 from HubertXie/master

[stm32][drv_usart]修复串口中断接收数据丢数据问题
This commit is contained in:
Bernard Xiong 2019-01-17 09:59:17 +08:00 committed by GitHub
commit 479ea9a520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -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) &&