GPIO pin access

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

GPIO pin access

1,317件の閲覧回数
stacym
Contributor I

Hello,

Can anyone tell me how to read the state of a GPIO pin from either user space or from a driver?

The processor family is the mpc8308, running the Linux OS

Thanks,

Stacy

0 件の賞賛
返信
1 返信

1,117件の閲覧回数
bpe
NXP Employee
NXP Employee

Linux kernel has a native API for handling GPIO ports. Details can be found in

Documentation/gpio.txt. For your chip, support for this API is enabled by the kernel configuration option CONFIG_MPC8xxx_GPIO.

0 件の賞賛
返信