diff --git a/drivers/clock_control/clock_stm32f2_f4_f7.c b/drivers/clock_control/clock_stm32f2_f4_f7.c index c2bf92fbd16..55a52e9fded 100644 --- a/drivers/clock_control/clock_stm32f2_f4_f7.c +++ b/drivers/clock_control/clock_stm32f2_f4_f7.c @@ -33,6 +33,22 @@ static uint32_t get_pll_source(void) return 0; } +/** + * @brief get the pll source frequency + */ +__unused +uint32_t get_pllsrc_frequency(void) +{ + if (IS_ENABLED(STM32_PLL_SRC_HSI)) { + return STM32_HSI_FREQ; + } else if (IS_ENABLED(STM32_PLL_SRC_HSE)) { + return STM32_HSE_FREQ; + } + + __ASSERT(0, "Invalid source"); + return 0; +} + /** * @brief Set up pll configuration */