diff options
author | Revo <projectrevotpp@hotmail.com> | 2020-08-25 10:58:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-25 10:58:13 -0400 |
commit | 49e32814a3d7ba8a8a7e441a53d1a1c0ccd1f3fe (patch) | |
tree | d3b7dbd7bc8c129df02f80d9299cc546f47d0b3d /arm9/lib/include/RTC_api.h | |
parent | 7a6abfe3982d516b39a13a8fd934dbfe8211cfe6 (diff) | |
parent | b55789b64644420add50cf87715a1ab0ade16967 (diff) |
Merge pull request #267 from PikalaxALT/pikalax_work
sav_system_info; RTC_convert
Diffstat (limited to 'arm9/lib/include/RTC_api.h')
-rw-r--r-- | arm9/lib/include/RTC_api.h | 34 |
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_ |