diff options
Diffstat (limited to 'apps/plugins/rockboy/rtc.h')
-rw-r--r-- | apps/plugins/rockboy/rtc.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/rtc.h b/apps/plugins/rockboy/rtc.h new file mode 100644 index 0000000000..2665cd81c3 --- /dev/null +++ b/apps/plugins/rockboy/rtc.h | |||
@@ -0,0 +1,25 @@ | |||
1 | |||
2 | |||
3 | #ifndef __RTC_H__ | ||
4 | #define __RTC_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 | ||