From a98886d23693a0ab9ffb34a540fcfb5add58aa77 Mon Sep 17 00:00:00 2001 From: madscifi Date: Mon, 24 Jan 2011 11:32:00 +1100 Subject: [PATCH] Correctly set AIO_DDR register Signed-off-by: Michael Moon --- analog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analog.c b/analog.c index e4aebbb..f6b55f2 100644 --- a/analog.c +++ b/analog.c @@ -54,7 +54,7 @@ void analog_init() { adc_counter = 0; adc_running_mask = 1; - AIO0_DDR &= ANALOG_MASK; + AIO0_DDR &= ~(ANALOG_MASK); DIDR0 = ANALOG_MASK & 0x3F; // now we start the first conversion and leave the rest to the interrupt