Skip to content

Commit cb8f684

Browse files
committed
drivers/clock_control: stm32_common: Remove unused definitions
STM32WL_DUAL_CORE and RCC_CALC_MSI_RUN_FREQ are not used anymore. Clean up those definitions Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 85b046c commit cb8f684

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/clock_control/clock_stm32_ll_common.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,6 @@
3535
#define fn_mco2_prescaler(v) LL_RCC_MCO2_DIV_ ## v
3636
#define mco2_prescaler(v) fn_mco2_prescaler(v)
3737

38-
/* Calculate MSI freq for the given range (at RUN range, not after standby) */
39-
#if !defined(LL_RCC_MSIRANGESEL_RUN)
40-
/* CONFIG_SOC_SERIES_STM32WBX or CONFIG_SOC_SERIES_STM32L0X or CONFIG_SOC_SERIES_STM32L1X */
41-
#define RCC_CALC_MSI_RUN_FREQ() __LL_RCC_CALC_MSI_FREQ(LL_RCC_MSI_GetRange())
42-
#else
43-
/* mainly CONFIG_SOC_SERIES_STM32WLX or CONFIG_SOC_SERIES_STM32L4X or CONFIG_SOC_SERIES_STM32L5X */
44-
#define RCC_CALC_MSI_RUN_FREQ() __LL_RCC_CALC_MSI_FREQ( \
45-
LL_RCC_MSIRANGESEL_RUN, LL_RCC_MSI_GetRange())
46-
#endif
4738

4839
#if DT_NODE_HAS_PROP(DT_NODELABEL(rcc), ahb4_prescaler)
4940
#define RCC_CALC_FLASH_FREQ __LL_RCC_CALC_HCLK4_FREQ
@@ -56,11 +47,6 @@
5647
#define GET_CURRENT_FLASH_PRESCALER LL_RCC_GetAHBPrescaler
5748
#endif
5849

59-
/* Identify stm32wl dual-core socs by symbol defined in CMSIS dev header file */
60-
#if (defined(CONFIG_SOC_SERIES_STM32WLX) && defined(DUAL_CORE))
61-
#define STM32WL_DUAL_CORE
62-
#endif
63-
6450
static uint32_t get_bus_clock(uint32_t clock, uint32_t prescaler)
6551
{
6652
return clock / prescaler;

0 commit comments

Comments
 (0)