cancel
Showing results for 
Search instead for 
Did you mean: 

TIM_ETR_SetConfig() static or not?

TBirk
Associate

Hello,

when generating a STM32CubeMX project from within Keil µVision, in stm32f4xx_hal_tim.c (STM32F4xx_DFP/2.13.0) the function TIM_ETR_SetConfig is defined as static in the .c file and none-static in the corresponding .h file, so i need to change this manually to make the project compile. Is this a Bug in STM32CubeMX or has it to do with Keil µVision?

C:/Keil_v5/ARM/PACK/Keil/STM32F4xx_DFP/2.13.0/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c(161): error: static declaration of 'TIM_ETR_SetConfig' follows non-static declaration
 
static void TIM_ETR_SetConfig(TIM_TypeDef* TIMx, uint32_t TIM_ExtTRGPrescaler,
 
           ^
 
./RTE/Device/STM32F429IITx/STCubeGenerated/Drivers/STM32F4xx_HAL_Driver/Inc\stm32f4xx_hal_tim.h(1938): note: previous declaration is here
 
void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
 
    ^
 
C:/Keil_v5/ARM/PACK/Keil/STM32F4xx_DFP/2.13.0/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c(5368): error: static declaration of 'TIM_ETR_SetConfig' follows non-static declaration
 
static void TIM_ETR_SetConfig(TIM_TypeDef* TIMx, uint32_t TIM_ExtTRGPrescaler,
 
           ^
 
./RTE/Device/STM32F429IITx/STCubeGenerated/Drivers/STM32F4xx_HAL_Driver/Inc\stm32f4xx_hal_tim.h(1938): note: previous declaration is here
 
void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,

Best Regards

Thomas

0 REPLIES 0