AnsweredAssumed Answered

how to get access to GPIO in user space from c coding

Question asked by Dhoundiyal on Nov 28, 2017
Latest reply on Dec 5, 2017 by Yuri Muhin
Branched to a new discussion

hello all,

 

I have get the access of GPIO from terminal and check the value in CRO

 

example :

echo 19 >/sys/class/gpio/export
echo out >/sys/class/gpio/gpio19/direction
echo 1 >/sys/class/gpio/gpio19/value
echo 0 >/sys/class/gpio/gpio19/value
echo 19 >/sys/class/gpio/unexport

 

but can any suggest me how to write c code and compile it on imx6ulevk board from user space.

what is to done i want to make a recipes or it will be done by simple make-file. 

Outcomes