Contiki 2.5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
example-pollhandler.c
#include "contiki.h"
PROCESS
(example_pollhandler,
"Pollhandler example"
);
static
void
exithandler(
void
)
{
printf(
"Process exited\n"
);
}
static
void
pollhandler(
void
)
{
printf(
"Process polled\n"
);
}
PROCESS_THREAD
(example_pollhandler, ev, data)
{
PROCESS_POLLHANDLER
(pollhandler());
PROCESS_EXITHANDLER
(exithandler());
PROCESS_BEGIN
();
while
(1) {
PROCESS_WAIT_EVENT
();
}
PROCESS_END
();
}
Generated on Fri Aug 30 2013 12:34:04 for Contiki 2.5 by
1.8.3.1