summaryrefslogtreecommitdiff
path: root/arm9/lib/include/RTC_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm9/lib/include/RTC_api.h')
-rw-r--r--arm9/lib/include/RTC_api.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/arm9/lib/include/RTC_api.h b/arm9/lib/include/RTC_api.h
new file mode 100644
index 00000000..d2577cdf
--- /dev/null
+++ b/arm9/lib/include/RTC_api.h
@@ -0,0 +1,34 @@
+#ifndef NITRO_RTC_API_H_
+#define NITRO_RTC_API_H_
+
+typedef enum RTCWeek
+{
+ RTC_WEEK_SUNDAY = 0,
+ RTC_WEEK_MONDAY,
+ RTC_WEEK_TUESDAY,
+ RTC_WEEK_WEDNESDAY,
+ RTC_WEEK_THURSDAY,
+ RTC_WEEK_FRIDAY,
+ RTC_WEEK_SATURDAY,
+ RTC_WEEK_MAX
+}
+ RTCWeek;
+
+typedef struct RTCDate
+{
+ u32 year;
+ u32 month;
+ u32 day;
+ RTCWeek week;
+}
+ RTCDate;
+
+typedef struct RTCTime
+{
+ u32 hour;
+ u32 minute;
+ u32 second;
+}
+ RTCTime;
+
+#endif //NITRO_RTC_API_H_