52 #define PRINTF(...) printf(__VA_ARGS__)
57 static struct rtimer *next_rtimer;
68 rtimer_clock_t duration,
69 rtimer_callback_t func,
void *ptr)
73 PRINTF(
"rtimer_set time %d\n", time);
75 if(next_rtimer ==
NULL) {
95 if(next_rtimer ==
NULL) {
101 if(next_rtimer !=
NULL) {
int rtimer_set(struct rtimer *rtimer, rtimer_clock_t time, rtimer_clock_t duration, rtimer_callback_t func, void *ptr)
Post a real-time task.
void rtimer_init(void)
Initialize the real-time scheduler.
void rtimer_arch_init(void)
We don't need to explicitly initialise anything but this routine is required by the API...
#define NULL
The null pointer.
Header file for the real-time timer module.
Representation of a real-time task.
void rtimer_arch_schedule(rtimer_clock_t t)
Schedules an rtimer task to be triggered at time t.
void rtimer_run_next(void)
Execute the next real-time task and schedule the next task, if any.