diff --git a/.travis.yml b/.travis.yml index 1d9201e..7d19110 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ script: - git diff --check `git rev-list HEAD | tail -n 1`..$TRAVIS_BRANCH - platformio run -e mppt_2420_lc -e mppt_1210_hus -e mppt_2420_hpx -e pwm_2420_lus - platformio test -e unit_test - - platformio check -e mppt_1210_hus -e pwm_2420_lus + - platformio check -e mppt_1210_hus -e pwm_2420_lus --skip-packages --fail-on-defect high - doxygen Doxyfile deploy: diff --git a/boards/Kconfig b/boards/Kconfig index 7f002de..9e67ab0 100644 --- a/boards/Kconfig +++ b/boards/Kconfig @@ -27,14 +27,6 @@ config HS_MOSFET_FAIL_SAFE_PROTECTION short and trip the fuse by switching the low-side MOSFET continuously on. This will prevent accidental overcharging of the battery. -# -# Temporary solution to support building with Zephyr 2.2 and 2.3 -# - -config LEGACY_DEVICETREE_MACROS - bool "Allow use of legacy devicetree macros (fix for Zephyr 2.2)" - default y - # # Visible (user-configurable) Kconfig symbols # diff --git a/check.bat b/check.bat index 70780ba..6dc501a 100644 --- a/check.bat +++ b/check.bat @@ -25,7 +25,7 @@ if errorlevel 1 ( ) echo "---------- Running static code checks -------------" -platformio check -e mppt_1210_hus -e pwm_2420_lus +platformio check -e mppt_1210_hus -e pwm_2420_lus --skip-packages --fail-on-defect high if errorlevel 1 ( echo Failure Reason is %errorlevel% exit /b %errorlevel% diff --git a/check.sh b/check.sh index 953e5fa..9690592 100755 --- a/check.sh +++ b/check.sh @@ -23,7 +23,7 @@ if [ $? != 0 ]; then fi echo "---------- Running static code checks -------------" -platformio check -e mppt_1210_hus -e pwm_2420_lus +platformio check -e mppt_1210_hus -e pwm_2420_lus --skip-packages --fail-on-defect high if [ $? != 0 ]; then exit 1; fi diff --git a/platformio.ini b/platformio.ini index 46eb47d..7d48189 100644 --- a/platformio.ini +++ b/platformio.ini @@ -23,9 +23,9 @@ extra_configs = [env] -# ststm32 platform release 6.1.0 includes Zephyr 2.2.0 +# ststm32 platform release 7.1.1 includes Zephyr 2.3.0 #platform = https://github.com/platformio/platform-ststm32.git -platform = ststm32@~6.1.0 +platform = ststm32@~7.1.1 framework = zephyr @@ -50,7 +50,7 @@ extra_scripts = check_tool = cppcheck, clangtidy check_flags = - cppcheck: --enable=warning,style,performance,portability,information,missingInclude -j 7 + cppcheck: --enable=warning,style,performance,portability,information,missingInclude -j 7 --inline-suppr # --addon=addons/misra.py --addon=addons/cert.py clangtidy: --checks=-*,cert-*,clang-analyzer-*,bugprone-*,misc-*,performance-*,readability-*,-readability-magic-numbers,-cert-err58-cpp diff --git a/src/daq.h b/src/daq.h index 0862a9b..10d56f6 100644 --- a/src/daq.h +++ b/src/daq.h @@ -56,6 +56,7 @@ extern "C" { * * The channels must be specified in ascending order in the board.dts file. */ +// cppcheck-suppress syntaxError enum { DT_FOREACH_CHILD(DT_PATH(adc_inputs), ADC_ENUM) NUM_ADC_CH // trick to get the number of elements