summaryrefslogtreecommitdiffstats
path: root/bsps/powerpc/mvme5500/include/bsp/GT64260TWSI.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/powerpc/mvme5500/include/bsp/GT64260TWSI.h')
-rw-r--r--bsps/powerpc/mvme5500/include/bsp/GT64260TWSI.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/bsps/powerpc/mvme5500/include/bsp/GT64260TWSI.h b/bsps/powerpc/mvme5500/include/bsp/GT64260TWSI.h
new file mode 100644
index 0000000000..1377e6f607
--- /dev/null
+++ b/bsps/powerpc/mvme5500/include/bsp/GT64260TWSI.h
@@ -0,0 +1,20 @@
+#ifndef __GT64260TWSI_h
+#define __GT64260TWSI_h
+
+/* GT64260TWSI.h - header for the GT64260 Two-Wire Serial Interface */
+
+/* TWSI Control Register Bits */
+#define TWSI_ACK 4
+#define TWSI_INTFLG 8
+#define TWSI_STOP 0x10
+#define TWSI_START 0x20
+#define TWSI_TWSIEN 0x40
+#define TWSI_INTEN 0x80
+
+void GT64260TWSIinit(void);
+int GT64260TWSIstart(void);
+int GT64260TWSIwrite(unsigned char Data);
+int GT64260TWSIread(unsigned char *, int lastByte);
+int GT64260TWSIstop(void);
+
+#endif