56#include "contiki-conf.h"
58#ifndef RTIMER_CLOCK_LT
60#define RTIMER_CLOCK_LT(a,b) ((signed short)((a)-(b)) < 0)
140#define RTIMER_NOW() rtimer_arch_now()
153#define RTIMER_TIME(task) ((task)->time)
159#define RTIMER_SECOND RTIMER_ARCH_SECOND
#define CC_REENTRANT_ARG
Definition: cc.h:57
void(* rtimer_callback_t)(struct rtimer *t, void *ptr)
Definition: rtimer.h:81
void rtimer_init(void)
Initialize the real-time scheduler.
int rtimer_set(struct rtimer *task, rtimer_clock_t time, rtimer_clock_t duration, rtimer_callback_t func, void *ptr)
Post a real-time task.
void rtimer_arch_init(void)
void rtimer_run_next(void)
Execute the next real-time task and schedule the next task, if any.
void rtimer_arch_schedule(rtimer_clock_t t)
unsigned short rtimer_clock_t
Definition: rtimer.h:59
@ RTIMER_ERR_TIME
Definition: rtimer.h:100
@ RTIMER_OK
Definition: rtimer.h:98
@ RTIMER_ERR_ALREADY_SCHEDULED
Definition: rtimer.h:101
@ RTIMER_ERR_FULL
Definition: rtimer.h:99
Representation of a real-time task.
Definition: rtimer.h:91
rtimer_clock_t time
Definition: rtimer.h:92
rtimer_callback_t func
Definition: rtimer.h:93
void * ptr
Definition: rtimer.h:94