diff options
author | YamaArashi <shadow962@live.com> | 2016-04-05 21:03:12 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-04-05 21:03:12 -0700 |
commit | 9edfc54fb8b3c2bc46f9730a0eaa80811cb156dd (patch) | |
tree | d88d90ae5575ef77998d84333d1b7f0ca818ec88 /include/rtc_util.h | |
parent | e0e5cb9ce6e3e43309a43ad3cca8ec8b1a1d6f99 (diff) |
rename RTC files
Diffstat (limited to 'include/rtc_util.h')
-rw-r--r-- | include/rtc_util.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/rtc_util.h b/include/rtc_util.h deleted file mode 100644 index 96d7e716b..000000000 --- a/include/rtc_util.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef GUARD_RTC_UTIL_H -#define GUARD_RTC_UTIL_H - -#include "global.h" - -#define RTC_INIT_ERROR 0x0001 -#define RTC_INIT_WARNING 0x0002 - -#define RTC_ERR_12HOUR_CLOCK 0x0010 -#define RTC_ERR_POWER_FAILURE 0x0020 -#define RTC_ERR_INVALID_YEAR 0x0040 -#define RTC_ERR_INVALID_MONTH 0x0080 -#define RTC_ERR_INVALID_DAY 0x0100 -#define RTC_ERR_INVALID_HOUR 0x0200 -#define RTC_ERR_INVALID_MINUTE 0x0400 -#define RTC_ERR_INVALID_SECOND 0x0800 - -#define RTC_ERR_FLAG_MASK 0x0FF0 - -void RtcInit(); -u16 RtcGetErrorStatus(); -void RtcReset(); -void FormatDecimalTime(u8 *dest, s32 hour, s32 minute, s32 second); -void FormatHexTime(u8 *dest, s32 hour, s32 minute, s32 second); -void FormatHexRtcTime(u8 *dest); -void FormatDecimalDate(u8 *dest, s32 year, s32 month, s32 day); -void FormatHexDate(u8 *dest, s32 year, s32 month, s32 day); -void RtcCalcLocalTime(); -void RtcInitLocalTimeOffset(s32 hour, s32 minute); -void RtcCalcLocalTimeOffset(s32 days, s32 hours, s32 minutes, s32 seconds); -void CalcTimeDifference(struct Time *result, struct Time *t1, struct Time *t2); -u32 RtcGetMinuteCount(); - -#endif // GUARD_RTC_UTIL_H |