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
Diff: mmSPI.cpp
- Revision:
- 11:17207edac925
- Parent:
- 9:0551307e3b15
- Child:
- 12:a1b7ce9c1d64
diff -r 0551307e3b15 -r 17207edac925 mmSPI.cpp --- a/mmSPI.cpp Sat Aug 17 18:50:54 2013 +0000 +++ b/mmSPI.cpp Sat Aug 17 22:05:33 2013 +0000 @@ -79,11 +79,12 @@ // MSB out/in first. void mmSPI::test_toggle_cpu_clock(void) { + DigitalOut led0(LED4); while (1) { - *pCPUclk = 1; + *pCPUclk = 1; led0 = 1; wait(1.0); - *pCPUclk = 0; + *pCPUclk = 0; led0 = 0; wait(1.0); } }