1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/projects/test_thread_exit/main.c
Oliver Hahm ff7892e898 [projects test_*]
* fixed some tests
2012-11-07 13:45:25 -05:00

19 lines
425 B
C

#include <stdio.h>
#include <thread.h>
#include <flags.h>
#include <kernel.h>
void second_thread(void) {
printf("second_thread starting.\n");
puts("2nd: running...");
}
char second_thread_stack[8192];
int main(void)
{
(void) thread_create(second_thread_stack, sizeof(second_thread_stack), PRIORITY_MAIN-1, CREATE_WOUT_YIELD | CREATE_STACKTEST, second_thread, "nr2");
puts("Main thread exiting...");
}