drivers: timer: lptim is [EXPERIMENTAL] for stm32 soc series only
Activation of the LPTIMER is valid for SLEEP MODE only The choice of the lptim clock source is STM32_LPTIM_CLOCK set the LSE in first position to have as default value Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
7545b7888a
commit
f30f5fff72
|
@ -4,9 +4,9 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
menuconfig STM32_LPTIM_TIMER
|
menuconfig STM32_LPTIM_TIMER
|
||||||
bool "STM32 Low Power Timer"
|
bool "STM32 Low Power Timer [EXPERIMENTAL]"
|
||||||
depends on (SOC_SERIES_STM32L4X || SOC_SERIES_STM32WBX)
|
depends on (SOC_SERIES_STM32L4X || SOC_SERIES_STM32WBX)
|
||||||
depends on CLOCK_CONTROL
|
depends on CLOCK_CONTROL && DEVICE_POWER_MANAGEMENT
|
||||||
select TICKLESS_CAPABLE
|
select TICKLESS_CAPABLE
|
||||||
help
|
help
|
||||||
This module implements a kernel device driver for the LowPower Timer
|
This module implements a kernel device driver for the LowPower Timer
|
||||||
|
@ -17,26 +17,26 @@ if STM32_LPTIM_TIMER
|
||||||
choice STM32_LPTIM_CLOCK
|
choice STM32_LPTIM_CLOCK
|
||||||
prompt "LPTIM clock value configuration"
|
prompt "LPTIM clock value configuration"
|
||||||
|
|
||||||
config STM32_LPTIM_CLOCK_LSI
|
|
||||||
bool "LSI"
|
|
||||||
help
|
|
||||||
Use LSI as LPTIM clock
|
|
||||||
|
|
||||||
config STM32_LPTIM_CLOCK_LSE
|
config STM32_LPTIM_CLOCK_LSE
|
||||||
bool "LSE"
|
bool "LSE"
|
||||||
help
|
help
|
||||||
Use LSE as LPTIM clock
|
Use LSE as LPTIM clock
|
||||||
|
|
||||||
|
config STM32_LPTIM_CLOCK_LSI
|
||||||
|
bool "LSI"
|
||||||
|
help
|
||||||
|
Use LSI as LPTIM clock
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config STM32_LPTIM_CLOCK
|
config STM32_LPTIM_CLOCK
|
||||||
int "LPTIM clock value"
|
int "LPTIM clock value"
|
||||||
default 32000 if STM32_LPTIM_CLOCK_LSI
|
|
||||||
default 32768 if STM32_LPTIM_CLOCK_LSE
|
default 32768 if STM32_LPTIM_CLOCK_LSE
|
||||||
|
default 32000 if STM32_LPTIM_CLOCK_LSI
|
||||||
|
|
||||||
config STM32_LPTIM_TIMEBASE
|
config STM32_LPTIM_TIMEBASE
|
||||||
hex "LPTIM AutoReload value"
|
hex "LPTIM AutoReload value"
|
||||||
default 0xF9FF if STM32_LPTIM_CLOCK_LSI
|
|
||||||
default 0xFFFF if STM32_LPTIM_CLOCK_LSE
|
default 0xFFFF if STM32_LPTIM_CLOCK_LSE
|
||||||
|
default 0xF9FF if STM32_LPTIM_CLOCK_LSI
|
||||||
|
|
||||||
endif # STM32_LPTIM_TIMER
|
endif # STM32_LPTIM_TIMER
|
||||||
|
|
Loading…
Reference in a new issue