From 00f414d11b2ea5f7b7f4bb5b1df4a9687a43a136 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 2 Jan 2015 06:45:45 -0600 Subject: [PATCH] STM32 RTC: Add Kconfig options needed with the preceding commit --- arch/arm/src/stm32/Kconfig | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/src/stm32/Kconfig b/arch/arm/src/stm32/Kconfig index 354e1fad030..64356f2a53c 100644 --- a/arch/arm/src/stm32/Kconfig +++ b/arch/arm/src/stm32/Kconfig @@ -3238,6 +3238,28 @@ config SDIO_WIDTH_D1_ONLY endmenu +choice + prompt "RTC clock source" + default RTC_LSECLOCK + depends on RTC + +config RTC_LSECLOCK + bool "LSE clock" + ---help--- + Drive the RTC with the LSE clock + +config RTC_LSICLOCK + bool "LSI clock" + ---help--- + Drive the RTC with the LSI clock + +config RTC_HSECLOCK + bool "HSE clock" + ---help--- + Drive the RTC with the HSE clock, divided down to 1MHz. + +endchoice + if STM32_ETHMAC menu "Ethernet MAC configuration"