Revision 0128be0f os/core/src/aos_timer.c
os/core/src/aos_timer.c | ||
---|---|---|
45 | 45 |
if ( (timer->wkuptime > uptime) && ((timer->wkuptime - uptime) > TIME_IMMEDIATE) ) { |
46 | 46 |
// split the time delta if necessary |
47 | 47 |
if ((timer->wkuptime - uptime) > AOS_TIMER_MAX_INTERVAL_US) { |
48 |
chVTSetI(&(timer->vt), US2ST(AOS_TIMER_MAX_INTERVAL_US), _intermediateCb, timer);
|
|
48 |
chVTSetI(&(timer->vt), TIME_US2I(AOS_TIMER_MAX_INTERVAL_US), _intermediateCb, timer);
|
|
49 | 49 |
} else { |
50 |
chVTSetI(&(timer->vt), US2ST(timer->wkuptime - uptime), _fireCb, timer);
|
|
50 |
chVTSetI(&(timer->vt), TIME_US2I(timer->wkuptime - uptime), _fireCb, timer);
|
|
51 | 51 |
} |
52 | 52 |
} else { |
53 | 53 |
vtfunc_t fn = timer->callback; |
Also available in: Unified diff