Adding threaded blinky integration test

Brian Daniels 2016-04-12 17:26:11 -05:00
parent 7996649d96
commit 7dc3159b69
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#include "test_env.h"
#include "mbed.h"
#include "rtos.h"
DigitalOut led1(LED1);
void led1_thread(void const *args) {
int count = 0;
while (true) {
Thread::wait(1000);
greentea_send_kv("tick", count);
count++;
led1 = !led1;
}
}
int main() {
GREENTEA_SETUP(20, "wait_us_auto");
Thread thread(led1_thread);
while (true) {
}
}