Question
Comparators vs DWT
Hi guys,
i just wanted to mention that there is a ****** in the header files.
I am using an STM32G474:
Just an example - stm32g474xx.h defines
#define COMP3 ((COMP_TypeDef *) COMP3_BASE)And core_cm4.h uses
__IOM uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */as part of DWT_Type.
Same applies to COMP2 and so on.
Good luck fixing this. Basically you have to rename the comparators.
