Closed salkinium closed 5 years ago
Describe the set-up
#include <stm32f3xx.h>
Describe the bug
HRTIM_TIM_TypeDef is undefined. After cross referencing this with the RM you probably meant to use HRTIM_Timerx_TypeDef.
HRTIM_TIM_TypeDef
HRTIM_Timerx_TypeDef
How To Reproduce
Trying to access HRTIM1_TIMA in any code will fail, since HRTIM_TIM_TypeDef is undefined:
HRTIM1_TIMA
#include <stm32f3xx.h> HRTIM1_TIMA->TIMxCR = 0;
Additional context
-#define HRTIM1_TIMA ((HRTIM_TIM_TypeDef *) HRTIM1_TIMA_BASE) -#define HRTIM1_TIMB ((HRTIM_TIM_TypeDef *) HRTIM1_TIMB_BASE) -#define HRTIM1_TIMC ((HRTIM_TIM_TypeDef *) HRTIM1_TIMC_BASE) -#define HRTIM1_TIMD ((HRTIM_TIM_TypeDef *) HRTIM1_TIMD_BASE) -#define HRTIM1_TIME ((HRTIM_TIM_TypeDef *) HRTIM1_TIME_BASE) +#define HRTIM1_TIMA ((HRTIM_Timerx_TypeDef *) HRTIM1_TIMA_BASE) +#define HRTIM1_TIMB ((HRTIM_Timerx_TypeDef *) HRTIM1_TIMB_BASE) +#define HRTIM1_TIMC ((HRTIM_Timerx_TypeDef *) HRTIM1_TIMC_BASE) +#define HRTIM1_TIMD ((HRTIM_Timerx_TypeDef *) HRTIM1_TIMD_BASE) +#define HRTIM1_TIME ((HRTIM_Timerx_TypeDef *) HRTIM1_TIME_BASE)
Full patch Related to https://github.com/STMicroelectronics/STM32CubeH7/issues/2.
Wrong repository, sorry, meant this for STM32F3.
Describe the set-up
#include <stm32f3xx.h>
Describe the bug
HRTIM_TIM_TypeDef
is undefined. After cross referencing this with the RM you probably meant to useHRTIM_Timerx_TypeDef
.How To Reproduce
Trying to access
HRTIM1_TIMA
in any code will fail, sinceHRTIM_TIM_TypeDef
is undefined:Additional context
Full patch Related to https://github.com/STMicroelectronics/STM32CubeH7/issues/2.