Fixed a bug in the PullUp/Down setup for GPIOs

The clock register offset was not calculated properly.