diff options
Diffstat (limited to 'lib/stm32/f2/rcc.c')
-rw-r--r-- | lib/stm32/f2/rcc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/stm32/f2/rcc.c b/lib/stm32/f2/rcc.c index b662cebb..e530de47 100644 --- a/lib/stm32/f2/rcc.c +++ b/lib/stm32/f2/rcc.c @@ -1,6 +1,6 @@ -/** @defgroup rcc_file RCC +/** @defgroup rcc_file RCC peripheral API * - * @ingroup STM32F2xx + * @ingroup peripheral_apis * * @section rcc_f2_api_ex Reset and Clock Control API. * @@ -355,6 +355,10 @@ void rcc_clock_setup_hse_3v3(const struct rcc_clock_scale *clock) rcc_set_ppre1(clock->ppre1); rcc_set_ppre2(clock->ppre2); + /* Disable PLL oscillator before changing its configuration. */ + rcc_osc_off(RCC_PLL); + + /* Configure the PLL oscillator. */ rcc_set_main_pll_hse(clock->pllm, clock->plln, clock->pllp, clock->pllq); |