| # STM32 LPTIM configuration options |
| # Copyright (c) 2019 STMicroelectronics |
| # SPDX-License-Identifier: Apache-2.0 |
| menuconfig STM32_LPTIM_TIMER |
| bool "STM32 Low Power Timer [EXPERIMENTAL]" |
| depends on "$(dt_nodelabel_enabled,lptim1)" |
| depends on CLOCK_CONTROL && PM |
| This module implements a kernel device driver for the LowPower Timer |
| and provides the standard "system clock driver" interfaces. |
| prompt "LPTIM clock value configuration" |
| config STM32_LPTIM_CLOCK_LSI |
| config STM32_LPTIM_CLOCK_LSE |
| default 32768 if STM32_LPTIM_CLOCK_LSE |
| default 32000 if STM32_LPTIM_CLOCK_LSI |
| config STM32_LPTIM_TIMEBASE |
| hex "LPTIM AutoReload value" |
| default 0xFFFF if STM32_LPTIM_CLOCK_LSE |
| default 0xF9FF if STM32_LPTIM_CLOCK_LSI |
| endif # STM32_LPTIM_TIMER |