stm32: clock-control: Remove usage of SystemCoreClock #17748
Labels
area: Clock Control
Enhancement
Changes/Updates/Additions to existing features
platform: STM32
ST Micro STM32
Is your enhancement proposal related to a problem? Please describe.
STM32 clock control driver is using variable
SystemCoreClock
to hold core clock frequency.It was used in order to avoid usage of constant symbol
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
Reason was cpu freq setting is usually done in 2 step with a default value at boot and the configured value set up at clock_control driver init.
Requires:
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
(Decouple timers from system clock #16958)sys_clock_hw_cycles_per_sec
to return updated clock through implementation of CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME for STM32 (or similar)The text was updated successfully, but these errors were encountered: