Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 0:18ea5db32501
- Child:
- 1:8944a6b71daf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Feb 12 13:38:55 2015 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" + +int main() { + // USB debug port + Serial usb(USBTX, USBRX); + // external serial port + Serial ext(PA_2, PA_3); + + usb.baud(230400); + ext.baud(230400); + + while (true) { + if (usb.readable()) + ext.putc(usb.getc()); + if (ext.readable()) + usb.putc(ext.getc()); + } +} \ No newline at end of file