GPIO_P_CTL_MASK
val &= ~(GPIO_P_CTL_MASK << reg->pull_bit);
val = GPIO_P_CTL_MASK << (reg->pull_bit + 16);