GPIO_PAD_CFG1=impedance
GPIO Input Mode Config 1. Each bit in this register enables the weak pull-up for the associated GPIO pin in this port.
GPIO_PAD_CFG1 | The two bits in GPIO_PAD_CFG1 and GPIO_PAD_CFG2 for each GPIO pin work together to determine the pad mode when the GPIO is set to input mode. 0 (impedance): High Impedance. 1 (pu): Weak pull-up mode. 2 (pd): weak pull-down mode. |