Hello,
I'm using a custom board based on T2081 processor.
I need to create a driver that controls 4 GPIO lines as inputs and 4 as output.
The problem I'm facing is that, despite I can control GPIO lines on command line with echo command, I can't find the library necessary to make use of C callable instructions to configure and use them.
I'm looking within toolchain include folders and found some files to include (consumer/driver/machine .h in /include/linux/gpio directory), but I'm facing a lot of problems to compile the project.
Is there any other source file I need to use? Are these files correct?
B.R.
NXP SDK supports sysfs possibility for GPIO using.
Look at the following pages:
https://www.kernel.org/doc/Documentation/gpio/sysfs.txt
http://falsinsoft.blogspot.ru/2012/11/access-gpio-from-linux-user-space.html
https://wiki.openwrt.org/doc/hardware/port.gpio
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------