How to change GPIO parameters from OUTPUT to PWM, and vice versa?
Hi, everyone, I have the next problem, I am using the same pins like a simple GPIO output, and like a PWM output.
To change the output from PWM to GPIO i using this code:
GPIO_InitTypeDef gpio;
gpio.Pin = GPIO_PIN_0|GPIO_PIN_1;
gpio.Mode = GPIO_MODE_OUTPUT_PP;
HAL_GPIO_Init(GPIOB, &gpio);
But, how to return PWM initialization?