From e14f07bfdb8824fc7ed6df1129c66ee39ffd6d54 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 12 Apr 2009 23:17:16 -0700 Subject: Add A/D sampler Sample A/D at the timer tick, placing data in a ring of samples. Signed-off-by: Keith Packard --- ao_timer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ao_timer.c') 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)); } -- cgit v1.2.3