56 #include "contiki-conf.h"
58 #ifndef RTIMER_CLOCK_LT
59 typedef unsigned short rtimer_clock_t;
60 #define RTIMER_CLOCK_LT(a,b) ((signed short)((a)-(b)) < 0)
63 #include "rtimer-arch.h"
75 typedef void (* rtimer_callback_t)(
struct rtimer *t,
void *ptr);
86 rtimer_callback_t func;
94 RTIMER_ERR_ALREADY_SCHEDULED,
112 rtimer_clock_t duration, rtimer_callback_t func,
void *ptr);
133 #define RTIMER_NOW() rtimer_arch_now()
146 #define RTIMER_TIME(task) ((task)->time)
148 void rtimer_arch_init(
void);
149 void rtimer_arch_schedule(rtimer_clock_t t);
152 #define RTIMER_SECOND RTIMER_ARCH_SECOND