git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7597 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2014-12-23 11:48:01 +00:00
parent 2042374417
commit f86f891702
2 changed files with 4 additions and 1 deletions

View File

@ -197,6 +197,8 @@ static uint32_t rtc_encode_date(const RTCDateTime *timespec) {
return dr; 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) { static size_t _write(void *instance, const uint8_t *bp, size_t n) {
(void)instance; (void)instance;
@ -274,6 +276,7 @@ struct RTCDriverVMT _rtc_lld_vmt = {
_write, _read, _put, _get, _write, _read, _put, _get,
_close, _geterror, _getsize, _getposition, _lseek _close, _geterror, _getsize, _getposition, _lseek
}; };
#endif /* RTC_HAS_STORAGE */
/*===========================================================================*/ /*===========================================================================*/
/* Driver interrupt handlers. */ /* Driver interrupt handlers. */

View File

@ -51,7 +51,7 @@
/** /**
* @brief Presence of a local persistent storage. * @brief Presence of a local persistent storage.
*/ */
#define RTC_HAS_STORAGE TRUE #define RTC_HAS_STORAGE FALSE
/** @} */ /** @} */
/** /**