how to change output pin to pwm pin
hello guys i am new to stm,i am using stm32103 and stmcubeide ,my question is very basic ,i know how to initialize a pin as an output pin or as a pwmpin but i donot know that how to change an output pin into a pwmoutput pin and then again convert that pin from pwmout to general output pin in the middle of a program ,in my case i am using pin no PA8 as TIM1_ch1 pwm out ,, I want to convert it to PA8 GPIO_output then again ,from GPIO_output to TIM1_ch1 in middle of programme please help me,
