summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/rtc-gb.h
blob: 39c614516189f71fe6146caec7d16a018bdc2d12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25


#ifndef __RTC_GB_H__
#define __RTC_GB_H__


struct rtc
{
	int batt;
	int sel;
	int latch;
	int d, h, m, s, t;
	int stop, carry;
	byte regs[8];
};

extern struct rtc rtc;

void rtc_latch(byte b);
void rtc_write(byte b);
void rtc_tick(void);
void rtc_save_internal(int fd);
void rtc_load_internal(int fd);
	
#endif