aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-12-23 11:48:01 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-12-23 11:48:01 +0000
commitf86f891702e77267eeca63e960b210a2ae9db00b (patch)
treeff8a189e55d67dc3987cdee4450914f8eaeaf21a /os/hal/ports
parent2042374417adc1e424342c28a1ce000cd2b9c1be (diff)
downloadChibiOS-f86f891702e77267eeca63e960b210a2ae9db00b.tar.gz
ChibiOS-f86f891702e77267eeca63e960b210a2ae9db00b.tar.bz2
ChibiOS-f86f891702e77267eeca63e960b210a2ae9db00b.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7597 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports')
-rw-r--r--os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c3
-rw-r--r--os/hal/ports/STM32/LLD/RTCv2/rtc_lld.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c b/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c
index 1f02ef413..d862dfff5 100644
--- a/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c
+++ b/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c
@@ -197,6 +197,8 @@ static uint32_t rtc_encode_date(const RTCDateTime *timespec) {
return dr;
}
+#if RTC_HAS_STORAGE
+/* TODO: Map on the backup SRAM on devices that have it.*/
static size_t _write(void *instance, const uint8_t *bp, size_t n) {
(void)instance;
@@ -274,6 +276,7 @@ struct RTCDriverVMT _rtc_lld_vmt = {
_write, _read, _put, _get,
_close, _geterror, _getsize, _getposition, _lseek
};
+#endif /* RTC_HAS_STORAGE */
/*===========================================================================*/
/* Driver interrupt handlers. */
diff --git a/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.h b/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.h
index 6d86f68a5..94bc06759 100644
--- a/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.h
+++ b/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.h
@@ -51,7 +51,7 @@
/**
* @brief Presence of a local persistent storage.
*/
-#define RTC_HAS_STORAGE TRUE
+#define RTC_HAS_STORAGE FALSE
/** @} */
/**