code clean up!
[my-code/arm.git] / betty / spi.h
diff --git a/betty/spi.h b/betty/spi.h
new file mode 100644 (file)
index 0000000..c84a8cd
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * spi-h - spi header file
+ *
+ * author: hackbard@hackdaworld.org
+ *
+ */
+
+#ifndef SPI_H
+#define SPI_H
+
+#include "lpc2xxx.h"
+#include "types.h"
+
+/* defines */
+#define SPI_MASTER     (1<<0)
+#define SPI_SLAVE      (1<<1)
+
+/* function prototypes */
+void spi1_init(u8 width,u8 type,u8 div);
+void spi1_send(u16 data);
+
+#endif