INP_GPIO() should be used first to clear ALT bits