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.

Files at this revision

API Documentation at this revision

Comitter:
bcostm
Date:
Fri Feb 21 12:38:59 2014 +0000
Child:
1:aa61af968c8a
Commit message:
Initial version.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Feb 21 12:38:59 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/ed8466a608b4
\ No newline at end of file