2005-03-02 23:49:38 +00:00
|
|
|
|
|
|
|
|
2005-07-03 14:05:12 +00:00
|
|
|
#ifndef __RTC_GB_H__
|
|
|
|
#define __RTC_GB_H__
|
2005-03-02 23:49:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
struct rtc
|
|
|
|
{
|
2007-02-06 21:41:08 +00:00
|
|
|
int batt;
|
|
|
|
int sel;
|
|
|
|
int latch;
|
|
|
|
int d, h, m, s, t;
|
|
|
|
int stop, carry;
|
|
|
|
byte regs[8];
|
2005-03-02 23:49:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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);
|
2007-02-06 21:41:08 +00:00
|
|
|
|
2005-03-02 23:49:38 +00:00
|
|
|
#endif
|