Header file for the real-time timer module.
Data Structures | |
struct | rtimer |
Representation of a real-time task. More... | |
Macros | |
#define | RTIMER_CLOCK_LT(a, b) ((signed short)((a)-(b)) < 0) |
#define | RTIMER_NOW() |
Get the current clock time. More... | |
#define | RTIMER_SECOND RTIMER_ARCH_SECOND |
#define | RTIMER_TIME(task) |
Get the time that a task last was executed. More... | |
Typedefs | |
typedef void(* | rtimer_callback_t )(struct rtimer *t, void *ptr) |
typedef unsigned short | rtimer_clock_t |
Enumerations | |
enum | { RTIMER_OK, RTIMER_ERR_FULL, RTIMER_ERR_TIME, RTIMER_ERR_ALREADY_SCHEDULED } |
Functions | |
void | rtimer_arch_init (void) |
void | rtimer_arch_schedule (rtimer_clock_t t) |
void | rtimer_init (void) |
Initialize the real-time scheduler. More... | |
void | rtimer_run_next (void) |
Execute the next real-time task and schedule the next task, if any. More... | |
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. More... | |