cancel
Showing results for 
Search instead for 
Did you mean: 

[bug report] no definition TIM_ICPOLARITY_BOTHEDGE in stm32f1xx_hal_tim.h

Orels cuvox
Associate II
Posted on January 09, 2018 at 22:19

NO definition for

TIM_ICPOLARITY_BOTHEDGE

that generated by cubemx in stm32f1xx_hal_tim.h

  * @file    stm32f1xx_hal_tim.h

  * @author  MCD Application Team

  * @version V1.1.1

  * @date    12-May-2017

  * @brief   Header file of TIM HAL module.

/** @defgroup TIM_Input_Capture_Polarity TIM Input Capture Polarity

  * @{

  */

&sharpdefine  TIM_ICPOLARITY_RISING             TIM_INPUTCHANNELPOLARITY_RISING

&sharpdefine  TIM_ICPOLARITY_FALLING            TIM_INPUTCHANNELPOLARITY_FALLING

--->>> definition must be here

&sharpdefine TIM_ICPOLARITY_BOTHEDGE TIM_INPUTCHANNELPOLARITY_BOTHEDGE <<<---

/**

  * @}

  */

STM32CubeMX Software V4.23.0 / 20 October 2017

STM32CubeF1 Firmware Package V1.6.0 / 17-May-2017

#bug-report #stmcubemx-bug-report
3 REPLIES 3
Orels cuvox
Associate II
Posted on January 09, 2018 at 22:21

#define TIM_ICPOLARITY_BOTHEDGE TIM_INPUTCHANNELPOLARITY_BOTHEDGE 

Imen.D
ST Employee
Posted on January 16, 2018 at 15:27

Hello,

Thank you

Orels1967_cuvox.de.O

for sharing your issue.

We raised this internally for check and we come back to you withtaken actions/explanation if needed.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on May 18, 2018 at 10:35

Hello

Orels1967_cuvox.de.O

,

We confirmed that in the latest version of the RM0008:

- Both edges is NOT supported for TIM1/8 and TIM2/3/4/5

- Both edges is supported for TIM9/10/11/12/13/

Therefore, the TIM_ICPOLARITY_BOTHEDGE definition will be added in the stm32f1xx_hal_tim.h

for the

coming release of CubeF1 firmware package in order to align with the reference manual.

Best Regards,

Imen

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