diff options
author | Keith Packard <keithp@keithp.com> | 2009-04-12 23:17:16 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-04-12 23:17:16 -0700 |
commit | e14f07bfdb8824fc7ed6df1129c66ee39ffd6d54 (patch) | |
tree | bd0baa50ee2d25fe88dbbe8710a2ef9ee177d48d /ao_timer.c | |
parent | 823f4f92de0c1f8dd7a644a8e56ffe9822bee6e2 (diff) |
Add A/D sampler
Sample A/D at the timer tick, placing data in a ring
of samples.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao_timer.c')
-rw-r--r-- | ao_timer.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -22,6 +22,7 @@ volatile __data uint16_t ao_time; void ao_timer_isr(void) interrupt 9 { ++ao_time; + ao_adc_poll(); ao_wakeup(DATA_TO_XDATA(&ao_time)); } |