]>
git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/tests/mbed/serial_interrupt/main.cpp
6 Serial
computer(USBTX
, USBRX
);
8 // This function is called when a character goes into the TX buffer.
13 // This function is called when a character goes into the RX buffer.
16 computer
.putc(computer
.getc());
20 printf("start test\n");
21 computer
.attach(&txCallback
, Serial::TxIrq
);
22 computer
.attach(&rxCallback
, Serial::RxIrq
);