diff options
author | Keith Packard <keithp@keithp.com> | 2012-10-25 13:42:10 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-10-26 14:07:04 -0700 |
commit | e57ab2a7bfb69c0ef9b5b7fa8e53e20a500e7c6c (patch) | |
tree | 08d961311a7d2e7612d5c9aa090fd7a1dcdd53e6 /src/core/ao_task.h | |
parent | ccf0faa7d26d56deca7928b521d07be40504466a (diff) |
altos: Provide ao_task_alarm_tick to reduce per-tick cost
Cache the next wakeup time and check that before jumping to the task
code.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_task.h')
-rw-r--r-- | src/core/ao_task.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ao_task.h b/src/core/ao_task.h index b3f152a0..049f69a7 100644 --- a/src/core/ao_task.h +++ b/src/core/ao_task.h @@ -82,6 +82,7 @@ ao_add_task(__xdata struct ao_task * task, void (*start)(void), __code char *nam #if HAS_TASK_QUEUE /* Called on timer interrupt to check alarms */ +extern uint16_t ao_task_alarm_tick; void ao_task_check_alarm(uint16_t tick); #endif |