If you are using hal library......
void HAL_GPIO_DeInit(GPIOA, GPIO_PIN_13 |GPIO_PIN_14);
Config as Output PushPull:
GPIO_InitStruct.Pin = GPIO_PIN_13 | GPIO_PIN_14;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
Is that what you want? You may check this routines in stm32l0xx_hal_gpio.c
1 of 1 people found this helpful
Thanks for that Zhitai, all working.