STMicroelectronics / STM32CubeL1

Full Firmware Package for the STM32L1 series: HAL+LL drivers, CMSIS, BSP, MW, plus a set of Projects (examples and demos) running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits).
Other
37 stars 24 forks source link

HRTIM_TIM_TypeDef is undefined #1

Closed salkinium closed 5 years ago

salkinium commented 5 years ago

Describe the set-up

Describe the bug

HRTIM_TIM_TypeDef is undefined. After cross referencing this with the RM you probably meant to use HRTIM_Timerx_TypeDef.

How To Reproduce

Trying to access HRTIM1_TIMA in any code will fail, since HRTIM_TIM_TypeDef is undefined:

#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.

salkinium commented 5 years ago

Wrong repository, sorry, meant this for STM32F3.