Question
Change GPIO direction dynamically
Posted on July 10, 2014 at 14:39
Hi All
I'm using an STM32L151 in my project.I have one GPIO configured as an input, and I need to change the direction dynamically. What is the most efficient way to do this ?Each time I want to change direction, should I:Call GPIO_Deinit()Re-populate the structure GPIO_InitStructure according to the new directionCall GPIO_Init()Is there a most efficient way to do ?ThanksJerome #gpio-port #stm32l #gpio #stm32