Skip to content

Commit edde7af

Browse files
committed
cmsis_uart: add uart_reset() call to clear spurious interrupts
1 parent 54ad343 commit edde7af

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
@@ -171,6 +171,8 @@ int32_t uart_set_configuration(UART_Configuration *config)
171171
NVIC_ClearPendingIRQ(CMSIS_UART_IRQ);
172172
NVIC_EnableIRQ(CMSIS_UART_IRQ);
173173

174+
uart_reset();
175+
174176
return 1;
175177
}
176178

0 commit comments

Comments
 (0)