Pinmuxing cannot be made flexible in the example project as the Rx pins of the ports are hard-coded in the default PRU firmware.
Such a limitation shall only apply to 8 RX pins and not to TX and DIR GPIO. To overcome this limitation, a customized PRU firmware should be used by the user.