aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/rtc.h
diff options
context:
space:
mode:
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