CMSIS violates the following MISRA-C:2004 rules:
- Required Rule 8.5, object/function definition in header file.
Function definitions in header files are used to allow 'inlining'.
- Required Rule 18.4, declaration of union type or object of union type: '{...}'.
Unions are used for effective representation of core registers.
- Advisory Rule 19.7, Function-like macro defined.
Function-like macros are used to allow more efficient code.