ADC and PWM for Friendly ARM Mini2440

Nghia
I have a small project with kit Friendly ARM mini2440. But I don't know how
to program and use pwm and adc.
I have to use ADC to take the feed back from angel sensor and control a DC
servo via PWM.
Anyone can help me? Please
How to assess ADC, just one channel is enough and another one for PWM 
Please help me
Thanks!

davef
Sounds like a big project.

Which kernel, root filesystem and toolchain do you want to use?

I'd suggest reading through the QuickStart guide found at 

http://www.pengutronix.de/oselas/bsp/pengutronix/mini2440_bsp_en.html

for the ADC.  Haven't used the PWM.

anatole
If you will deside to use startos, I'll provide you with the PWM_out, ADC
is already there.

nap_D
PWM should be no problem. Feasibility depends on adc sampling rate and how
fast you want to react to changes in value.
A kernel module to handle adc interrupts and update the pwm buffers
accordingly should easily manage that unless the sampling rate and
preemption requirements are very high.
Will also depend on your pwm control logic. If it takes up few instructions
might be better to do that inside the irq handler instead of tasklets or
work queues (I said "MIGHT") again it all depends on sample rate, how fast
you want to react to changes, how many processes would be running and how
processor intensive they are.