summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/rtc/icm7170.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-29 00:02:11 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-29 00:02:11 +0000
commit1177cda0d33e326e6fa7d049c6138c1d5e83d87b (patch)
tree8e381b43dae455d5697629b526a9b622c103a1ea /c/src/libchip/rtc/icm7170.h
parentNew files. (diff)
downloadrtems-1177cda0d33e326e6fa7d049c6138c1d5e83d87b.tar.bz2
New files for Harris Semiconductor ICM7170.
Diffstat (limited to '')
-rw-r--r--c/src/libchip/rtc/icm7170.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/c/src/libchip/rtc/icm7170.h b/c/src/libchip/rtc/icm7170.h
new file mode 100644
index 0000000000..0e488b988c
--- /dev/null
+++ b/c/src/libchip/rtc/icm7170.h
@@ -0,0 +1,52 @@
+/*
+ * This file contains the definitions for the following real-time clocks:
+ *
+ * + Harris Semiconduction ICM7170
+ *
+ * COPYRIGHT (c) 1989-1998.
+ * On-Line Applications Research Corporation (OAR).
+ * Copyright assigned to U.S. Government, 1994.
+ *
+ * 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.
+ *
+ * $Id$
+ */
+
+#ifndef __LIBCHIP_ICM7170_h
+#define __LIBCHIP_ICM7170_h
+
+/*
+ * Register indices
+ */
+
+#define ICM7170_CONTROL 0x11
+
+
+#define ICM7170_COUNTER_HUNDREDTHS 0x00
+#define ICM7170_HOUR 0x01
+#define ICM7170_MINUTE 0x02
+#define ICM7170_SECOND 0x03
+#define ICM7170_MONTH 0x04
+#define ICM7170_DATE 0x05
+#define ICM7170_YEAR 0x06
+#define ICM7170_DAY_OF_WEEK 0x07
+
+/*
+ * Configuration information in the parameters field
+ */
+
+#define ICM7170_AT_32_KHZ 0x00
+#define ICM7170_AT_1_MHZ 0x01
+#define ICM7170_AT_2_MHZ 0x02
+#define ICM7170_AT_4_MHZ 0x03
+
+/*
+ * Driver function table
+ */
+
+extern rtc_fns icm7170_fns;
+
+#endif
+/* end of include file */