Revision 512abac1 os/core/src/aos_timer.c
os/core/src/aos_timer.c | ||
---|---|---|
44 | 44 |
// if the wakeup time is more than TIME_IMMEDIATE in the future |
45 | 45 |
if ( (timer->wkuptime > uptime) && ((timer->wkuptime - uptime) > TIME_IMMEDIATE) ) { |
46 | 46 |
// split the time delta if necessary |
47 |
if ((timer->wkuptime - uptime) > TIMER_MAX_INTERVAL_US) { |
|
48 |
chVTSetI(&(timer->vt), US2ST(TIMER_MAX_INTERVAL_US), _intermediateCb, timer); |
|
47 |
if ((timer->wkuptime - uptime) > AOS_TIMER_MAX_INTERVAL_US) {
|
|
48 |
chVTSetI(&(timer->vt), US2ST(AOS_TIMER_MAX_INTERVAL_US), _intermediateCb, timer);
|
|
49 | 49 |
} else { |
50 | 50 |
chVTSetI(&(timer->vt), US2ST(timer->wkuptime - uptime), _fireCb, timer); |
51 | 51 |
} |
Also available in: Unified diff