configure.ac: prevent -lao, -lXext to be linked to all binaries
[rofl0r-gnuboy.git] / rtc.h
blob15151526629435753cb7cc08e87fda0a2d98605a
3 #ifndef __RTC_H__
4 #define __RTC_H__
7 struct rtc
9 int batt;
10 int sel;
11 int latch;
12 int d, h, m, s, t;
13 int stop, carry;
14 byte regs[8];
17 extern struct rtc rtc;
19 #include "defs.h"
21 void rtc_latch(byte b);
22 void rtc_write(byte b);
23 void rtc_tick();
25 #include <stdio.h>
26 void rtc_save_internal(FILE *f);
27 void rtc_load_internal(FILE *f);
29 #endif