Skip to content

Commit

Permalink
enable misra-c2012-2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Jan 10, 2024
1 parent 734bf09 commit f64ba24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion board/drivers/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ void usb_setup(void) {
// 96 bits = 12 bytes
for (int i = 0; i < 12; i++){
uint8_t cc = ((uint8_t *)UID_BASE)[i];
resp[2 + (i * 4) + 0] = to_hex_char((cc >> 4) & 0xFU);
resp[2 + (i * 4)] = to_hex_char((cc >> 4) & 0xFU);
resp[2 + (i * 4) + 1] = '\0';
resp[2 + (i * 4) + 2] = to_hex_char((cc >> 0) & 0xFU);
resp[2 + (i * 4) + 3] = '\0';
Expand Down
3 changes: 1 addition & 2 deletions tests/misra/suppressions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ constParameterCallback
knownConditionTrueFalse

misra-config
misra-c2012-1.2
misra-c2012-2.2
misra-c2012-1.2 # this is from the extensions (e.g. __typeof__) used in the MIN, MAX, ABS, and CLAMP macros
misra-c2012-2.3
misra-c2012-2.4
misra-c2012-2.5
Expand Down

0 comments on commit f64ba24

Please sign in to comment.