There are two control strategies for GPIO ports in MSP432P401R MCU: General Digital I/O Control and Port Mapping Control.
In the former, alternate functions (Digital I/O function, primary module function, secondary module function, and third module function), can be selected by PxSEL1 & PxSEL0 registers with PxIN or PxOUT registers.
However, in the latter, the alternate functions are selected by mapping some pins to certain peripheral functions. But it looks like that both PxSEL1 & PxSEL0 are still needed.
What is the difference between these two methods?
Thanks,