diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-12-23 11:48:01 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-12-23 11:48:01 +0000 |
commit | f86f891702e77267eeca63e960b210a2ae9db00b (patch) | |
tree | ff8a189e55d67dc3987cdee4450914f8eaeaf21a | |
parent | 2042374417adc1e424342c28a1ce000cd2b9c1be (diff) | |
download | ChibiOS-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
-rw-r--r-- | os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c | 3 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/RTCv2/rtc_lld.h | 2 |
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
/** @} */
/**
|