SERIAL BRIDGE

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Hotboards
Date:
Wed Jun 15 18:47:42 2016 +0000
Commit message:
FIRS RELEASE

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 0669f963d466 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jun 15 18:47:42 2016 +0000
@@ -0,0 +1,25 @@
+
+#include "mbed.h"
+Serial device(PC_10,PC_11);   
+Serial pc(USBTX,USBRX);     
+
+int main() 
+{   
+    device.baud(9600);      
+    pc.baud(9600);
+    
+    while(1) 
+    {
+      
+      if(device.readable())        
+      {
+         pc.putc(device.getc());   
+      }
+     
+      if(pc.readable())          
+      {
+        device.putc(pc.getc());    
+      }
+      
+    }
+}
diff -r 000000000000 -r 0669f963d466 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jun 15 18:47:42 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7c328cabac7e
\ No newline at end of file