USBSerial echo test program

Dependencies:   USBDevice mbed

Files at this revision

API Documentation at this revision

Comitter:
sena
Date:
Mon Jun 02 08:13:39 2014 +0000
Parent:
0:e203d163c8f6
Commit message:
USBSerial echo test program

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e203d163c8f6 -r 38bc94601712 main.cpp
--- a/main.cpp	Mon Jun 02 07:27:26 2014 +0000
+++ b/main.cpp	Mon Jun 02 08:13:39 2014 +0000
@@ -10,7 +10,7 @@
     while(1)
     {
         serial.scanf("%s", buf);
-        serial.printf("USBSerial: %s\r\n", buf);
-        pc.printf("UARTrecv: %s\r\n", buf);
+        serial.printf("USBSerial: %s\r\n", buf); // USBport
+        pc.printf("UARTrecv: %s\r\n", buf);      // UARTport
     }
 }
\ No newline at end of file