Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
507 kaklik 1
#include "integer.h"
2
#include "rtc.c"
3
 
4
typedef struct {
5
	WORD	year;
6
	BYTE	month;
7
	BYTE	mday;
8
	BYTE	hour;
9
	BYTE	min;
10
	BYTE	sec;
11
} RTC;
12
 
13
BOOL rtc_init (void);						/* Initialize RTC */
14
BOOL rtc_gettime (RTC*);					/* Get time */
15
BOOL rtc_settime (const RTC*);				/* Set time */
16
BOOL rtc_write (UINT, UINT, const void*);	/* Write RTC regs */
17
BOOL rtc_read (UINT, UINT, void*);			/* Read RTC regs */
18