8000 cmsis_uart: add uart_reset() call to clear spurious interrupts · ARMmbed/DAPLink@0a66e0c · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a66e0c

Browse files
committed
cmsis_uart: add uart_reset() call to clear spurious interrupts
1 parent 22f3472 commit 0a66e0c

File tree

1 file changed

+2
-0
lines changed
  • source/hic_hal/cmsis-driver/uart

1 file changed

+2
-0
lines changed

source/hic_hal/cmsis-driver/uart/uart.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ int32_t uart_set_configuration(UART_Configuration *config)
190190
NVIC_ClearPendingIRQ(CMSIS_UART_IRQ);
191191
NVIC_EnableIRQ(CMSIS_UART_IRQ);
192192

193+
uart_reset();
194+
193195
return 1;
194196
}
195197

0 commit comments

Comments
 (0)
0