The default state after reset is Input with pull up.
If you need to change to Tristate, you can configure the Port Input/Output Control Registers, Register Pn_IOCR0