52 static char initialized;
59 #define PRINTF(...) printf(__VA_ARGS__) 65 PROCESS(ctimer_process,
"Ctimer process");
71 for(c =
list_head(ctimer_list); c != NULL; c = c->next) {
72 etimer_set(&c->etimer, c->etimer.timer.interval);
78 for(c =
list_head(ctimer_list); c != NULL; c = c->next) {
79 if(&c->etimer ==
data) {
91 #ifdef ECLIPSE_STUB_CODE_ANALYSE 106 void (*f)(
void *),
void *ptr)
108 PRINTF(
"ctimer_set %p %u\n", c, (
unsigned)t);
117 c->etimer.timer.interval = t;
156 c->etimer.next = NULL;
157 c->etimer.p = PROCESS_NONE;
169 for(t =
list_head(ctimer_list); t != NULL; t = t->next) {
int ctimer_expired(struct ctimer *c)
Check if a callback timer has expired.
#define PROCESS(name, strname)
void ctimer_stop(struct ctimer *c)
Stop a pending callback timer.
void etimer_stop(struct etimer *et)
Stop a pending event timer.
void process_start(struct process *p, const char *arg)
#define PROCESS_CONTEXT_END(p)
void etimer_restart(struct etimer *et)
Restart an event timer from the current point in time.
void etimer_reset(struct etimer *et)
Reset an event timer with the same interval as was previously set.
void ctimer_init(void)
Initialize the callback timer library.
void ctimer_reset(struct ctimer *c)
Reset a callback timer with the same interval as was previously set.
#define PROCESS_YIELD_UNTIL(c)
#define PROCESS_CURRENT()
int etimer_expired(struct etimer *et)
Check if an event timer has expired.
void * list_head(list_t list)
void ctimer_set(struct ctimer *c, clock_time_t t, void(*f)(void *), void *ptr)
Set a callback timer.
void ctimer_restart(struct ctimer *c)
Restart a callback timer from the current point in time.
void list_add(list_t list, void *item)
void list_init(list_t list)
uint8_t data[USBNET_RX_BUF_SIZE]
#define PROCESS_CONTEXT_BEGIN(p)
void etimer_set(struct etimer *et, clock_time_t interval)
Set an event timer.
#define PROCESS_THREAD(name, ev, data)
void list_remove(list_t list, void *item)