Hi
I'm using petalinux 2014.4 and used zedboard pre-defined .hdf. GPIO138 ~ 145 should be the pin connected to the switch. I did following on UART:
echo 138 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio138/direction
Then I tried to read /sys/class/gpio/gpio138/value after I flip the switch(all 8s), but the value seems always 1.
Anybody knows did I configure the connect the pins for 8 switches?
Thanks