Skip to main content
Visitor II
March 18, 2020
Solved

Has anyone else noticed a typo in stm32g4xx_ll_tim.h in the cube. TIM_CR1_CMS_0 is the center-down.

  • March 18, 2020
  • 2 replies
  • 979 views

#define LL_TIM_COUNTERMODE_CENTER_UP          TIM_CR1_CMS_0       /*!< The counter counts up and down alternatively. Output compare interrupt flags of output channels are set only when the counter is counting down. */

#define LL_TIM_COUNTERMODE_CENTER_DOWN        TIM_CR1_CMS_1       /*!<The counter counts up and down alternatively. Output compare interrupt flags of output channels are set only when the counter is counting up */

    This topic has been closed for replies.
    Best answer by Imen.D

    Hello @DAlbe.1375​ ,

    You are right, I raised this issue internally for correction.

    The mode are inverted and TIM_CR1_CMS_0 should be LL_TIM_COUNTERMODE_CENTER_DOWN.

    0693W000000UCZwQAO.pngThank you for your highlight and contribution.

    Best Regards,

    Imen

    2 replies

    Imen.DAnswer
    Technical Moderator
    March 18, 2020

    Hello @DAlbe.1375​ ,

    You are right, I raised this issue internally for correction.

    The mode are inverted and TIM_CR1_CMS_0 should be LL_TIM_COUNTERMODE_CENTER_DOWN.

    0693W000000UCZwQAO.pngThank you for your highlight and contribution.

    Best Regards,

    Imen

    Technical Moderator
    September 17, 2020

    Hello @DAlbe.1375​ ,

    This issue is fixed in the STM32CubeG4 V1.3.0.

    Thank you for your contribution to improve our products.

    Thanks,

    Imen