sw SPI interface specific for the SOLID Slow control beta!!

Dependents:   sscm SPItest sscm

Fork of SWSPI by Dave Van Wagner

Revision:
1:02327a96a5e2
Parent:
0:6a500a08c7fd
Child:
2:598d0028d5d2
--- a/SWSPI.h	Tue Feb 04 06:54:01 2014 +0000
+++ b/SWSPI.h	Tue Sep 23 08:25:01 2014 +0000
@@ -1,3 +1,7 @@
+
+#ifndef SWSPI_H
+#define SWSPI_H
+
 /* SWSPI, Software SPI library
  * Copyright (c) 2012-2014, David R. Van Wagner, http://techwithdave.blogspot.com
  *
@@ -20,8 +24,6 @@
  * THE SOFTWARE.
  */
 
-#ifndef SWSPI_H
-#define SWSPI_H
 
 /** A software implemented SPI that can use any digital pins
  *
@@ -46,6 +48,9 @@
  * }
  * @endcode
  */
+ #include "mbed.h"
+ 
+ 
 class SWSPI
 {
 private:
@@ -66,7 +71,7 @@
      *  @param miso_pin
      *  @param sclk_pin
      */
-    SWSPI(PinName mosi_pin, PinName miso_pin, PinName sclk_pin);
+    SWSPI(DigitalOut *mosi_pin, DigitalIn *miso_pin, DigitalOut *sclk_pin);
     
     /** Destructor */
     ~SWSPI();