su su
/
mbed_RxIrq
LPC1114受信割り込みテスト
main.cpp
- Committer:
- suu____
- Date:
- 2015-05-04
- Revision:
- 0:5556c497ecca
- Child:
- 1:69b097d9ec91
File content as of revision 0:5556c497ecca:
#include "mbed.h" Serial pc(dp16,dp15); DigitalOut led1(LED1); void loopback(){ pc.putc(pc.getc()); } int main() { pc.baud(115200); pc.attach(loopback,Serial::RxIrq); while(1) { led1 = 1; wait(1); led1 = 0; wait(1); } }