When you assign a pin to the GPIO module, it has the following default configuration:
The pin is configured as an input.
Events are disabled for the pin.
Debounce filtering is turned off.
An Open Drain mode is not active.
An embedded pull-up resistor is active.
An embedded pull-down resistor is not active.
You can change the configuration before or after you assign a pin to the GPIO module. If a pin is not currently assigned to the GPIO module, your settings are saved in the internal memory and will be applied when you assign the pin to the GPIO module.