2 Specific MISRA C:2012 Deviations

Global diag_timerCount

Advisory: misra-c2012-8.9  

Justification: False Positive. MISRA rule 8.9 states that an object should be defined at block scope if its identifier only appears in a single function. In this case, the variables cannot be moved inside a single function because the variable is actually used inside two functions and not detected by CPP Checker since it is used in the form of assembly code in one of the functions. Therefore, this is a false positive and can be suppressed.