diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-10-31 09:52:34 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-10-31 09:52:34 +0000 |
commit | 40b51d714f5b8897138705aecd1bd3ecd50d6e31 (patch) | |
tree | b0ee44844860bf0844886cecbdc4f08609794f7d /os/hal/src | |
parent | c145bd903fe61e5593c164bd14782a71fc65e632 (diff) | |
download | ChibiOS-40b51d714f5b8897138705aecd1bd3ecd50d6e31.tar.gz ChibiOS-40b51d714f5b8897138705aecd1bd3ecd50d6e31.tar.bz2 ChibiOS-40b51d714f5b8897138705aecd1bd3ecd50d6e31.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7437 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/rtc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/src/rtc.c b/os/hal/src/rtc.c index 4b57614a1..d4b13ba62 100644 --- a/os/hal/src/rtc.c +++ b/os/hal/src/rtc.c @@ -187,6 +187,8 @@ void rtcSetCallback(RTCDriver *rtcp, rtccb_t callback) { /**
* @brief Get current time in format suitable for usage in FAT file system.
+ * @note The information about day of week and DST is lost in DOS
+ * format, the second field loses its least significant bit.
*
* @param[out] timespec pointer to a @p RTCDateTime structure
* @return FAT date/time value.
@@ -194,7 +196,6 @@ void rtcSetCallback(RTCDriver *rtcp, rtccb_t callback) { * @api
*/
uint32_t rtcConvertDateTimeToFAT(const RTCDateTime *timespec) {
-
uint32_t fattime;
uint32_t sec, min, hour, tmp;
|