stm32/h7: Implemented support for the LSI clock source

This commit is contained in:
dragonmux
2024-05-13 23:23:24 +01:00
committed by Piotr Esden-Tempski
parent 683c35de54
commit 26cb7f0ded
2 changed files with 12 additions and 0 deletions

View File

@@ -230,6 +230,13 @@ void rcc_clock_setup_hsi48(void)
continue;
}
void rcc_clock_setup_lsi(void)
{
RCC_CSR |= RCC_CSR_LSION;
while (!(RCC_CSR & RCC_CSR_LSIRDY))
continue;
}
uint32_t rcc_get_bus_clk_freq(enum rcc_clock_source source) {
uint32_t clksel;
switch (source) {