Page 1 of 1

GPIO reset to initial state

Posted: Mon Oct 07, 2019 3:32 pm
by tatulea
Hi,

I have a project with a Type-C connector to a custom board. This means that my communication pins need to be configured based on the Type-C insertion way (face up or face down). I am doing some debugging because my Type-C connection doesn't work all the time and I would like to know how to get the initial state of some GPIO pins (input or output; pull-up state, etc). I am using gpio_reset_pin to delete the configuration of a GPIO, but I am not sure if this function sets its really initial state.