Hotboards MX
/
Bridge
SERIAL BRIDGE
Revision 0:0669f963d466, committed 2016-06-15
- 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 |
--- /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()); + } + + } +}
--- /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