mirror of https://github.com/ARMmbed/mbed-os.git
avoid getting stuck in serial IRQ if ORE is set without RXNE - issue #1605
parent
f178fc4835
commit
68b034541a
|
@ -451,6 +451,9 @@ static void uart_irq(int id)
|
||||||
irq_handler(serial_irq_ids[id], RxIrq);
|
irq_handler(serial_irq_ids[id], RxIrq);
|
||||||
__HAL_UART_CLEAR_FLAG(handle, UART_FLAG_RXNE);
|
__HAL_UART_CLEAR_FLAG(handle, UART_FLAG_RXNE);
|
||||||
}
|
}
|
||||||
|
if (__HAL_UART_GET_FLAG(handle, UART_FLAG_ORE) != RESET) {
|
||||||
|
uint8_t c = handle->Instance->DR;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue