source: rtems/c/src/lib/libbsp/shared/tod.h @ 91af3e4

4.104.114.84.95
Last change on this file since 91af3e4 was 3fdde4ce, checked in by Joel Sherrill <joel.sherrill@…>, on 07/30/98 at 16:05:14

Made tod.h shared

  • Property mode set to 100644
File size: 866 bytes
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
21extern "C" {
22#endif
23
24extern void setRealTimeToRTEMS();
25/* Read real time from RTC and set it to RTEMS' clock manager */
26
27extern void setRealTimeFromRTEMS();
28/* Read time from RTEMS' clock manager and set it to RTC */
29
30extern 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.