Added pin direction definition to gpio.h