no longer assume analog port is port C, as this assumption is false
This commit is contained in:
parent
1f30c7f43b
commit
eaddc510b4
2
analog.c
2
analog.c
|
|
@ -54,7 +54,7 @@ void analog_init() {
|
||||||
adc_counter = 0;
|
adc_counter = 0;
|
||||||
adc_running_mask = 1;
|
adc_running_mask = 1;
|
||||||
|
|
||||||
DDRC &= ANALOG_MASK;
|
AIO0_DDR &= ANALOG_MASK;
|
||||||
DIDR0 = ANALOG_MASK & 0x3F;
|
DIDR0 = ANALOG_MASK & 0x3F;
|
||||||
|
|
||||||
// now we start the first conversion and leave the rest to the interrupt
|
// now we start the first conversion and leave the rest to the interrupt
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue