Merge pull request #451 from Eddy0402/master
[DeviceDriver] stm32: Remove explicity clear of RXNE flag
This commit is contained in:
commit
fde5c3b484
@ -152,8 +152,6 @@ void USART1_IRQHandler(void)
|
|||||||
if(USART_GetITStatus(uart->uart_device, USART_IT_RXNE) != RESET)
|
if(USART_GetITStatus(uart->uart_device, USART_IT_RXNE) != RESET)
|
||||||
{
|
{
|
||||||
rt_hw_serial_isr(&serial1, RT_SERIAL_EVENT_RX_IND);
|
rt_hw_serial_isr(&serial1, RT_SERIAL_EVENT_RX_IND);
|
||||||
/* clear interrupt */
|
|
||||||
USART_ClearITPendingBit(uart->uart_device, USART_IT_RXNE);
|
|
||||||
}
|
}
|
||||||
if (USART_GetITStatus(uart->uart_device, USART_IT_TC) != RESET)
|
if (USART_GetITStatus(uart->uart_device, USART_IT_TC) != RESET)
|
||||||
{
|
{
|
||||||
@ -186,8 +184,6 @@ void USART2_IRQHandler(void)
|
|||||||
if(USART_GetITStatus(uart->uart_device, USART_IT_RXNE) != RESET)
|
if(USART_GetITStatus(uart->uart_device, USART_IT_RXNE) != RESET)
|
||||||
{
|
{
|
||||||
rt_hw_serial_isr(&serial2, RT_SERIAL_EVENT_RX_IND);
|
rt_hw_serial_isr(&serial2, RT_SERIAL_EVENT_RX_IND);
|
||||||
/* clear interrupt */
|
|
||||||
USART_ClearITPendingBit(uart->uart_device, USART_IT_RXNE);
|
|
||||||
}
|
}
|
||||||
if (USART_GetITStatus(uart->uart_device, USART_IT_TC) != RESET)
|
if (USART_GetITStatus(uart->uart_device, USART_IT_TC) != RESET)
|
||||||
{
|
{
|
||||||
|
@ -177,8 +177,6 @@ void USART1_IRQHandler(void)
|
|||||||
if (USART_GetITStatus(uart->uart_device, USART_IT_RXNE) != RESET)
|
if (USART_GetITStatus(uart->uart_device, USART_IT_RXNE) != RESET)
|
||||||
{
|
{
|
||||||
rt_hw_serial_isr(&serial1, RT_SERIAL_EVENT_RX_IND);
|
rt_hw_serial_isr(&serial1, RT_SERIAL_EVENT_RX_IND);
|
||||||
/* clear interrupt */
|
|
||||||
USART_ClearITPendingBit(uart->uart_device, USART_IT_RXNE);
|
|
||||||
}
|
}
|
||||||
if (USART_GetITStatus(uart->uart_device, USART_IT_TC) != RESET)
|
if (USART_GetITStatus(uart->uart_device, USART_IT_TC) != RESET)
|
||||||
{
|
{
|
||||||
@ -211,8 +209,6 @@ void USART2_IRQHandler(void)
|
|||||||
if (USART_GetITStatus(uart->uart_device, USART_IT_RXNE) != RESET)
|
if (USART_GetITStatus(uart->uart_device, USART_IT_RXNE) != RESET)
|
||||||
{
|
{
|
||||||
rt_hw_serial_isr(&serial2, RT_SERIAL_EVENT_RX_IND);
|
rt_hw_serial_isr(&serial2, RT_SERIAL_EVENT_RX_IND);
|
||||||
/* clear interrupt */
|
|
||||||
USART_ClearITPendingBit(uart->uart_device, USART_IT_RXNE);
|
|
||||||
}
|
}
|
||||||
if (USART_GetITStatus(uart->uart_device, USART_IT_TC) != RESET)
|
if (USART_GetITStatus(uart->uart_device, USART_IT_TC) != RESET)
|
||||||
{
|
{
|
||||||
@ -245,8 +241,6 @@ void USART3_IRQHandler(void)
|
|||||||
if (USART_GetITStatus(uart->uart_device, USART_IT_RXNE) != RESET)
|
if (USART_GetITStatus(uart->uart_device, USART_IT_RXNE) != RESET)
|
||||||
{
|
{
|
||||||
rt_hw_serial_isr(&serial3, RT_SERIAL_EVENT_RX_IND);
|
rt_hw_serial_isr(&serial3, RT_SERIAL_EVENT_RX_IND);
|
||||||
/* clear interrupt */
|
|
||||||
USART_ClearITPendingBit(uart->uart_device, USART_IT_RXNE);
|
|
||||||
}
|
}
|
||||||
if (USART_GetITStatus(uart->uart_device, USART_IT_TC) != RESET)
|
if (USART_GetITStatus(uart->uart_device, USART_IT_TC) != RESET)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user