Is the PxDIR register used only for the GPIO module function or it has to be used with the PxSEL2 and PxSEL regs when selecting a non-GPIO function to set the necessary pin direction?
In other words, does selecting a pin function by the PxSEL2 and PxSEL registers will also take care of setting the pin's direction?