1# STM32 Cube LL RTC 2 3# Copyright (c) 2018, Linaro Limited 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig COUNTER_RTC_STM32 7 bool "STM32 Counter RTC driver" 8 default y if !RTC 9 depends on DT_HAS_ST_STM32_RTC_ENABLED 10 select USE_STM32_LL_RTC 11 select USE_STM32_LL_PWR 12 select USE_STM32_LL_RCC 13 select USE_STM32_LL_EXTI 14 help 15 Build RTC driver for STM32 SoCs. 16 Tested on STM32 C0, F0, F2, F3, F4, F7, G0, G4, H7, L1, L4, L5, U5 series 17 18if COUNTER_RTC_STM32 19 20choice COUNTER_RTC_STM32_CLOCK_SRC 21 bool "RTC clock source" 22 optional 23 depends on COUNTER_RTC_STM32 24 25config COUNTER_RTC_STM32_CLOCK_LSI 26 bool "LSI" 27 select DEPRECATED 28 help 29 Use LSI as RTC clock 30 Deprecated in favor of device tree secondary domain clock 31 32config COUNTER_RTC_STM32_CLOCK_LSE 33 bool "LSE" 34 select DEPRECATED 35 help 36 Use LSE as RTC clock 37 Deprecated in favor of device tree secondary domain clock 38 39endchoice #COUNTER_RTC_STM32_CLOCK_SRC 40 41config COUNTER_RTC_STM32_SAVE_VALUE_BETWEEN_RESETS 42 bool "Save rtc time value between resets" 43 default n 44 help 45 Keep the counter value after each reset. 46 47config COUNTER_RTC_STM32_SUBSECONDS 48 bool "Use the subseconds as a basic tick." 49 depends on !SOC_SERIES_STM32F1X 50 help 51 Use the subseconds as the basic time tick. It increases resolution 52 of the counter. The frequency of the time is RTC Source Clock divided 53 by 2. It is the clock after the first asynchronous prescaler. 54 The config increases power consumption. 55 56endif # COUNTER_RTC_STM32 57