diff --git a/include/libopencm3/stm32/f3/rcc.h b/include/libopencm3/stm32/f3/rcc.h index fa7654ec..f299012c 100644 --- a/include/libopencm3/stm32/f3/rcc.h +++ b/include/libopencm3/stm32/f3/rcc.h @@ -592,7 +592,7 @@ void rcc_set_pll_source(uint32_t pllsrc); void rcc_set_ppre2(uint32_t ppre2); void rcc_set_ppre1(uint32_t ppre1); void rcc_set_hpre(uint32_t hpre); -void rcc_set_main_pll_hsi(uint32_t pll); +void rcc_set_pll_multiplier(uint32_t pll); uint32_t rcc_get_system_clock_source(void); void rcc_backupdomain_reset(void); void rcc_clock_setup_hsi(const clock_scale_t *clock); diff --git a/lib/stm32/f3/rcc.c b/lib/stm32/f3/rcc.c index 6d78c283..18de867b 100644 --- a/lib/stm32/f3/rcc.c +++ b/lib/stm32/f3/rcc.c @@ -366,7 +366,7 @@ void rcc_set_hpre(uint32_t hpre) } -void rcc_set_main_pll_hsi(uint32_t pll) +void rcc_set_pll_multiplier(uint32_t pll) { RCC_CFGR = (~RCC_CFGR_PLLMUL_MASK & RCC_CFGR) | (pll << RCC_CFGR_PLLMUL_SHIFT); @@ -392,7 +392,7 @@ void rcc_clock_setup_hsi(const clock_scale_t *clock) rcc_osc_off(PLL); rcc_wait_for_osc_not_ready(PLL); rcc_set_pll_source(clock->pllsrc); - rcc_set_main_pll_hsi(clock->pll); + rcc_set_pll_multiplier(clock->pll); /* Enable PLL oscillator and wait for it to stabilize. */ rcc_osc_on(PLL); rcc_wait_for_osc_ready(PLL);