diff --git a/.github/workflows/zephyr.yml b/.github/workflows/zephyr.yml index 08b8048..a496f7c 100644 --- a/.github/workflows/zephyr.yml +++ b/.github/workflows/zephyr.yml @@ -5,7 +5,11 @@ on: [push, pull_request] jobs: build: runs-on: ubuntu-latest - container: zephyrprojectrtos/ci:latest + container: zephyrprojectrtos/ci:v0.18.4 + # Zephyr v2.7 requires newest SDK, which is not auto-selected by v0.18.4 docker image. Below + # env setting can be removed again after upgrade of the docker image. + env: + ZEPHYR_SDK_INSTALL_DIR: "/opt/toolchains/zephyr-sdk-0.13.1" steps: - name: Checkout uses: actions/checkout@v2 diff --git a/src/half_bridge.cpp b/src/half_bridge.cpp index 2c4c8f3..0d31d40 100644 --- a/src/half_bridge.cpp +++ b/src/half_bridge.cpp @@ -15,7 +15,7 @@ #ifndef UNIT_TEST #include -#include +#include #include #endif diff --git a/src/pwm_switch_driver.c b/src/pwm_switch_driver.c index e022c36..80d1dd7 100644 --- a/src/pwm_switch_driver.c +++ b/src/pwm_switch_driver.c @@ -25,7 +25,7 @@ #include #include -#include +#include #define DT_DRV_COMPAT st_stm32_pwm diff --git a/zephyr/prj.conf b/zephyr/prj.conf index 5aaaab5..893d04a 100644 --- a/zephyr/prj.conf +++ b/zephyr/prj.conf @@ -4,6 +4,7 @@ CONFIG_HEAP_MEM_POOL_SIZE=256 CONFIG_CPLUSPLUS=y +CONFIG_LIB_CPLUSPLUS=y CONFIG_NEWLIB_LIBC=y CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y diff --git a/zephyr/west.yml b/zephyr/west.yml index d7fefb5..1736d10 100644 --- a/zephyr/west.yml +++ b/zephyr/west.yml @@ -1,6 +1,6 @@ manifest: remotes: - - name: zephyrproject-rtos + - name: zephyrproject url-base: https://github.com/zephyrproject-rtos - name: libresolar url-base: https://github.com/LibreSolar @@ -8,15 +8,15 @@ manifest: url-base: https://github.com/ThingSet projects: - name: zephyr - remote: libresolar - revision: v2.6-branch + remote: zephyrproject + revision: v2.7-branch # path must be something else than zephyr as we get a Kconfig include recursion otherwise path: rtos import: # main zephyr modules should be placed in here into zephyr subdirectory path-prefix: zephyr # only get modules we actually need - name-whitelist: + name-allowlist: - cmsis - edtt - hal_stm32