simple uart echo server

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
sillevl
Date:
Thu Sep 17 08:03:03 2015 +0000
Commit message:
initial project

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 Sep 17 08:03:03 2015 +0000
@@ -0,0 +1,13 @@
+
+#include "mbed.h"
+
+Serial pc(USBTX, USBRX);
+
+int main()
+{
+    pc.baud(115200);
+
+    while(1){
+        pc.putc(pc.getc());
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Sep 17 08:03:03 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa
\ No newline at end of file