Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A10 => Topic started by: electrolab on October 03, 2014, 09:59:16 PM

Title: A10 lime fast GPIO
Post by: electrolab on October 03, 2014, 09:59:16 PM
Hello

I was wondering if there is a way of controlling the lime GPIO without sysfs.
There was the same conversation for the allwinner A13
https://www.olimex.com/forum/index.php?topic=436.0

Although there seem to be multiple ways to do it. There is no one of them clear enough.
In the u-boot sources there is Tom drivers for gpio
https://gitorious.org/linux-sunxi/u-boot-sunxi/source/ca3c303ff5e9297e980bafef9d2ceaf5a40b4408:drivers/gpio/sunxi_gpio.c

I am lost with the multiple choices i have to make.
Any kind of help appreciated!
Cheers



Title: Re: A10 lime fast GPIO
Post by: JohnS on October 03, 2014, 10:13:52 PM
Those ways should work but if you're struggling to cope with them then I suggest sticking to Linux own way (via FS).

Bear in mind that Linux can suddenly reschedule and leave your app not running for an unpredictable, sometimes long, time.

John