UPDATE: Made a kernel module for UEXT MOD-IO (for A13 sunxi 3.0)

Started by hhornbacher, February 17, 2013, 01:11:00 AM

Previous topic - Next topic

hhornbacher

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


EDIT:
Now you can get all my module sources from:
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

drspastic

looks good enough to get put in the kernel as standard. essential stuff

hhornbacher

thanks, this encourages me to do some further testing and optimisation, and maybe then i start the effort to get it put in kernel



hhornbacher

thanks, and your drivers are good reference material, very interesting, too!