--- /dev/null
+/*
+ * 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