help..! A/D Converter on AIN0 Android

Nick
hi.!
I'm beginning code android on kit S3C6410 as an example like ADC test on
it, although i research datasheet carefully, i can get signal on port AIN0.

I try with code in mini6410_adc.c to access port.
 
#define ADCCON  __ADCREG(S3C_ADCCON)  // ADC control
#define ADCTSC  __ADCREG(S3C_ADCTSC)  // ADC touch screen control
#define ADCDLY  __ADCREG(S3C_ADCDLY)  // ADC start or Interval Delay
#define ADCDAT0  __ADCREG(S3C_ADCDAT0)  // ADC conversion data 0
#define ADCDAT1  __ADCREG(S3C_ADCDAT1)  // ADC conversion data 1
#define ADCUPDN  __ADCREG(S3C_ADCUPDN)  // Stylus Up/Down interrupt status


but it problem with library: 
#include <mach/map.h>
#include <mach/regs-clock.h>
#include <mach/regs-gpio.h>
#include <plat/regs-timer.h>
#include <plat/regs-adc.h> 
and other...
I don't know how do it

please help me.

Juergen Beisert
What kind of program do you want to program? A kernel driver or a userland
application?

Nick
hi Juergen Beisert, thanhks for your relay.
i'm doing a mini application. It will receive analog from loadcell. And I
make it work with AIN0 port,now. But i have problem, how i connect with my
loadcell. maybe i must remove variable resistor on kit. And, now I try to
build kernel driver to use other port (maybe AIN0), but I don't know how to
build it. I try with Cygwin to use Linux. Do you know how do it?

Juergen Beisert
Use the kernel from my BSP for the Mini6410. It gives you access to all
available AD channels via sysfs. Refer
http://www.friendlyarm.net/forum/topic/3015

Nick
thank you very much.!
I will try.