GPIO pin access

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPIO pin access

765 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
Reply
1 Reply

565 Views
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 Kudos
Reply