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

4.115
Last change on this file since bb2b825 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1021 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
14#ifndef TOD_H
15#define TOD_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21/*
22 *  Set the RTC.
23 */
24
25int setRealTime(
26  const rtems_time_of_day *tod
27);
28
29/*
30 *  Get the time from the RTC.
31 */
32
33void getRealTime(
34  rtems_time_of_day *tod
35);
36
37/*
38 *  Read real time from RTC and set it to RTEMS' clock manager
39 */
40
41void setRealTimeToRTEMS(void);
42
43/*
44 *  Read time from RTEMS' clock manager and set it to RTC
45 */
46
47void setRealTimeFromRTEMS(void);
48
49/*
50 *  Return the difference between RTC and RTEMS' clock manager time in minutes.
51 *  If the difference is greater than 1 day, this returns 9999.
52 */
53
54int checkRealTime(void);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif
Note: See TracBrowser for help on using the repository browser.