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.OARcorp.com/rtems/license.html. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | |
---|
17 | #ifndef TOD_H |
---|
18 | #define TOD_H |
---|
19 | |
---|
20 | #ifdef __cplusplus |
---|
21 | extern "C" { |
---|
22 | #endif |
---|
23 | |
---|
24 | extern void setRealTimeToRTEMS(); |
---|
25 | /* Read real time from RTC and set it to RTEMS' clock manager */ |
---|
26 | |
---|
27 | extern void setRealTimeFromRTEMS(); |
---|
28 | /* Read time from RTEMS' clock manager and set it to RTC */ |
---|
29 | |
---|
30 | extern int checkRealTime(); |
---|
31 | /* Return the difference between RTC and RTEMS' clock manager time in minutes. |
---|
32 | If the difference is greater than 1 day, this returns 9999. */ |
---|
33 | |
---|
34 | #ifdef __cplusplus |
---|
35 | } |
---|
36 | #endif |
---|
37 | |
---|
38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.