summaryrefslogtreecommitdiff
path: root/berry_fix/payload/include/rtc.h
diff options
context:
space:
mode:
authorPaul Sander <nintendo6496@googlemail.com>2018-12-17 16:26:00 +0100
committerPaul Sander <nintendo6496@googlemail.com>2018-12-17 16:26:00 +0100
commit478c7b5421f596ac9c1e6f4faedfe3faec6a68cf (patch)
tree255fa2842f0020dbcd498d87ba8f61456fc804a9 /berry_fix/payload/include/rtc.h
parentfc1fd9c983b0ea35414f699ab6c4b4fdd617e8d0 (diff)
parent4cd02d59b4dfef1129f0e2f23e6409e75848af24 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'berry_fix/payload/include/rtc.h')
-rw-r--r--berry_fix/payload/include/rtc.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/berry_fix/payload/include/rtc.h b/berry_fix/payload/include/rtc.h
new file mode 100644
index 000000000..64a1f2295
--- /dev/null
+++ b/berry_fix/payload/include/rtc.h
@@ -0,0 +1,15 @@
+#ifndef GUARD_RTC_H
+#define GUARD_RTC_H
+
+#include <gba/gba.h>
+#include <siirtc.h>
+#include "global.h"
+
+extern struct Time gTimeSinceBerryUpdate;
+extern struct Time gRtcUTCTime;
+
+bool32 rtc_maincb_is_rtc_working(void);
+bool32 rtc_maincb_is_time_since_last_berry_update_positive(u8 *);
+void rtc_maincb_fix_date(void);
+
+#endif //GUARD_RTC_H