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

4.104.114.84.95
Last change on this file since f05b2ac was f05b2ac, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/21/04 at 16:01:48

Remove duplicate white lines.

  • Property mode set to 100644
File size: 1015 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.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#ifndef TOD_H
17#define TOD_H
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/*
24 *  Set the RTC.
25 */
26
27int setRealTime(
28  rtems_time_of_day *tod
29);
30
31/*
32 *  Get the time from the RTC.
33 */
34
35void 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
43void setRealTimeToRTEMS();
44
45/*
46 *  Read time from RTEMS' clock manager and set it to RTC
47 */
48
49void 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
56int checkRealTime();
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif
Note: See TracBrowser for help on using the repository browser.