GPIO pin access

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO pin access

377 Views
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 Kudos
1 Reply

177 Views
bpe
NXP TechSupport
NXP TechSupport

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 Kudos