We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dear Support
You define in lot of CPU files
#define COMP1 (COMP_TypeDef *) COMP1_BASE #define COMP2 (COMP_TypeDef *) COMP2_BASE
But CMSIS also use COMP1 or COMP2 in DWT_Type in core_cm4.h
So depending of the include order of above file one of both symbols is not accessible or result in compile errors.
Please don't use preprocessor for most definition
Better use static COMP_TypeDef * const COMP1 = (COMP_TypeDef *) COMP1_BASE; static COMP_TypeDef * const COMP2 = (COMP_TypeDef *) COMP2_BASE;
Modern Compiler can remove unused const Reto Felix
The text was updated successfully, but these errors were encountered:
TOUNSTM
No branches or pull requests
Dear Support
You define in lot of CPU files
#define COMP1 (COMP_TypeDef *) COMP1_BASE
#define COMP2 (COMP_TypeDef *) COMP2_BASE
But CMSIS also use COMP1 or COMP2 in DWT_Type in core_cm4.h
So depending of the include order of above file one of both symbols is not accessible or result in compile errors.
Please don't use preprocessor for most definition
Better use
static COMP_TypeDef * const COMP1 = (COMP_TypeDef *) COMP1_BASE;
static COMP_TypeDef * const COMP2 = (COMP_TypeDef *) COMP2_BASE;
Modern Compiler can remove unused const
Reto Felix
The text was updated successfully, but these errors were encountered: