mirror of https://github.com/ARMmbed/mbed-os.git
31 lines
515 B
C++
31 lines
515 B
C++
#include "mbed.h"
|
|
#include "test_env.h"
|
|
|
|
DigitalOut led(LED1);
|
|
|
|
namespace {
|
|
const int MS_INTERVALS = 1000;
|
|
}
|
|
|
|
void print_char(char c = '*')
|
|
{
|
|
printf("%c", c);
|
|
fflush(stdout);
|
|
}
|
|
|
|
int main()
|
|
{
|
|
MBED_HOSTTEST_TIMEOUT(15);
|
|
MBED_HOSTTEST_SELECT(wait_us_auto);
|
|
MBED_HOSTTEST_DESCRIPTION(Time us);
|
|
MBED_HOSTTEST_START("MBED_25");
|
|
|
|
while (true) {
|
|
for (int i = 0; i < MS_INTERVALS; i++) {
|
|
wait_us(1000);
|
|
}
|
|
led = !led; // Blink
|
|
print_char();
|
|
}
|
|
}
|