stm32h7: Reset USART clock selection (#23498) (#23516)

This resets the USARTs' clock source selection to the default, in case
it has been changed by the bootloader.

This is required if booting from the ArduPilot bootloader which happens
to reset the clock selection to PLL.

Without this fix, UARTs (including the console) is garbled, so
presumably at an invalid baudrate.
This commit is contained in:
Julian Oes
2024-08-09 10:25:19 +12:00
committed by GitHub
parent 631f36b1ee
commit fe26cdebc0
5 changed files with 25 additions and 1 deletions