PFSEL
PFSEL |= PF(5); /* select pin as I/O */
PFSEL &= ~0x1;
addr = pctrl->base + PFSEL(port) + (pin / 4) * 4;