Simon Ford
/
SerialSpeedTest
Revision 0:cd298e564757, committed 2009-12-01
- Comitter:
- simon
- Date:
- Tue Dec 01 14:27:10 2009 +0000
- Commit message:
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 |
diff -r 000000000000 -r cd298e564757 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Dec 01 14:27:10 2009 +0000 @@ -0,0 +1,13 @@ +// display clock frequency at 921600 baud, sford + +#include "mbed.h" + +Serial pc(USBTX, USBRX); + +int main() { + pc.baud(921600); + pc.printf("SystemCoreClock = %d Hz\n", SystemCoreClock); + while(1) { + pc.putc(pc.getc() + 1); + } +}
diff -r 000000000000 -r cd298e564757 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Dec 01 14:27:10 2009 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/49a220cc26e0