Chris Styles
/
mbedISP
main.cpp
- Committer:
- chris
- Date:
- 2009-11-26
- Revision:
- 0:3ce7085022d1
File content as of revision 0:3ce7085022d1:
#include "mbed.h" DigitalOut led1(LED1); DigitalOut led2(LED2); Serial pc (USBTX,USBRX); Serial target (p28,p27); int main() { pc.baud(115200); target.baud(115200); while (1) { if (pc.readable()) { target.putc(pc.getc()); led1 = !led1; } if (target.readable()) { pc.putc(target.getc()); led2 = !led2; } } }