none

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
trisjph
Date:
Mon Nov 18 11:38:55 2013 +0000
Commit message:
initial commit

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 e7c0118a7fc9 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Nov 18 11:38:55 2013 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+Serial data(PTD3,PTD2);
+Serial pc(USBTX,USBRX);
+
+int main() {
+    data.baud(115200);
+    pc.baud(115200);
+    
+        while(1) {
+        if(pc.readable()) {
+            data.putc(pc.getc());
+        }
+        if(data.readable()) {
+            pc.putc(data.getc());
+        }
+    }
+}
diff -r 000000000000 -r e7c0118a7fc9 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Nov 18 11:38:55 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file