Use RawSerial in MBED_11 test

pull/5920/head
bcostm 2018-01-24 14:45:18 +01:00
parent f1cf77fa44
commit 352ac7a2be
1 changed files with 2 additions and 6 deletions

View File

@ -1,11 +1,7 @@
#include "mbed.h" #include "mbed.h"
#include "test_env.h" #include "test_env.h"
void print_char(char c = '*') RawSerial pc(USBTX, USBRX);
{
printf("%c", c);
fflush(stdout);
}
Ticker flipper_1; Ticker flipper_1;
DigitalOut led1(LED1); DigitalOut led1(LED1);
@ -17,7 +13,7 @@ void flip_1() {
} else { } else {
led1 = 1; led1_state = 1; led1 = 1; led1_state = 1;
} }
print_char(); pc.putc('*');
} }
Ticker flipper_2; Ticker flipper_2;