MAX32630: clear uart interrupt flag prior to handler call.

pull/4696/head
Vincent Coubard 2017-07-03 16:39:29 +01:00
parent 253de5286d
commit 5157c7b622
1 changed files with 4 additions and 0 deletions

View File

@ -180,6 +180,10 @@ void serial_format(serial_t *obj, int data_bits, SerialParity parity, int stop_b
//******************************************************************************
void uart_handler(serial_t *obj)
{
// clear interrupts
volatile uint32_t flags = obj->uart->intfl;
obj->uart->intfl = flags;
if (obj && obj->id) {
irq_handler(obj->id, RxIrq);
}