We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0728ac commit 7c834dcCopy full SHA for 7c834dc
test/serial_interrupt/main.cpp
@@ -20,7 +20,7 @@
20
DigitalOut led1(LED1);
21
DigitalOut led2(LED2);
22
23
-Serial computer(USBTX, USBRX);
+Serial& computer = get_stdio_serial();
24
25
// This function is called when a character goes into the TX buffer.
26
void txCallback() {
@@ -38,7 +38,6 @@ void app_start(int, char*[]) {
38
MBED_HOSTTEST_SELECT(echo);
39
MBED_HOSTTEST_DESCRIPTION(serial interrupt test);
40
MBED_HOSTTEST_START("MBED_14");
41
- computer.baud(115200);
42
computer.attach(&txCallback, Serial::TxIrq);
43
computer.attach(&rxCallback, Serial::RxIrq);
44
}
0 commit comments