From 96f976382d7b94911dac7bea9477b3e2bc560408 Mon Sep 17 00:00:00 2001 From: barthess Date: Sat, 1 Nov 2014 13:22:15 +0000 Subject: RTCv1. Driver ported to ChibiOS-3. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7442 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/rtc.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'os/hal/include/rtc.h') 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 -- cgit v1.2.3