I have some problems setting the pins gpio107 and gpio108 to work in output.
I used "devmem2" to configure the pad at runtime, these are the commands:
- devmem2 0x48002126 h 0x0004 (gpio107)
- devmem2 0x48002128 h 0x0004 (gpio108)
With an Eart COM I can successfully control the state of the pins
after the previous configuration, with an EartStorm COM I can't.
I would try
# echo NN > /sys/class/gpio/export with NN the pin GPIO number
then check it with
# ls /sys/class/gpio/
then for the pin NN you want
# ls > /sys/class/gpio/gpioNN
should show you
active_low direction edge power subsystem uevent value
the either configure it as input with
echo in /sys/class/gpio/gpioNN/direction
or as output
echo out /sys/class/gpio/gpioNN/direction
check (verify) with
to read the value use
Hope this helps
View this message in context: http://gumstix.8.n6.nabble.com/EarthStorm-gpio107-gpio108-tp4964596p4964597.html
Sent from the Gumstix mailing list archive at Nabble.com.