include/drivers/clock_control: stm32: Add XXX_ENABLED and XXX_FREQ
Add STM32_FOO_ENABLED and STM32_FOO_FREQ to STM32 fixed clocks: HSI, HSE, MSI(S), CSI, LSI, LSE.. Replace STM32_LSE_CLOCK by STM32_LSE_FREQ and when possible replace by new STM32_LSE_ENABLED when making sense. Fix STM32_PLL3_FOO_ENABLE to STM32_PLL3_FOO_ENABLED Additionally, add STM32_PLL_FOO_ENABLED definitions. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
348070e4ea
commit
ceb8579854
7 changed files with 68 additions and 46 deletions
|
@ -53,7 +53,7 @@ void config_enable_default_clocks(void)
|
|||
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);
|
||||
#endif
|
||||
|
||||
#if STM32_LSE_CLOCK
|
||||
#if STM32_LSE_ENABLED
|
||||
/* LSE belongs to the back-up domain, enable access.*/
|
||||
|
||||
#if defined(CONFIG_SOC_SERIES_STM32WBX)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue