Page 1 of 1

Select Channel for /dev/adc

Posted: Mon Jan 16, 2012 8:34 pm
by rnabioullin
Hello, is it possible to select the desired analog input? /dev/adc simply returns the value of AINT0, but I also want to access AINT1, AINT2, ...

I know it is possible to perform this by writing to rADCCON:
2440addr.h:
#define rADCCON (*(volatile unsigned *)0x58000000) //ADC control

but I want to select the input within Linux.

Thanks in advance.