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:
27:fb63c8b70bc2
Parent:
26:26a8f31a31b8
Child:
28:80b46485fa1d
Child:
29:4ed71dfee7d8
--- a/mmSPI.cpp	Wed Aug 21 16:59:29 2013 +0000
+++ b/mmSPI.cpp	Sun Aug 25 05:16:58 2013 +0000
@@ -177,14 +177,14 @@
       write_register(0x02,cHData);              // R2 <- high-data.
       write_register(0x01,cLdata);              // R1 <- low-data.
   
-      pcSend[7] = 0x00;                         // write-enable high.
-      pcSend[1] = 0x02;
-      pcSend[0] = 0x00;
+      pcSend[7] = 0x02;                         // mbed sends command.
+      pcSend[1] = 0x02;                         // write-enable high.
+      pcSend[0] = 0x00;                         // remainder of instruction.
       transceive_vector();
       
-      pcSend[7] = 0x00;                         // write-enable low.
-      pcSend[1] = 0x00;
-      pcSend[0] = 0x00;
+      pcSend[7] = 0x02;                         // mbed sends command.
+      pcSend[1] = 0x00;                         // write-enable low.
+      pcSend[0] = 0x00;                         // remainder of instruction.
       transceive_vector();   
                            
       clear_transmit_vector();                  // clear transmit vector.