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:
Erwan Gouriou 2022-01-18 11:44:01 +01:00 committed by Carles Cufí
commit ceb8579854
7 changed files with 68 additions and 46 deletions

View file

@ -393,7 +393,7 @@ static void start_ble_rf(void)
LL_RCC_ReleaseBackupDomainReset();
}
#if STM32_LSE_CLOCK
#if STM32_LSE_ENABLED
/* Select LSE clock */
LL_RCC_LSE_Enable();
while (!LL_RCC_LSE_IsReady()) {