Configure/use GPIO pins for T2081 processor

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Configure/use GPIO pins for T2081 processor

843件の閲覧回数
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.

ラベル(1)
0 件の賞賛
1 返信

539件の閲覧回数
Pavel
NXP Employee
NXP Employee

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 件の賞賛