Skip to content

Commit 0d7c0d8

Browse files
committed
modules/cmsis-dsp: Don't use Zephyr stdint.h
Zephyr replaces the toolchain version of stdint.h to define uint32_t and int32_t as int rather than long. This breaks the ARM MVE intrinics which require uint32_t to be defined as unsigned long. Define 'ZEPHYR_USE_TOOLCHAIN_STDINT_H_' as that causes zephyr_stdint.h to be skipped, ensuring that the normal stdint.h types are used instead. Signed-off-by: Keith Packard <keithp@keithp.com>
1 parent 6d314dc commit 0d7c0d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/cmsis-dsp/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ if(CONFIG_CMSIS_DSP)
1919
${cmsis_glue_path}/CMSIS/Core/Include
2020
)
2121

22+
# Define ZEPHYR_INCLUDE_TOOLCHAIN_STDINT_H_ to avoid using Zephyr's stdint.h
23+
zephyr_library_compile_definitions(ZEPHYR_INCLUDE_TOOLCHAIN_STDINT_H_)
24+
2225
# Global Feature Definitions
2326
zephyr_library_compile_definitions_ifdef(CONFIG_CMSIS_DSP_NEON ARM_MATH_NEON)
2427
zephyr_library_compile_definitions_ifdef(CONFIG_CMSIS_DSP_NEON_EXPERIMENTAL ARM_MATH_NEON_EXPERIMENTAL)

0 commit comments

Comments
 (0)