Has anyone else noticed a typo in stm32g4xx_ll_tim.h in the cube. TIM_CR1_CMS_0 is the center-down.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-03-17 5:46 PM
#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 */
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-03-18 5:32 AM
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.
Thank you for your highlight and contribution.
Best Regards,
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-03-18 5:32 AM
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.
Thank you for your highlight and contribution.
Best Regards,
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-09-17 9:16 AM
Hello @DAlbe.1375 ,
This issue is fixed in the STM32CubeG4 V1.3.0.
Thank you for your contribution to improve our products.
Thanks,
Imen
Thanks
Imen
