Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:d57a982ac59a, committed 2010-03-11
- 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 |
diff -r 000000000000 -r d57a982ac59a main.cpp
--- /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;
+ }
+}
diff -r 000000000000 -r d57a982ac59a mbed.bld --- /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