OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [powerpc/] [ppcn_60x/] [include/] [tod.h] - Blame information for rev 594

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 * Real Time Clock (MK48T08) for RTEMS on PPCn_60x
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: tod.h,v 1.2 2001-09-27 12:00:50 chris Exp $
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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.