Skip to main content
Orels cuvox
Associate
January 9, 2018
Question

[bug report] no definition TIM_ICPOLARITY_BOTHEDGE in stm32f1xx_hal_tim.h

  • January 9, 2018
  • 2 replies
  • 1056 views
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
This topic has been closed for replies.

2 replies

Orels cuvox
Associate
January 9, 2018
Posted on January 09, 2018 at 22:21

#define TIM_ICPOLARITY_BOTHEDGE TIM_INPUTCHANNELPOLARITY_BOTHEDGE 

Technical Moderator
May 18, 2018
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Technical Moderator
January 16, 2018
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks