cancel
Showing results for 
Search instead for 
Did you mean: 

Good evening, I'm working with a timer (TIMER4) for a PWM generation. I want to replace the TIM4-> CCR1 = SpeedMotor instruction with a simple call that uses the HAL library. Propose me a solution. Thank you.

AGHAZ
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions

hi.

__HAL_TIM_SET_COMPARE(&htim4, TIM_CHANNEL_1, SpeedMotor);

View solution in original post

1 REPLY 1

hi.

__HAL_TIM_SET_COMPARE(&htim4, TIM_CHANNEL_1, SpeedMotor);