Zigbee Protocol Controller 1.6.0
#include "sys/process.h"
#include "sys/clock.h"
#include "sl_log.h"

Classes

struct  event_data
 

Macros

#define LOG_TAG   "process.c"
 
#define data   _data /* data is a reserved keyword in Keil C51 */
 
#define PROCESS_STATE_NONE   0
 
#define PROCESS_STATE_RUNNING   1
 
#define PROCESS_STATE_CALLED   2
 
#define LOG_SLOW_EVENTS   1
 
#define EVENT_TIME_WARNING   50
 
#define EVENT_TIME_ERROR   300
 
#define DEBUG   0
 
#define PRINTF(...)
 

Functions

static void call_process (struct process *p, process_event_t ev, process_data_t data) CC_REENTRANT_ARG
 
static void exit_process (struct process *p, struct process *fromprocess) CC_REENTRANT_ARG
 
static void do_poll (void)
 
static void do_event (void)
 
Functions called from application programs
process_event_t process_alloc_event (void)
 Allocate a global event number. More...
 
void process_start (struct process *p, const char *arg) CC_REENTRANT_ARG
 
void process_exit (struct process *p) CC_REENTRANT_ARG
 Cause a process to exit. More...
 
int process_post (struct process *p, process_event_t ev, process_data_t data) CC_REENTRANT_ARG
 
int process_count_events (const struct process *p, process_event_t ev, const process_data_t data) CC_REENTRANT_ARG
 
void process_post_synch (struct process *p, process_event_t ev, process_data_t data) CC_REENTRANT_ARG
 
Functions called by the system and boot-up code
void process_init (void)
 Initialize the process module. More...
 
int process_run (void)
 
int process_nevents (void)
 
int process_is_running (struct process *p) CC_REENTRANT_ARG
 
Functions called from device drivers
void process_poll (struct process *p) CC_REENTRANT_ARG
 

Variables

struct processprocess_list = NULL
 
struct processprocess_current = NULL
 
static process_event_t lastevent
 
static process_num_events_t nevents
 
static process_num_events_t fevent
 
static struct event_data events [PROCESS_CONF_NUMEVENTS]
 
static volatile unsigned char poll_requested
 

Detailed Description

Implementation of the Contiki process kernel.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se