Add PWM control functionality

This commit is contained in:
2025-04-20 17:30:52 +02:00
parent 1a517299a0
commit 804bb33064
5 changed files with 104 additions and 12 deletions

View File

@ -437,7 +437,7 @@ void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle)
PB6 ------> TIM4_CH1
PB7 ------> TIM4_CH2
*/
GPIO_InitStruct.Pin = PWM3_2_Pin|PWM3_2B7_Pin;
GPIO_InitStruct.Pin = PWM3_1_Pin|PWM3_2_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;