mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
17 lines
351 B
C
17 lines
351 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...");
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
int pid = thread_create(8192, PRIORITY_MAIN-1, CREATE_WOUT_YIELD | CREATE_STACKTEST, second_thread, "nr2");
|
|
puts("Main thread exiting...");
|
|
}
|