Skip to content

Instantly share code, notes, and snippets.

@n-eq
Last active August 26, 2017 14:09
Show Gist options
  • Save n-eq/6a2be9cccd07bd2b38cdeac1b5fd39f3 to your computer and use it in GitHub Desktop.
Save n-eq/6a2be9cccd07bd2b38cdeac1b5fd39f3 to your computer and use it in GitHub Desktop.
mbed-os_threads
#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