aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32L1xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-06-01 09:51:45 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-06-01 09:51:45 +0000
commit65e3013e8c6da7332d16ec8f24541eaf9f9bbc6c (patch)
treef30f4576e11568d7fb9fbd92d1e5573a25028cb7 /os/hal/ports/STM32/STM32L1xx
parentc117774941897fa53f31cb928f06e97649ef7579 (diff)
downloadChibiOS-65e3013e8c6da7332d16ec8f24541eaf9f9bbc6c.tar.gz
ChibiOS-65e3013e8c6da7332d16ec8f24541eaf9f9bbc6c.tar.bz2
ChibiOS-65e3013e8c6da7332d16ec8f24541eaf9f9bbc6c.zip
Fixed bug #509.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6975 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32L1xx')
-rw-r--r--os/hal/ports/STM32/STM32L1xx/stm32_registry.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32L1xx/stm32_registry.h b/os/hal/ports/STM32/STM32L1xx/stm32_registry.h
index 7bff1e574..6b5c43fad 100644
--- a/os/hal/ports/STM32/STM32L1xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32L1xx/stm32_registry.h
@@ -85,7 +85,11 @@
/* RTC attributes.*/
#define STM32_HAS_RTC TRUE
+#if defined(STM32L1XX_MDP)
+#define STM32_RTC_HAS_SUBSECONDS TRUE
+#else
#define STM32_RTC_HAS_SUBSECONDS FALSE
+#endif
#define STM32_RTC_IS_CALENDAR TRUE
/* SDIO attributes.*/