SPI library used to communicate with an altera development board attached to four zigbee-header pins.

Revision:
8:e2d8bbc3e659
Parent:
7:b3e8b537d5c2
Child:
9:0551307e3b15
--- a/mmSPI.h	Wed Aug 14 15:34:10 2013 +0000
+++ b/mmSPI.h	Sat Aug 17 18:43:02 2013 +0000
@@ -11,12 +11,10 @@
 ------------------------------------------------//----------------------------*/
     #include "mbed.h"                           // standard mbed.org class.
 //---defines------------------------------------//------------------------------
-    #define mmSPI_MOSI p9                       // SPI interface pin.
-    #define mmSPI_MISO p10                      // SPI interface pin.
-    #define mmSPI_SCLK p30                      // SPI interface pin.
-    
-    
-
+    #define mmSPI_MOSI p29                      // SPI interface pin.
+    #define mmSPI_MISO p30                      // SPI interface pin.
+    #define mmSPI_SCLK p9                       // SPI interface pin.
+    #define mmCPU_CLK  p10                      // soft CPU system clock.
 /*----------------------------------------------//------------------------------  
 ------------------------------------------------//----------------------------*/
 
@@ -39,6 +37,7 @@
       DigitalOut * pMOSI;                       // SPI pin.
       DigitalOut * pMISO;                       // SPI pin.
       DigitalOut * pSCLK;                       // SPI pin.
+      DigitalOut * pCPUclk;                     // soft cpu clock.
       float        fSPIfreq;                    // SPI clock   frequency.
       float        fSPIquarterP;                // SPI quarter period.
       char         cLoop01;                     // loop index.