Configure/use GPIO pins for T2081 processor

cancel
Showing results for 
Search instead for 
Did you mean: 

Configure/use GPIO pins for T2081 processor

498 Views
francescocaiazz
Contributor II

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.

Labels (1)
0 Kudos
1 Reply

194 Views
Pavel
NXP TechSupport
NXP TechSupport

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

 

http://linux-sunxi.org/GPIO


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos