Modified GPIO driver

spilit OpenDrain and Pull into two functions