use a shadow value for the write-only GPIO_CONF2 register