Test program to show cpu running at 84MHz
Dependencies: ST_401_84MHZ mbed
Speed up the CPU to 84MHz to get a SPI clock of 20MHz.
Diff: main.cpp
- Revision:
- 0:21b36798fd00
- Child:
- 1:aa61af968c8a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Feb 21 12:38:59 2014 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +SPI device(SPI_MOSI, SPI_MISO, SPI_SCK); + +int main() { + int i = 0; + while(1) { + device.write(0x55); + device.write(i++); + device.write(0xE0); + wait_us(50); + } +} + \ No newline at end of file