mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #5920 from bcostm/use_rawserial_in_mbed_11_test
Fix issue with MBED_11 test (mbed2)pull/5917/merge
commit
6f9421baeb
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue