diff options
Diffstat (limited to 'apps/plugins/rockboy/rtc-gb.h')
-rw-r--r-- | apps/plugins/rockboy/rtc-gb.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/rtc-gb.h b/apps/plugins/rockboy/rtc-gb.h new file mode 100644 index 0000000000..39c6145161 --- /dev/null +++ b/apps/plugins/rockboy/rtc-gb.h | |||
@@ -0,0 +1,25 @@ | |||
1 | |||
2 | |||
3 | #ifndef __RTC_GB_H__ | ||
4 | #define __RTC_GB_H__ | ||
5 | |||
6 | |||
7 | struct rtc | ||
8 | { | ||
9 | int batt; | ||
10 | int sel; | ||
11 | int latch; | ||
12 | int d, h, m, s, t; | ||
13 | int stop, carry; | ||
14 | byte regs[8]; | ||
15 | }; | ||
16 | |||
17 | extern struct rtc rtc; | ||
18 | |||
19 | void rtc_latch(byte b); | ||
20 | void rtc_write(byte b); | ||
21 | void rtc_tick(void); | ||
22 | void rtc_save_internal(int fd); | ||
23 | void rtc_load_internal(int fd); | ||
24 | |||
25 | #endif | ||