Added support for internal resistor for a GPIO pin. Only works for GPIOMem at this time.