GPIO pin access

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

GPIO pin access

1,416 次查看
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,216 次查看
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 项奖励
回复