Skip to content

Commit

Permalink
cmsis_uart: add uart_reset() call to clear spurious interrupts
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrossard committed Feb 14, 2024
1 parent bb5aa72 commit 490a45a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/hic_hal/cmsis-driver/uart/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ int32_t uart_set_configuration(UART_Configuration *config)
NVIC_ClearPendingIRQ(CMSIS_UART_IRQ);
NVIC_EnableIRQ(CMSIS_UART_IRQ);

uart_reset();

return 1;
}

Expand Down

0 comments on commit 490a45a

Please sign in to comment.