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 Jan 13, 2022
1 parent 54ad343 commit edde7af
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 @@ -171,6 +171,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 edde7af

Please sign in to comment.