Latest mbed source. 2015-10-19
main.cpp
- Committer:
- mfiore
- Date:
- 2015-02-12
- Revision:
- 0:18ea5db32501
- Child:
- 1:8944a6b71daf
File content as of revision 0:18ea5db32501:
#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()); } }