Skip to content

Commit 5157c7b

Browse files
committed
MAX32630: clear uart interrupt flag prior to handler call.
1 parent 253de52 commit 5157c7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

targets/TARGET_Maxim/TARGET_MAX32630/serial_api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ void serial_format(serial_t *obj, int data_bits, SerialParity parity, int stop_b
180180
//******************************************************************************
181181
void uart_handler(serial_t *obj)
182182
{
183+
// clear interrupts
184+
volatile uint32_t flags = obj->uart->intfl;
185+
obj->uart->intfl = flags;
186+
183187
if (obj && obj->id) {
184188
irq_handler(obj->id, RxIrq);
185189
}

0 commit comments

Comments
 (0)