Add template for AUTOSTART_PROCESS
This commit is contained in:
parent
c699ccbe30
commit
6355545ded
2 changed files with 28 additions and 1 deletions
|
@ -32,7 +32,26 @@
|
|||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
//#include "mac_event.h"
|
||||
#include "uip.h"
|
||||
//#include "uip.h"
|
||||
#include <avr/pgmspace.h>
|
||||
#include <stdio.h>
|
||||
#include "contiki.h"
|
||||
|
||||
/* Template for autostarting processes.
|
||||
* The AUTOSTART_PROCESS macro is enabled by the compiler switch -DAUTOSTART_ENABLE
|
||||
* which is applied only to the .co file (this one).
|
||||
*/
|
||||
#if 0
|
||||
|
||||
PROCESS(hello_process, "Hello process");
|
||||
AUTOSTART_PROCESSES(&hello_process);
|
||||
|
||||
PROCESS_THREAD(hello_process, ev, data)
|
||||
{
|
||||
PROCESS_BEGIN();
|
||||
|
||||
printf_P(PSTR("Hello!\n"));
|
||||
|
||||
PROCESS_END();
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue