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 20config COUNTER_RTC_STM32_SAVE_VALUE_BETWEEN_RESETS 21 bool "Save rtc time value between resets" 22 default n 23 help 24 Keep the counter value after each reset. 25 26config COUNTER_RTC_STM32_SUBSECONDS 27 bool "Use the subseconds as a basic tick." 28 depends on !SOC_SERIES_STM32F1X 29 help 30 Use the subseconds as the basic time tick. It increases resolution 31 of the counter. The frequency of the time is RTC Source Clock divided 32 by 2. It is the clock after the first asynchronous prescaler. 33 The config increases power consumption. 34 35endif # COUNTER_RTC_STM32 36