GPFSEL
val = HREAD4(sc, GPFSEL(reg));
HWRITE4(sc, GPFSEL(reg), val);
reg = HREAD4(sc, GPFSEL(pin / 10));