design the driver for gpios