Skip to content

Commit

Permalink
modules: hal_silabs: Update CMake with new EMDRV hal
Browse files Browse the repository at this point in the history
Update Cmake to include hal EMDRV header
It also adds dmadrv source when CONFIG_SOC_GECKO_LDMA is selected

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
  • Loading branch information
Martinhoff-maker committed Feb 12, 2025
1 parent c1a5262 commit 9b08aee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/hal_silabs/simplicity_sdk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# SPDX-License-Identifier: Apache-2.0

set(EMLIB_DIR ${ZEPHYR_HAL_SILABS_MODULE_DIR}/simplicity_sdk/platform/emlib)
set(EMDRV_DIR ${ZEPHYR_HAL_SILABS_MODULE_DIR}/simplicity_sdk/platform/emdrv)
set(COMMON_DIR ${ZEPHYR_HAL_SILABS_MODULE_DIR}/simplicity_sdk/platform/common)
set(DEVICE_DIR ${ZEPHYR_HAL_SILABS_MODULE_DIR}/simplicity_sdk/platform/Device)
set(DRIVER_DIR ${ZEPHYR_HAL_SILABS_MODULE_DIR}/simplicity_sdk/platform/driver)
Expand Down Expand Up @@ -99,6 +100,10 @@ zephyr_include_directories(
${COMMON_DIR}/config
${COMMON_DIR}/inc
${DRIVER_DIR}/gpio/inc
${EMDRV_DIR}/common/inc
${EMDRV_DIR}/dmadrv/config/s2_8ch/
${EMDRV_DIR}/dmadrv/inc
${EMDRV_DIR}/dmadrv/inc/s2_signals/
${EMLIB_DIR}/inc
${PERIPHERAL_DIR}/inc
${SERVICE_DIR}/clock_manager/inc
Expand Down Expand Up @@ -226,6 +231,9 @@ if(CONFIG_SOC_GECKO_GPIO)
SL_CODE_COMPONENT_HAL_GPIO=hal_gpio
)
endif()

zephyr_library_sources_ifdef(CONFIG_SOC_GECKO_LDMA ${EMDRV_DIR}/dmadrv/src/dmadrv.c)

zephyr_library_sources_ifdef(CONFIG_SOC_GECKO_I2C ${EMLIB_DIR}/src/em_i2c.c)
zephyr_library_sources_ifdef(CONFIG_SOC_GECKO_LETIMER ${EMLIB_DIR}/src/em_letimer.c)
zephyr_library_sources_ifdef(CONFIG_SOC_GECKO_LEUART ${EMLIB_DIR}/src/em_leuart.c)
Expand Down

0 comments on commit 9b08aee

Please sign in to comment.