Change Pin mode from analog to digital in run time. See my code below..
I want to use pin to work as output pin for some time and then Analog pin for some time.how can I change the mode of pin in run time. GPIO_InitTypeDef GPIO_InitStruct = {0}; ADC_ChannelConfTypeDef sConfig = {0}; HAL_GPIO_WritePin(GPIOC, GPIO_PIN_...