From f86f891702e77267eeca63e960b210a2ae9db00b Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 23 Dec 2014 11:48:01 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7597 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c | 3 +++ os/hal/ports/STM32/LLD/RTCv2/rtc_lld.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 /** @} */ /**