source: rtems/c/src/lib/libbsp/bfin/shared/clock/tod.h @ 8d41236

4.104.114.84.95
Last change on this file since 8d41236 was 8d41236, checked in by Joel Sherrill <joel.sherrill@…>, on 10/23/06 at 19:38:12

2006-10-23 Joel Sherrill <joel@…>

  • bfin/ChangeLog, bfin/Makefile.am, bfin/acinclude.m4, bfin/configure.ac, bfin/eZKit533/.cvsignore, bfin/eZKit533/ChangeLog, bfin/eZKit533/Makefile.am, bfin/eZKit533/README, bfin/eZKit533/bsp_specs, bfin/eZKit533/configure, bfin/eZKit533/configure.ac, bfin/eZKit533/preinstall.am, bfin/eZKit533/times, bfin/eZKit533/console/console-io.c, bfin/eZKit533/include/.cvsignore, bfin/eZKit533/include/bsp.h, bfin/eZKit533/include/bspopts.h.in, bfin/eZKit533/include/coverhd.h, bfin/eZKit533/include/tm27.h, bfin/eZKit533/startup/bspstart.c, bfin/eZKit533/startup/linkcmds, bfin/shared/clock/clockdrv.c, bfin/shared/clock/rtc.c, bfin/shared/clock/tod.h, bfin/shared/console/console.c, bfin/shared/start/start.S, bfin/shared/timer/timer.c: New files.
  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*  tod.h
2 * 
3 *  Real Time Clock definitions for eZKit533.
4 *
5 *  Copyright (c) 2006 by Atos Automacao Industrial Ltda.
6 *             written by Alain Schaefer <alain.schaefer@easc.ch>
7 *                    and Antonio Giovanini <antonio@atos.com.br>
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
17#ifndef TOD_H
18#define TOD_H
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/*
25 *  Set the RTC.
26 */
27
28int setRealTime(
29  rtems_time_of_day *tod
30);
31
32/*
33 *  Get the time from the RTC.
34 */
35
36void getRealTime(
37  rtems_time_of_day *tod
38);
39
40/*
41 *  Read real time from RTC and set it to RTEMS' clock manager
42 */
43
44void setRealTimeToRTEMS();
45
46/*
47 *  Read time from RTEMS' clock manager and set it to RTC
48 */
49
50void setRealTimeFromRTEMS();
51
52/*
53 *  Return the difference between RTC and RTEMS' clock manager time in minutes.
54 *  If the difference is greater than 1 day, this returns 9999.
55 */
56
57int checkRealTime();
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif
Note: See TracBrowser for help on using the repository browser.