repo.or.cz
/
rofl0r-gnuboy.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
configure.ac: prevent -lao, -lXext to be linked to all binaries
[rofl0r-gnuboy.git]
/
rtc.h
blob
15151526629435753cb7cc08e87fda0a2d98605a
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
#include
"defs.h"
20
21
void
rtc_latch
(
byte b
);
22
void
rtc_write
(
byte b
);
23
void
rtc_tick
();
24
25
#include <stdio.h>
26
void
rtc_save_internal
(
FILE
*
f
);
27
void
rtc_load_internal
(
FILE
*
f
);
28
29
#endif
30
31
32