Last active
August 26, 2017 14:09
-
-
Save n-eq/6a2be9cccd07bd2b38cdeac1b5fd39f3 to your computer and use it in GitHub Desktop.
mbed-os_threads
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mbed.h" | |
static void get_thread_id(){ | |
osThreadId thread_id = osThreadGetId(); | |
printf("main thread Id: %p\r\n", thread_id); | |
} | |
int main(){ | |
get_thread_id(); | |
while (true){ | |
printf("Alive\r\n"); | |
wiat_ms(500); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment