File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 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
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-
6450static uint32_t get_bus_clock (uint32_t clock , uint32_t prescaler )
6551{
6652 return clock / prescaler ;
You can’t perform that action at this time.
0 commit comments