/* Set up direction of a GPIO: 1-> out; 0-> in  */
void lpc178x_gpio_dir(int port, int pin, int d)
/* Set up direction of a GPIO: 1-> out; 0-> in  */
void lpc178x_gpio_dir(int port, int pin, int d)
{
	struct lpc178x_gpio_dsc gpio_dsc;
	gpio_dsc.port = port;
	gpio_dsc.pin = pin;
	lpc178x_gpio_config_direction(&gpio_dsc, d);
}