summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/rtc-gb.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/rtc-gb.h')
-rw-r--r--apps/plugins/rockboy/rtc-gb.h25
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
7struct 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
17extern struct rtc rtc;
18
19void rtc_latch(byte b);
20void rtc_write(byte b);
21void rtc_tick(void);
22void rtc_save_internal(int fd);
23void rtc_load_internal(int fd);
24
25#endif