From 4d7d20e2976fca87df02e4f6b7d841ce1316df7a Mon Sep 17 00:00:00 2001 From: TOKITA Hiroshi Date: Wed, 5 Feb 2025 12:32:04 +0900 Subject: [PATCH] modules: hal_rpi_pico: Introducing `-std=gnu11` option The original Pico-SDK is compiled with `-std=gnu11` option. Aligning with it. Signed-off-by: TOKITA Hiroshi --- modules/hal_rpi_pico/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/hal_rpi_pico/CMakeLists.txt b/modules/hal_rpi_pico/CMakeLists.txt index 0de932595703..0a02aeae8929 100644 --- a/modules/hal_rpi_pico/CMakeLists.txt +++ b/modules/hal_rpi_pico/CMakeLists.txt @@ -4,6 +4,7 @@ include(ExternalProject) if(CONFIG_HAS_RPI_PICO) zephyr_library() + zephyr_library_compile_options(-std=gnu11) set(rp2_common_dir ${ZEPHYR_HAL_RPI_PICO_MODULE_DIR}/src/rp2_common) set(rp2xxx_dir ${ZEPHYR_HAL_RPI_PICO_MODULE_DIR}/src/${CONFIG_SOC_SERIES})