Select Channel for /dev/adc

Post Reply
rnabioullin
Posts: 2
Joined: Fri Nov 05, 2010 3:36 pm

Select Channel for /dev/adc

Post by rnabioullin » Mon Jan 16, 2012 8:34 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest