summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/mvme162/include
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-10-23 18:48:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-10-23 18:48:35 +0000
commitcfefaa6e9eadbecd3d1d2e03df34b962e8db5a79 (patch)
treec8a907e7176f49f9780ad2545fe3fc5630b63b83 /c/src/lib/libbsp/m68k/mvme162/include
parentRemoved GEN68360_INIT. (diff)
downloadrtems-cfefaa6e9eadbecd3d1d2e03df34b962e8db5a79.tar.bz2
Added TOD driver from Katsutoshi Shibuya.
Diffstat (limited to 'c/src/lib/libbsp/m68k/mvme162/include')
-rw-r--r--c/src/lib/libbsp/m68k/mvme162/include/Makefile.in3
-rw-r--r--c/src/lib/libbsp/m68k/mvme162/include/tod.h42
2 files changed, 44 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme162/include/Makefile.in b/c/src/lib/libbsp/m68k/mvme162/include/Makefile.in
index 25f58d8d85..a74d3cf0f7 100644
--- a/c/src/lib/libbsp/m68k/mvme162/include/Makefile.in
+++ b/c/src/lib/libbsp/m68k/mvme162/include/Makefile.in
@@ -7,7 +7,8 @@ srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH=@srcdir@
-H_FILES = $(srcdir)/bsp.h $(srcdir)/coverhd.h $(srcdir)/page_table.h
+H_FILES = $(srcdir)/bsp.h $(srcdir)/coverhd.h $(srcdir)/page_table.h \
+ $(srcdir)/tod.h
#
# Equate files are for including from assembly preprocessed by
diff --git a/c/src/lib/libbsp/m68k/mvme162/include/tod.h b/c/src/lib/libbsp/m68k/mvme162/include/tod.h
new file mode 100644
index 0000000000..4839e39df2
--- /dev/null
+++ b/c/src/lib/libbsp/m68k/mvme162/include/tod.h
@@ -0,0 +1,42 @@
+/*
+ * Real Time Clock (MK48T08) for RTEMS on MVME162
+ *
+ * Author:
+ * COPYRIGHT (C) 1997
+ * by Katsutoshi Shibuya - BU Denken Co.,Ltd. - Sapporo - JAPAN
+ * ALL RIGHTS RESERVED
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.OARcorp.com/rtems/license.html.
+ *
+ * This material is a part of the MVME162 Board Support Package
+ * for the RTEMS executive. Its licensing policies are those of the
+ * RTEMS above.
+ *
+ * $Id$
+ */
+
+
+#ifndef TOD_H
+#define TOD_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern void setRealTimeToRTEMS();
+/* Read real time from RTC and set it to RTEMS' clock manager */
+
+extern void setRealTimeFromRTEMS();
+/* Read time from RTEMS' clock manager and set it to RTC */
+
+extern int checkRealTime();
+/* Return the difference between RTC and RTEMS' clock manager time in minutes.
+ If the difference is greater than 1 day, this returns 9999. */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif