summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-04-06 16:35:56 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-04-06 16:35:56 -0600
commit6dbb32214ba7323973d9d9c7b65dc9e0aac187fe (patch)
tree2226602ecdbf87398ea3ecdaf6ec73096a13ee09 /nuttx
parenta17eeaa938324bda52b446b1482cad4902b69645 (diff)
downloadpx4-nuttx-6dbb32214ba7323973d9d9c7b65dc9e0aac187fe.tar.gz
px4-nuttx-6dbb32214ba7323973d9d9c7b65dc9e0aac187fe.tar.bz2
px4-nuttx-6dbb32214ba7323973d9d9c7b65dc9e0aac187fe.zip
Add conditional logic so that people who use F1 don't have to be bother with meaningless RTC MAGIC settings
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/arch/arm/src/stm32/Kconfig9
1 files 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"