1# STM32 LPTIM configuration options 2 3# Copyright (c) 2019 STMicroelectronics 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig STM32_LPTIM_TIMER 7 bool "STM32 Low Power Timer [EXPERIMENTAL]" 8 depends on "$(dt_nodelabel_enabled,lptim1)" 9 depends on CLOCK_CONTROL && PM 10 select TICKLESS_CAPABLE 11 help 12 This module implements a kernel device driver for the LowPower Timer 13 and provides the standard "system clock driver" interfaces. 14 15if STM32_LPTIM_TIMER 16 17choice STM32_LPTIM_CLOCK 18 prompt "LPTIM clock value configuration" 19 20config STM32_LPTIM_CLOCK_LSE 21 bool "LSE" 22 help 23 Use LSE as LPTIM clock 24 25config STM32_LPTIM_CLOCK_LSI 26 bool "LSI" 27 help 28 Use LSI as LPTIM clock 29 30endchoice 31 32config STM32_LPTIM_CLOCK 33 int "LPTIM clock value" 34 default 32768 if STM32_LPTIM_CLOCK_LSE 35 default 32000 if STM32_LPTIM_CLOCK_LSI 36 37config STM32_LPTIM_TIMEBASE 38 hex "LPTIM AutoReload value" 39 default 0xFFFF if STM32_LPTIM_CLOCK_LSE 40 default 0xF9FF if STM32_LPTIM_CLOCK_LSI 41 42endif # STM32_LPTIM_TIMER 43