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

Revision:
1:15706d15d123
Parent:
0:fb42c5acf810
Child:
2:bebcf53b72dc
--- 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