# SPDX-License-Identifier: Apache-2.0

zephyr_include_directories(${ZEPHYR_BASE}/drivers)
zephyr_sources(
  soc.c
  )

zephyr_sources_ifdef(CONFIG_PM
  power.c
  )

zephyr_sources_ifdef(CONFIG_POWEROFF poweroff.c)
if(CONFIG_BT_STM32WBA OR CONFIG_IEEE802154_STM32WBA)
  zephyr_include_directories(hci_if)
  zephyr_sources(hci_if/linklayer_plat_adapt.c)
  zephyr_sources(hci_if/sys_wireless_plat.c)
  zephyr_sources(hci_if/host_stack_if.c)
  zephyr_sources(hci_if/ll_sys_if_adapt.c)
  zephyr_sources(hci_if/stm32_timer.c)
endif()

zephyr_include_directories(.)

set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
