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:
30:331c7c7d8bc1
Parent:
29:4ed71dfee7d8
Child:
31:ea7b25e494b5
--- a/mmSPI.cpp	Sun Aug 25 06:05:30 2013 +0000
+++ b/mmSPI.cpp	Sun Aug 25 06:30:47 2013 +0000
@@ -224,6 +224,16 @@
       return udMemoryContent;                   // return the memory word.
     }
 //----------------------------------------------//------------------------------
+    void mmSPI::step(void)                      // step the CPU.
+    {      
+      *pCPUclk = 1;                             // pulse the CPU clock.
+      wait(fSPIquarterP); 
+      wait(fSPIquarterP);     
+      *pCPUclk = 0;  
+      wait(fSPIquarterP); 
+      wait(fSPIquarterP); 
+    }
+//----------------------------------------------//------------------------------
     void mmSPI::clear_transmit_vector(void)     // fill transmit buffer with 0.
     {
       int dLoop;