aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/rtc.h
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-01 13:22:15 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-01 13:22:15 +0000
commit96f976382d7b94911dac7bea9477b3e2bc560408 (patch)
tree28d98d7249a66d399400f0b90d34bdd8665cd8b2 /os/hal/include/rtc.h
parent55f399caf7e95a657a956e8ecc6110f9be306682 (diff)
downloadChibiOS-96f976382d7b94911dac7bea9477b3e2bc560408.tar.gz
ChibiOS-96f976382d7b94911dac7bea9477b3e2bc560408.tar.bz2
ChibiOS-96f976382d7b94911dac7bea9477b3e2bc560408.zip
RTCv1. Driver ported to ChibiOS-3.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7442 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include/rtc.h')
-rw-r--r--os/hal/include/rtc.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/os/hal/include/rtc.h b/os/hal/include/rtc.h
index 8e94bc08f..a775ec570 100644
--- a/os/hal/include/rtc.h
+++ b/os/hal/include/rtc.h
@@ -87,18 +87,7 @@
*/
typedef struct RTCDriver RTCDriver;
-/**
- * @brief Type of a structure representing an RTC date/time stamp.
- */
-typedef struct {
- uint32_t year:8; /**< @brief Years since 1980. */
- uint32_t month: 4; /**< @brief Months 1..12. */
- uint32_t dstflag: 1; /**< @brief DST correction flag. */
- uint32_t dayofweek: 3; /**< @brief Day of week 1..7. */
- uint32_t day: 5; /**< @brief Day of the month 1..31. */
- uint32_t millisecond: 27; /**< @brief Milliseconds since midnight.*/
-} RTCDateTime;
-
+#include "chrtclib.h"
#include "rtc_lld.h"
/*===========================================================================*/
@@ -124,7 +113,6 @@ extern "C" {
#if RTC_SUPPORTS_CALLBACKS
void rtcSetCallback(RTCDriver *rtcp, rtccb_t callback);
#endif
- uint32_t rtcConvertDateTimeToFAT(const RTCDateTime *timespec);
#ifdef __cplusplus
}
#endif