Skip to content

Commit

Permalink
Document inline assembly usage according to MISRA-C Directive 4.2
Browse files Browse the repository at this point in the history
Fixes #181
  • Loading branch information
JonatanAntoni committed Jul 29, 2024
1 parent b258ac9 commit bdefe6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMSIS/Documentation/Doxygen/Core/src/misra.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ CMSIS-Core (Cortex-M) uses the common coding rules for CMSIS components that are

CMSIS-Core (Cortex-M) violates the following MISRA-C:2012 rules:

- Directive 4.2, All usage of assembly language should be documented
- CMSIS-Core uses assembly statements to access core registers on several places. These locations start with __ASM.
- Inline assembly statements my be opaque to MISRA Checkers and can cause false-positive warnings.

- Directive 4.9, function-like macro defined.
- Violated since function-like macros are used to generate more efficient code.

Expand Down

0 comments on commit bdefe6c

Please sign in to comment.