ferney alberto beltran molina
/
UART_IRQ
Diff: main.cpp
- Revision:
- 1:216bc483f4f3
- Parent:
- 0:3c37e1389d2a
- Child:
- 2:69eedc1d4f59
--- a/main.cpp Sat Oct 28 02:20:28 2017 +0000 +++ b/main.cpp Sat Oct 28 02:44:09 2017 +0000 @@ -25,10 +25,10 @@ // Interupt Routine to read in data from serial port void Rx_interrupt() { - output1=1; - device.printf("irq\n"); - wait_ms(2000); - output1=1; + output1=!output1; + char d = device.getc(); + device.printf("irq %c\n",d); + return; }