Fix MASKED_ACCESS bug in gpio_init

Now same as LPC11xx (Also use PIN_SHIFT instead of magic number 8 in gpio_set)