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

Revision:
9:0551307e3b15
Parent:
8:e2d8bbc3e659
Child:
10:8c0b8722cfcb
Child:
11:17207edac925
--- a/mmSPI.cpp	Sat Aug 17 18:43:02 2013 +0000
+++ b/mmSPI.cpp	Sat Aug 17 18:50:54 2013 +0000
@@ -74,6 +74,20 @@
       transceive_byte(&(cReceive[cLoop02]), &(cSend[cLoop02]));
     }
 //----------------------------------------------//------------------------------
+                                                // transceive a character array.
+                                                // limit is 256 characters.
+                                                // MSB out/in first.
+    void mmSPI::test_toggle_cpu_clock(void)
+    {    
+      while (1)
+      {
+        *pCPUclk = 1;
+        wait(1.0);
+        *pCPUclk = 0;
+        wait(1.0);
+      }
+    }
+//----------------------------------------------//------------------------------