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
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.