I made today a kernel driver module for the UEXT IO module. Maybe someone is interested in this... (I would also appreciate some tipps, cause this is my first kernel module)
At the moment it supports reading digital io and adc, as well as reading/controlling relay states over procfs.
To read you can use
cat /proc/mod-io/adc/1
To write
echo "1" > /proc/mod-io/relay/2
Here is the download link:
https://docs.google.com/file/d/0BxI9HwY3GzeuUXZqdzNIQUhVRzA/edit?usp=sharing (https://docs.google.com/file/d/0BxI9HwY3GzeuUXZqdzNIQUhVRzA/edit?usp=sharing)
EDIT:
Now you can get all my module sources from:
https://github.com/hhornbacher/a13-kernel-modules (https://github.com/hhornbacher/a13-kernel-modules)
Would be cool, if some poeple who have the MOD-IO can test it and write some feedback ;D
looks good enough to get put in the kernel as standard. essential stuff
thanks, this encourages me to do some further testing and optimisation, and maybe then i start the effort to get it put in kernel
very nice! :)
Interesting, very good!
I also wrote some device drivers: https://github.com/vinifr/drivers-sunxi (https://github.com/vinifr/drivers-sunxi)
thanks, and your drivers are good reference material, very interesting, too!