How i can access gpio wandboard in c?
I have a wandboard with ubuntu 14.04 and a wanted access our gpio in my c program. I can access in shell script, and i can put my script in my c code, but i wanted a mode of access the gpio directly my c code, without using shell command.
this is my shell command
echo 91 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio91/direction
echo 1 > /sys/class/gpio/gpio91/value
echo 0 > /sys/class/gpio/gpio91/value