November 14, 2019, 11:35:09 pm

News:

SMF - Just Installed!


A10 lime fast GPIO

Started by electrolab, October 03, 2014, 09:59:16 pm

Previous topic - Next topic

electrolab

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




JohnS

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