66 #if CH_CFG_ST_TIMEDELTA == 0 106 #if CH_CFG_ST_TIMEDELTA > 0 128 #if CH_CFG_INTERVALS_SIZE > CH_CFG_ST_RESOLUTION 155 else if (delta < p->delta) {
160 deadline_delta = delta;
161 #if CH_CFG_INTERVALS_SIZE > CH_CFG_ST_RESOLUTION 180 while (p->
delta < delta) {
217 #if CH_CFG_ST_TIMEDELTA == 0 255 port_timer_stop_alarm();
287 delta = nowdelta + delta;
288 #if CH_CFG_INTERVALS_SIZE > CH_CFG_ST_RESOLUTION static systime_t chVTGetSystemTimeX(void)
Current system time.
void * par
Timer callback function parameter.
uint64_t systime_t
Type of system time.
uint64_t sysinterval_t
Type of time interval.
sysinterval_t delta
Time delta before timeout.
virtual_timer_t * prev
Previous timer in the list.
static sysinterval_t chTimeDiffX(systime_t start, systime_t end)
Subtracts two system times returning an interval.
#define TIME_MAX_SYSTIME
Maximum system of system time before it wraps.
systime_t lasttime
System time of the last tick event.
virtual_timers_list_t vtlist
Virtual timers delta list header.
sysinterval_t delta
Must be initialized to -1.
void chVTDoSetI(virtual_timer_t *vtp, sysinterval_t delay, vtfunc_t vtfunc, void *par)
Enables a virtual timer.
void(* vtfunc_t)(void *p)
Type of a Virtual Timer callback function.
#define chDbgCheck(c)
Function parameters check.
void chVTDoResetI(virtual_timer_t *vtp)
Disables a Virtual Timer.
Virtual timers list header.
void _vt_init(void)
Virtual Timers initialization.
volatile systime_t systime
System Time counter.
ch_system_t ch
System data structures.
Virtual Timer descriptor structure.
virtual_timer_t * next
Next timer in the delta list.
#define TIME_IMMEDIATE
Zero interval specification for some functions with a timeout specification.
#define CH_CFG_ST_TIMEDELTA
Time delta constant for the tick-less mode.
virtual_timer_t * next
Next timer in the list.
void chDbgCheckClassI(void)
I-class functions context check.
#define chDbgAssert(c, r)
Condition assertion.
static systime_t chTimeAddX(systime_t systime, sysinterval_t interval)
Adds an interval to a system time returning a system time.
virtual_timer_t * prev
Last timer in the delta list.
ChibiOS/RT main include file.
vtfunc_t func
Timer callback function pointer.