From eaddc510b4668adb912f6f8c8fbb69f7ca0c24cb Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Tue, 7 Dec 2010 15:16:25 +1100 Subject: [PATCH] no longer assume analog port is port C, as this assumption is false --- analog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analog.c b/analog.c index 2cf3e00..e4aebbb 100644 --- a/analog.c +++ b/analog.c @@ -54,7 +54,7 @@ void analog_init() { adc_counter = 0; adc_running_mask = 1; - DDRC &= ANALOG_MASK; + AIO0_DDR &= ANALOG_MASK; DIDR0 = ANALOG_MASK & 0x3F; // now we start the first conversion and leave the rest to the interrupt