STMicroelectronics / STM32CubeG0

STM32Cube MCU Full Package for the STM32G0 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
164 stars 75 forks source link

DMAMUX_IdRegisters_TypeDef is undefined #2

Closed salkinium closed 5 years ago

salkinium commented 5 years ago

Describe the set-up

Describe the bug

In every CMSIS device header there is a line like this:

#define DMAMUX1_IdRegisters        ((DMAMUX_IdRegisters_TypeDef *) DMAMUX1_IdRegisters_BASE)

However, DMAMUX_IdRegisters_TypeDef is never declared.

How To Reproduce

Just try to use the DMAMUX_IdRegisters_TypeDef anywhere in your code, for example like this:

#define STM32G071xx 1
#include <stm32g0xx.h>
DMAMUX_IdRegisters_TypeDef type;

Additional context

I found this issue during debugging when I wanted to read the values of DMAMUX1_IdRegisters in GDB, which failed since DMAMUX_IdRegisters_TypeDef was unknown. I can read the values manually, but it's quite annoying.

CCASTM commented 5 years ago

Hello Niklas, Thank you for your finding. This definition is obsolete, you can simply remove it. We will correct this situation in our next publication of the STM32G0 FW Package With ALi @ALABSTM
ST Internal Reference: 67835 Regards Christophe

ALABSTM commented 4 years ago

ST Internal Reference: 67835