soc: stm32 decrease ticks per sec if sysclock is not LPTIM
Reduce the ticks per sec when the sysclock is low and not LPTIM. Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
0fc2de4d4f
commit
0fd7028eeb
1 changed files with 2 additions and 1 deletions
|
@ -25,9 +25,10 @@ config LOG_BACKEND_SWO_REF_FREQ_HZ
|
|||
default "$(DT_STM32_RCC_CLOCK_FREQ)" if "$(dt_nodelabel_enabled,rcc)"
|
||||
depends on LOG_BACKEND_SWO
|
||||
|
||||
# Tick of 10000 is too high for a sysclock lower than 32MHz
|
||||
# If sysclock is not LPTIM, tick of 10000 is too high for a frequency lower than 32MHz
|
||||
config SYS_CLOCK_TICKS_PER_SEC
|
||||
default 8000 if SYS_CLOCK_HW_CYCLES_PER_SEC <= 32000000
|
||||
depends on !STM32_LPTIM_TIMER
|
||||
|
||||
# set the tick per sec as a divider of the LPTIM clock source
|
||||
# with a minimum value of 4096 for SYS_CLOCK_TICKS_PER_SEC to keep
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue