GPIO User Space App describes user space application to test the GPIO.
Another related link is Linux GPIO Driver.
This would be running on a xilinx zynq board having an ARM Cortex A 9 processor.
I am unable to understand why they are asking to compile this source code using gcc:
// the following bash script to toggle the gpio is also handy for
// testing
//
// while [ 1 ]; do
// echo 1 > /sys/class/gpio/gpio240/value
// echo 0 > /sys/class/gpio/gpio240/value
// done
// to compile this, use the following command
// gcc gpio.c -o gpio
Should it not be ARM-linux-gcc. instead of gcc?
Or these commands are to be typed on the target once the kernel boots?