1 | /* |
---|
2 | * This file contains the definitions for the following real-time clocks: |
---|
3 | * |
---|
4 | * + Harris Semiconduction ICM7170 |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989-1998. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * Copyright assigned to U.S. Government, 1994. |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.OARcorp.com/rtems/license.html. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | #ifndef __LIBCHIP_ICM7170_h |
---|
18 | #define __LIBCHIP_ICM7170_h |
---|
19 | |
---|
20 | /* |
---|
21 | * Register indices |
---|
22 | */ |
---|
23 | |
---|
24 | #define ICM7170_CONTROL 0x11 |
---|
25 | |
---|
26 | |
---|
27 | #define ICM7170_COUNTER_HUNDREDTHS 0x00 |
---|
28 | #define ICM7170_HOUR 0x01 |
---|
29 | #define ICM7170_MINUTE 0x02 |
---|
30 | #define ICM7170_SECOND 0x03 |
---|
31 | #define ICM7170_MONTH 0x04 |
---|
32 | #define ICM7170_DATE 0x05 |
---|
33 | #define ICM7170_YEAR 0x06 |
---|
34 | #define ICM7170_DAY_OF_WEEK 0x07 |
---|
35 | |
---|
36 | /* |
---|
37 | * Configuration information in the parameters field |
---|
38 | */ |
---|
39 | |
---|
40 | #define ICM7170_AT_32_KHZ 0x00 |
---|
41 | #define ICM7170_AT_1_MHZ 0x01 |
---|
42 | #define ICM7170_AT_2_MHZ 0x02 |
---|
43 | #define ICM7170_AT_4_MHZ 0x03 |
---|
44 | |
---|
45 | /* |
---|
46 | * Driver function table |
---|
47 | */ |
---|
48 | |
---|
49 | extern rtc_fns icm7170_fns; |
---|
50 | |
---|
51 | #endif |
---|
52 | /* end of include file */ |
---|