Skip to main content
AGHAZ
Associate II
March 5, 2019
Solved

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.

  • March 5, 2019
  • 1 reply
  • 641 views

..

    This topic has been closed for replies.
    Best answer by Vangelis Fortounas

    hi.

    __HAL_TIM_SET_COMPARE(&htim4, TIM_CHANNEL_1, SpeedMotor);

    1 reply

    Vangelis Fortounas
    Associate II
    March 5, 2019

    hi.

    __HAL_TIM_SET_COMPARE(&htim4, TIM_CHANNEL_1, SpeedMotor);