PIN2MUXSEL_MASK
tmpr &= ~PIN2MUXSEL_MASK(pin);
tmpr |= __SHIFTIN(MUXEL_GPIO_MODE, PIN2MUXSEL_MASK(pin));