ferney alberto beltran molina
/
UART_IRQ
EJEMPLO 4
Revision 4:2b238baaf241, committed 2017-11-16
- Comitter:
- fabeltranm
- Date:
- Thu Nov 16 00:37:08 2017 +0000
- Parent:
- 3:6d59b6f1cac0
- Commit message:
- add BT
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Nov 16 00:35:08 2017 +0000 +++ b/main.cpp Thu Nov 16 00:37:08 2017 +0000 @@ -18,8 +18,8 @@ deviceBT.baud(9600); output1=0; // Setup a serial interrupt function to receive data - device.attach(&Rx_interruptBT, Serial::RxIrq); - deviceBT.attach(&Rx_interrupt, Serial::RxIrq); + device.attach(&Rx_interrupt, Serial::RxIrq); + deviceBT.attach(&Rx_interruptBT, Serial::RxIrq); while(1) { wait_ms(2000);