mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-11 12:05:53 +00:00
24 lines
622 B
C
24 lines
622 B
C
/**
|
|
* \file
|
|
* Basic hello world example
|
|
* \author
|
|
* Zach Shelby <zach@sensinode.com>
|
|
*/
|
|
|
|
#include "contiki.h"
|
|
#include <stdio.h> /* For printf() */
|
|
/*---------------------------------------------------------------------------*/
|
|
PROCESS(hello_world_process, "Hello world process");
|
|
AUTOSTART_PROCESSES(&hello_world_process);
|
|
/*---------------------------------------------------------------------------*/
|
|
PROCESS_THREAD(hello_world_process, ev, data)
|
|
{
|
|
|
|
PROCESS_BEGIN();
|
|
|
|
printf("Hello World!\n");
|
|
|
|
PROCESS_END();
|
|
}
|
|
/*---------------------------------------------------------------------------*/
|