1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/projects/test_thread_basic/main.c
2010-10-26 17:12:45 +02:00

15 lines
297 B
C

#include <stdio.h>
#include <thread.h>
#include <flags.h>
#include <kernel.h>
void second_thread(void) {
puts("second thread\n");
}
int main(void)
{
int pid = thread_create(8192, PRIORITY_MAIN-1, CREATE_WOUT_YIELD | CREATE_STACKTEST, second_thread, "nr2");
puts("first thread\n");
}