Contiki 3.x
z1-nothing.c
Go to the documentation of this file.
1 /**
2  * \file
3  * Dummy contiki application that des nothing. Literally.
4  * Might be useful for relay only nodes.
5  */
6 #include <stdbool.h>
7 #include "contiki.h"
8 
9 PROCESS(do_nothing_process, "Process that does nothing");
10 
11 AUTOSTART_PROCESSES(&do_nothing_process);
12 
13 PROCESS_THREAD(do_nothing_process, ev, data) {
14  PROCESS_BEGIN();
15 
16  while (true) {
17  PROCESS_YIELD();
18  }
19 
20  PROCESS_END();
21 }
#define PROCESS_END()
Define the end of a process.
Definition: process.h:131
#define PROCESS(name, strname)
Declare a process.
Definition: process.h:307
#define PROCESS_THREAD(name, ev, data)
Define the body of a process.
Definition: process.h:273
#define PROCESS_YIELD()
Yield the currently running process.
Definition: process.h:164
#define PROCESS_BEGIN()
Define the beginning of a process.
Definition: process.h:120