This is an involuntary fork, created because the repository would not update mmSPI. SPI library used to communicate with an altera development board attached to four zigbee-header pins.

Dependents:   Embedded_RTOS_Project

Fork of mmSPI by Mike Moore

Revision:
3:de99451ab3c0
Parent:
2:bebcf53b72dc
Child:
4:aa1fe8707bef
--- a/mmSPI.h	Wed Aug 14 10:30:30 2013 +0000
+++ b/mmSPI.h	Wed Aug 14 10:45:33 2013 +0000
@@ -11,14 +11,12 @@
 ------------------------------------------------//----------------------------*/
     #include "mbed.h"                           // standard mbed.org class.
 //---defines------------------------------------//------------------------------
-    #define MOSI p9                             // SPI interface pin.
-    #define MISO p10                            // SPI interface pin.
-    #define SCLK p30                            // SPI interface pin.
+    #define mmSPI_MOSI p9                       // SPI interface pin.
+    #define mmSPI_MISO p10                      // SPI interface pin.
+    #define mmSPI_SCLK p30                      // SPI interface pin.
     
     
-//DigitalOut xbee_nrst(p30);
-//DigitalOut xbee_tx(p9);
-//DigitalOut xbee_rx(p10);
+
 /*----------------------------------------------//------------------------------  
 ------------------------------------------------//----------------------------*/
 
@@ -28,10 +26,14 @@
       public:
              mmSPI();                           // constructor.
             ~mmSPI();                           // destructor.
+        void allocations();                     // object allocations.
         char transceive_byte(char);             // byte transceive.
       private:
       
-      DigitalOut * pSCLK;
+      DigitalOut * pMOSI;                       // SPI pin.
+      DigitalOut * pMISO;                       // SPI pin.
+      DigitalOut * pSCLK;                       // SPI pin.
+      
       
 
     };