From 76cf23616b1eb151f04ffda19b375ede65639a5d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 6 Apr 2015 17:21:53 -0600 Subject: STM32: Another fix to RTC magic register from David Sidrane --- nuttx/arch/arm/src/stm32/stm32_rtcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuttx/arch/arm/src/stm32/stm32_rtcc.c b/nuttx/arch/arm/src/stm32/stm32_rtcc.c index b731b0e0f..fb6dbe525 100644 --- a/nuttx/arch/arm/src/stm32/stm32_rtcc.c +++ b/nuttx/arch/arm/src/stm32/stm32_rtcc.c @@ -92,7 +92,7 @@ #endif #if !defined(CONFIG_RTC_MAGIC_REG) -# define CONFIG_RTC_MAGIC_REG STM32_RTC_BKR(0) +# define CONFIG_RTC_MAGIC_REG (0) #endif /* Constants ************************************************************************/ @@ -100,7 +100,7 @@ #define SYNCHRO_TIMEOUT (0x00020000) #define INITMODE_TIMEOUT (0x00010000) #define RTC_MAGIC CONFIG_RTC_MAGIC -#define RTC_MAGIC_REG CONFIG_RTC_MAGIC_REG +#define RTC_MAGIC_REG STM32_RTC_BKR(CONFIG_RTC_MAGIC_REG) /* Proxy definitions to make the same code work for all the STM32 series ************/ -- cgit v1.2.3