Make GPIO configuration generic.