serial communication @ 921600bps - Working fine on hyperterminal as well as bray's

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Rahul
Date:
Thu Mar 11 03:31:42 2010 +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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Mar 11 03:31:42 2010 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+Serial pc(USBTX, USBRX);
+Timer t;
+DigitalOut led1(LED1);
+int main() 
+{
+    pc.baud(921600);
+    pc.format(8,Serial::None,1);
+    while(1)
+    {
+    t.start();
+    pc.printf("Hello World! @921.600kbps\n",1285);
+    t.stop();
+    pc.printf("The time taken was %f seconds\n", t.read());
+    t.reset();
+    wait(1.0);
+    led1 = !led1;
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Mar 11 03:31:42 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/49a220cc26e0