4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * Real Time Clock (MK48T08) for RTEMS on Score603e |
---|
3 | * |
---|
4 | * Based on MVME162 TOD by: |
---|
5 | * COPYRIGHT (C) 1997 |
---|
6 | * by Katsutoshi Shibuya - BU Denken Co.,Ltd. - Sapporo - JAPAN |
---|
7 | * ALL RIGHTS RESERVED |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.com/license/LICENSE. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef TOD_H |
---|
17 | #define TOD_H |
---|
18 | |
---|
19 | #ifdef __cplusplus |
---|
20 | extern "C" { |
---|
21 | #endif |
---|
22 | |
---|
23 | /* |
---|
24 | * Set the RTC. |
---|
25 | */ |
---|
26 | |
---|
27 | int setRealTime( |
---|
28 | rtems_time_of_day *tod |
---|
29 | ); |
---|
30 | |
---|
31 | /* |
---|
32 | * Get the time from the RTC. |
---|
33 | */ |
---|
34 | |
---|
35 | void getRealTime( |
---|
36 | rtems_time_of_day *tod |
---|
37 | ); |
---|
38 | |
---|
39 | /* |
---|
40 | * Read real time from RTC and set it to RTEMS' clock manager |
---|
41 | */ |
---|
42 | |
---|
43 | void setRealTimeToRTEMS(); |
---|
44 | |
---|
45 | /* |
---|
46 | * Read time from RTEMS' clock manager and set it to RTC |
---|
47 | */ |
---|
48 | |
---|
49 | void setRealTimeFromRTEMS(); |
---|
50 | |
---|
51 | /* |
---|
52 | * Return the difference between RTC and RTEMS' clock manager time in minutes. |
---|
53 | * If the difference is greater than 1 day, this returns 9999. |
---|
54 | */ |
---|
55 | |
---|
56 | int checkRealTime(); |
---|
57 | |
---|
58 | #ifdef __cplusplus |
---|
59 | } |
---|
60 | #endif |
---|
61 | |
---|
62 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.