Fix spurious interrupts from STM32 ORE (#456)
Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -149,6 +149,9 @@ void USART6_IRQHandler(void)
|
||||
}
|
||||
/* check for errors and clear them */
|
||||
if (USART_GetFlagStatus(USART6, USART_FLAG_ORE) == SET) {
|
||||
/* note: enabling RXNE interrupt also enables the ORE interrupt! */
|
||||
/* dummy read to clear error state */
|
||||
data_byte = USART_ReceiveData(USART6);
|
||||
USART_ClearFlag(USART6, USART_FLAG_ORE);
|
||||
}
|
||||
if (USART_GetFlagStatus(USART6, USART_FLAG_NE) == SET) {
|
||||
|
||||
Reference in New Issue
Block a user