cancel
Showing results for 
Search instead for 
Did you mean: 

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

DAlbe.1375
Associate

#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 */

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

2 REPLIES 2
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Imen.D
ST Employee

Hello @DAlbe.1375​ ,

This issue is fixed in the STM32CubeG4 V1.3.0.

Thank you for your contribution to improve our products.

Thanks,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen