Correctly set AIO_DDR register

Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
This commit is contained in:
madscifi 2011-01-24 11:32:00 +11:00 committed by Michael Moon
parent 4febbea2f8
commit a98886d236
1 changed files with 1 additions and 1 deletions

View File

@ -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