Latest mbed source. 2015-10-19
main.cpp
- Committer:
- mfiore
- Date:
- 2015-04-29
- Revision:
- 1:8944a6b71daf
- Parent:
- 0:18ea5db32501
File content as of revision 1:8944a6b71daf:
#include "mbed.h" int main() { // USB debug port Serial usb(USBTX, USBRX); // external serial port Serial ext(SERIAL_TX, SERIAL_RX); usb.baud(115200); ext.baud(115200); while (true) { if (usb.readable()) ext.putc(usb.getc()); if (ext.readable()) usb.putc(ext.getc()); } }