LPC1768 GPIO routine