Question
Changing GPIO pin from IN <> OUT dynamically?
Posted on September 29, 2016 at 01:50
What would be the best way to reconfigure a pin from Input to Output and vice versa on the flight? The STM function HAL_GPIO_Init() is quite long so I would rather not use that function just to change a mode Input/Output.
What would be the most efficient way to change a pin I/O mode once it has been initially configured? Thanks.