Extended pwm and adc driver

Stefan Behrendt
Attachment: ext_io_patch.tar.gz (62.42 KB)
Hi there,

I faced the problem of accessing both pwm channels and all of the four adc
channels on the CON4 header at the mini2440 board.
Unfortunately the included modules in the kernel that create the devices
/dev/adc and /dev/pwm doesn't allow for that.

Therefore I added two more drivers that are capable to do so.
In the attachment you'll find a patch file (ext_io.patch) for the kernel

Linux 2.6.32.2 (2010-01-13) 81 MB

downloaded from

http://friendlyarm.net/downloads.

A sample application is provided as well, that has to be placed in
/opt/FriendlyARM/mini2440/arm-qtopia/ in order to compile.
Sorry, that all the comments are in german. I'm too lazy to translate them.

Good luck with that,

Stefan Behrendt
Hochschule Wismar
Germany

Ajit
thank You for Patch..
Can you tell me how to apply the patch to kernel and will all channels of
ADC works after applying patch???

Regards

Ajit
I applied patch and AIN0 is working perfectly.

I used http://friendlyarm-micro2440.blogspot.in/p/building-qt-projects.html
This example for testing.

How to select AIN1 using your driver and this example??

Regards