mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-25 04:28:58 +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();
|
|
}
|
|
/*---------------------------------------------------------------------------*/
|