Unify Framework Lib 1.6.0
ctimer.c File Reference
#include "sys/ctimer.h"
#include "contiki.h"
#include "lib/list.h"

Macros

#define data   _data
 
#define DEBUG   0
 
#define PRINTF(...)
 

Functions

 LIST (ctimer_list)
 
 PROCESS (ctimer_process, "Ctimer process")
 
 PROCESS_THREAD (ctimer_process, ev, data)
 
void ctimer_init (void)
 Initialize the callback timer library. More...
 
void ctimer_set (struct ctimer *c, clock_time_t t, void(*f)(void *), void *ptr)
 Set a callback timer. More...
 
void ctimer_reset (struct ctimer *c)
 Reset a callback timer with the same interval as was previously set. More...
 
void ctimer_restart (struct ctimer *c)
 Restart a callback timer from the current point in time. More...
 
void ctimer_stop (struct ctimer *c)
 Stop a pending callback timer. More...
 
int ctimer_expired (struct ctimer *c)
 Check if a callback timer has expired. More...
 

Variables

static char initialized
 

Detailed Description

Callback timer implementation

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