summaryrefslogtreecommitdiff
path: root/ao_timer.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-12 23:17:16 -0700
committerKeith Packard <keithp@keithp.com>2009-04-12 23:17:16 -0700
commite14f07bfdb8824fc7ed6df1129c66ee39ffd6d54 (patch)
treebd0baa50ee2d25fe88dbbe8710a2ef9ee177d48d /ao_timer.c
parent823f4f92de0c1f8dd7a644a8e56ffe9822bee6e2 (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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ao_timer.c b/ao_timer.c
index 7a81f32e..cb6255d2 100644
--- a/ao_timer.c
+++ b/ao_timer.c
@@ -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));
}