Fork of Smoothie to port to mbed non-LPC targets.

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

Revision:
2:1df0b61d3b5a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libs/spi_hal.h	Fri Feb 28 18:52:52 2014 -0800
@@ -0,0 +1,19 @@
+#ifndef _SPI_HAL_H
+#define _SPI_HAL_H
+
+#include "lpc17xx_ssp.h"
+
+#ifdef __LPC17XX__
+#include <PinNames.h>
+    typedef struct {
+        uint8_t port;
+        uint8_t pin;
+    } Pin_t;
+
+    typedef LPC_SSP_TypeDef SPI_REG;
+    typedef LPC_GPDMACH_TypeDef DMA_REG;
+
+    #define N_SPI_INTERRUPT_ROUTINES 2
+#endif
+
+#endif /* _SPI_HAL_H */