Skip to content

Commit f2508ad

Browse files
committed
fix misra pt1
1 parent 5c2834a commit f2508ad

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

board/stm32f4/stm32f4_config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#include "stm32f4/clock.h"
77

88
#ifdef PANDA_JUNGLE
9-
#include "board/jungle/stm32f4/board.h"
9+
#include "jungle/stm32f4/board.h"
1010
#else
11-
#include "board/stm32f4/board.h"
11+
#include "stm32f4/board.h"
1212
#endif
1313

1414
#include "stm32f4/llspi.h"

tests/misra/test_misra.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
set -e
2+
set -ex
33

44
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
55
PANDA_DIR=$(realpath $DIR/../../)
@@ -44,12 +44,19 @@ cppcheck() {
4444
echo -e "\n\n\n\n\nTEST variant options:" >> $CHECKLIST
4545
echo -e ""${@//$PANDA_DIR/}"\n\n" >> $CHECKLIST # (absolute path removed)
4646

47-
$CPPCHECK_DIR/cppcheck --inline-suppr -I $PANDA_DIR/board/ \
47+
$CPPCHECK_DIR/cppcheck --inline-suppr \
48+
-I $PANDA_DIR/ \
49+
-I $PANDA_DIR/board/ \
50+
-I $PANDA_DIR/board/stm32f4/ \
51+
-I $PANDA_DIR/board/stm32h7/ \
52+
-I $PANDA_DIR/include/board/ \
53+
-I $PANDA_DIR/include/board/stm32f4/ \
54+
-I $PANDA_DIR/include/board/stm32h7/ \
4855
-I "$(arm-none-eabi-gcc -print-file-name=include)" \
4956
-I $PANDA_DIR/board/stm32f4/inc/ -I $PANDA_DIR/board/stm32h7/inc/ \
5057
-I $PANDA_DIR/../opendbc/safety/ \
5158
--suppressions-list=$DIR/suppressions.txt --suppress=*:*inc/* \
52-
--suppress=*:*include/* --error-exitcode=2 --check-level=exhaustive --safety \
59+
--error-exitcode=2 --check-level=exhaustive --safety \
5360
--platform=arm32-wchar_t4 $COMMON_DEFINES --checkers-report=$CHECKLIST.tmp \
5461
--std=c11 "$@" 2>&1 | tee $OUTPUT
5562

0 commit comments

Comments
 (0)