| # STM32 Cube LL RTC |
| |
| # Copyright (c) 2018, Linaro Limited |
| # SPDX-License-Identifier: Apache-2.0 |
| |
| menuconfig COUNTER_RTC_STM32 |
| bool "STM32 Counter RTC driver" |
| default y |
| depends on DT_HAS_ST_STM32_RTC_ENABLED |
| select USE_STM32_LL_RTC |
| select USE_STM32_LL_PWR |
| select USE_STM32_LL_RCC |
| select USE_STM32_LL_EXTI |
| help |
| Build RTC driver for STM32 SoCs. |
| Tested on STM32 F0, F2, F3, F4, F7, G0, G4, H7, L1, L4, L5, U5 series |
| |
| if COUNTER_RTC_STM32 |
| |
| choice COUNTER_RTC_STM32_CLOCK_SRC |
| bool "RTC clock source" |
| depends on COUNTER_RTC_STM32 |
| |
| config COUNTER_RTC_STM32_CLOCK_LSI |
| bool "LSI" |
| help |
| Use LSI as RTC clock |
| |
| config COUNTER_RTC_STM32_CLOCK_LSE |
| bool "LSE" |
| help |
| Use LSE as RTC clock |
| |
| endchoice #COUNTER_RTC_STM32_CLOCK_SRC |
| |
| config COUNTER_RTC_STM32_SAVE_VALUE_BETWEEN_RESETS |
| bool "Save rtc time value between resets" |
| default y |
| help |
| Do not reset the rtc time and date after each reset. |
| |
| endif # COUNTER_RTC_STM32 |