From 6dbb32214ba7323973d9d9c7b65dc9e0aac187fe Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 6 Apr 2015 16:35:56 -0600 Subject: Add conditional logic so that people who use F1 don't have to be bother with meaningless RTC MAGIC settings --- nuttx/arch/arm/src/stm32/Kconfig | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nuttx/arch/arm/src/stm32/Kconfig b/nuttx/arch/arm/src/stm32/Kconfig index a6de361c5..ebf4d51f3 100644 --- a/nuttx/arch/arm/src/stm32/Kconfig +++ b/nuttx/arch/arm/src/stm32/Kconfig @@ -746,6 +746,7 @@ config STM32_STM32F10XX default n select STM32_HAVE_SPI2 if STM32_HIGHDENSITY || STM32_MEDIUMDENSITY select STM32_HAVE_SPI3 if STM32_HIGHDENSITY || STM32_MEDIUMDENSITY + select STM32_HAVE_RTC_COUNTER config STM32_VALUELINE bool @@ -3402,6 +3403,10 @@ config STM32_SAVE_CRASHDUMP endif # STM32_BKPSRAM +config STM32_HAVE_RTC_COUNTER + bool + default n + config STM32_HAVE_RTC_SUBSECONDS bool default n @@ -3410,12 +3415,12 @@ config RTC_MAGIC_REG int "The BKP register used to store/check the Magic value to determine if RTC is set already" default 0 range 0 19 - depends on RTC + depends on RTC && !STM32_HAVE_RTC_COUNTER config RTC_MAGIC hex "Value used as Magic to determine if RTC is set already" default 0xfacefeee - depends on RTC + depends on RTC && !STM32_HAVE_RTC_COUNTER choice prompt "RTC clock source" -- cgit v1.2.3