gpio: add C code to write GPIOs on gumstix