Line No. | Rev | Author | Line |
---|---|---|---|
1 | 6 | kaklik | /*! \file rtc.h \brief real-time clock function library. */ |
2 | //***************************************************************************** |
||
3 | // |
||
4 | // File Name : 'rtc.h' |
||
5 | // Title : real-time clock function library |
||
6 | // Author : Pascal Stang - Copyright (C) 2002 |
||
7 | // Created : 5/10/2002 |
||
8 | // Revised : 7/12/2002 |
||
9 | // Version : 0.5 |
||
10 | // Target MCU : Atmel AVR Series |
||
11 | // Editor Tabs : 4 |
||
12 | // |
||
13 | // NOTE: This code is currently below version 1.0, and therefore is considered |
||
14 | // to be lacking in some functionality or documentation, or may not be fully |
||
15 | // tested. Nonetheless, you can expect most functions to work. |
||
16 | // |
||
17 | // This code is distributed under the GNU Public License |
||
18 | // which can be found at http://www.gnu.org/licenses/gpl.txt |
||
19 | // |
||
20 | //***************************************************************************** |
||
21 | |||
22 | #ifndef RTC_H |
||
23 | #define RTC_H |
||
24 | |||
25 | #include "global.h" |
||
26 | |||
27 | // constants/macros/typdefs |
||
28 | typedef struct struct_RtcTime |
||
29 | { |
||
30 | // hardware |
||
31 | u08 tics; |
||
32 | u16 totaltics; |
||
33 | // time of day |
||
34 | u08 hours; |
||
35 | u08 minutes; |
||
36 | u08 seconds; |
||
37 | // date |
||
38 | u08 day; |
||
39 | u08 month; |
||
40 | u16 year; |
||
41 | } RtcTimeType; |
||
42 | |||
43 | |||
44 | // functions |
||
45 | void rtcInit(void); |
||
46 | void rtcService(void); |
||
47 | RtcTimeType* rtcGetTime(void); |
||
48 | |||
49 | #endif |
Powered by WebSVN v2.8.3