BSC9131 RDB: Accessing GPIO via Linux

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

BSC9131 RDB: Accessing GPIO via Linux

跳至解决方案
1,197 次查看
rcreddy
Contributor III

Hi All,

        By means of this below post on forum

https://community.freescale.com/message/254497#254497

I am able to understand how to enable GPIO pin to be accessed at Linux. But, i am not sure of which file to modify. If you look at the above link, there is specific file which needs tobe modified.

Can somebody please let me know which file to modify [I am working on BSC9131 RDB].

Also, wanted to know what other options do i have to access GPIO apart from the method stated above [in the weblink].

Thanks

RC Reddy

0 项奖励
回复
1 解答
1,004 次查看
Pavel
NXP Employee
NXP Employee

Freescale SDK supports sysfs possibility for GPIO using from user space.

Usually sysfs is used for GPIO. See the following pages (http://elinux.org/GPIO) and (https://www.kernel.org/doc/Documentation/gpio/sysfs.txt).

Usually mmap possibility of the Linux is used for accessing to GPIO.

See the following pages:

http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F4482872.html

http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F4482887.html

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,004 次查看
rcreddy
Contributor III

Hi Freescale team,

                          I am awaiting your response/reply. Kindly answer.

Thanks

RC Reddy

0 项奖励
回复
1,005 次查看
Pavel
NXP Employee
NXP Employee

Freescale SDK supports sysfs possibility for GPIO using from user space.

Usually sysfs is used for GPIO. See the following pages (http://elinux.org/GPIO) and (https://www.kernel.org/doc/Documentation/gpio/sysfs.txt).

Usually mmap possibility of the Linux is used for accessing to GPIO.

See the following pages:

http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F4482872.html

http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F4482887.html

0 项奖励
回复
1,004 次查看
rcreddy
Contributor III

Hi,

    Thanks for your reply.

Thanks

RC Reddy

0 项奖励
回复