Error in Serial Printing

Dependencies:   mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
adaveiitm
Date:
Wed Jun 25 06:57:18 2014 +0000
Commit message:
Hello World

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib 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	Wed Jun 25 06:57:18 2014 +0000
@@ -0,0 +1,11 @@
+/*Code to print simple Hello World statement with a timestamp */
+#include "mbed.h"
+Serial pc(USBTX,USBRX);          //Include serial interface with pc
+Timer t ;                     //Function to include the timestamp
+int main(){
+    //wait(0.1);                
+    t.start();
+    pc.printf("Hello World-----%f\n\r",t.read());   
+    fflush(stdout);        //In order to flush out buffer
+    t.stop();
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-rtos.lib	Wed Jun 25 06:57:18 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed-rtos/#3761f69dbbb2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jun 25 06:57:18 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/0b3ab51c8877
\ No newline at end of file