Hello, I am looking for some C example code on how to access the adc and gpio without using the kernel adc driver but still use the kernel's touchscreen driver. Is there any around? (did found some code but the comments are in chinese)
example code
hi on this page go to downloads's link there go to linux and look for examples, that folder contains a lot of C examples who runs on mini, i hope this can help you, good luck!
Thanks David, I found those but I was looking for direct hardware access and disabling the kernel's /dev/adc. I have a multiplexer hooked up but rewriting the kernel driver for this is a bit much for me so I was looking for same C that provides some basic adc and pio access. The kernel driver looks a bit difficult to me (I am not much of a coder) to modify since there is a lot of extra stuff inside. So using something simple that provides direct access looks easier.
there its a program who works with gpio, but its true that you have to format the kernel, but it isn too dificult, this page worked for me: http://members.cox.net/ebrombaugh1/embedded/mini2440/index.html about the adc i havent work with it so i can help you with that good luck!