Skip to content

Commit c67b3b5

Browse files
committed
modules: hal_gigadevice: make compile definitions global
GD32F4XX requires access to SoC definitions (e.g. GD32F450) when including library header files, so expose them at Zephyr level. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 6c8fa69 commit c67b3b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hal_gigadevice/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set(gd32_std_src_dir ${gd32_std_dir}/Source)
1313

1414
zephyr_library_named(hal_gigadevice)
1515

16-
zephyr_library_compile_definitions(${gd32_soc_uc})
16+
zephyr_compile_definitions(${gd32_soc_uc})
1717

1818
# Global includes to be used outside hal_gigadevice
1919
zephyr_include_directories(${gd32_cmsis_dir}/Include)

0 commit comments

Comments
 (0)