For the OMAP_L137:
The McASP document says "Regardless of the pin function register (PFUNC) setting, each PDIR bit must be set to 1 for the specified pin to be enabled as an output ans each PDIR bit must be cleared to 0 for the specified pin to be an input." This statement is followed by two examples where the specific bits are assigned as McASP pins. No example is given for when the PFUNC setting assigns the pin as a GPIO pin.
Does the PDIR register actually apply for pins that are defined as GPIO pins? Also, does the PFUNC register interact with the PINMUX settings?
That is, if a pin is McASP do I need to set PINMUX, PFUNC (with PINMUX and PFUNC in agreement), and PDIR? Is that sufficient?
If a pin is GPIO, do I need to set PINMUX, PFUNC (with PINMUX and PFUNC in agreement, PDIR, and DIRn (with PDIR and DIRn in agreement)? Is that sufficient?