Merge pull request #5920 from bcostm/use_rawserial_in_mbed_11_test

Fix issue with MBED_11 test (mbed2)
pull/5917/merge
Cruz Monrreal 2018-01-26 10:34:50 -06:00 committed by GitHub
commit 6f9421baeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

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