gpiolib: Initialize the hardware with a callback