v0.1 board believed to be reading Vbat, Pressure, and X/Y/Z correctly now,
[fw/openalt] / rtc / rtc.h
1 #ifndef _RTC_H_
2 #define _RTC_H_
3
4 #include <time.h>
5
6 //
7 //  Define this for using non-vectored IRQs.  Undef it if a regular vectored
8 //  IRQ is preferred.
9 //
10 #define RTC_NONVECTOREDIRQ
11
12 //
13 //
14 //
15 void rtcInit (void);
16 time_t rtcGetEpochSeconds (unsigned int *milliseconds);
17 void rtcSetEpochSeconds (time_t now);
18 int rtcSetAlarm (struct tm *tm);
19 struct tm *rtcGetAlarmTm (struct tm *tm);
20 time_t rtcGetAlarmEpochSeconds (void);
21 int rtcPeriodicAlarm (int mode);
22
23 #endif