Switch to Zephyr 2.3 and update pio check

This commit is contained in:
Martin Jäger
2020-07-23 12:55:38 +02:00
parent 6316dcd57f
commit 3012501358
6 changed files with 7 additions and 14 deletions
+1 -1
View File
@@ -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:
-8
View File
@@ -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
#
+1 -1
View File
@@ -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%
+1 -1
View File
@@ -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
+3 -3
View File
@@ -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
+1
View File
@@ -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