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:
1:15706d15d123
Parent:
0:fb42c5acf810
Child:
2:bebcf53b72dc
diff -r fb42c5acf810 -r 15706d15d123 mmSPI.h
--- a/mmSPI.h	Wed Aug 14 05:34:26 2013 +0000
+++ b/mmSPI.h	Wed Aug 14 10:09:58 2013 +0000
@@ -3,8 +3,15 @@
     class     : external SPI interface
     directory : mmSPI
     file      : mmSPI.h
+----description---------------------------------//------------------------------    
+----notes---------------------------------------//------------------------------ 
+    1. the SPI interface pins are routed to the zigbee header.
 ------------------------------------------------//----------------------------*/
     #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.
 /*----------------------------------------------//------------------------------  
 ------------------------------------------------//----------------------------*/
 //==============================================//==============================
@@ -13,6 +20,7 @@
       public:
              mmSPI();                           // constructor.
             ~mmSPI();                           // destructor.
+        char transceive_byte(char);             // byte transceive.
       private:
     };
 //----------------------------------------------//------------------------------
\ No newline at end of file