2021-06-25 20:38:11 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2021, Microchip Technology Inc.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
zephyr_include_directories(${ZEPHYR_BASE}/drivers)
|
|
|
|
zephyr_sources(
|
|
|
|
soc.c
|
|
|
|
)
|
|
|
|
|
2022-05-04 03:11:25 +08:00
|
|
|
if(CONFIG_PM)
|
2023-01-14 02:32:56 +08:00
|
|
|
zephyr_library_sources(power.c device_power.c)
|
2022-05-04 03:11:25 +08:00
|
|
|
endif()
|
|
|
|
|
2021-06-25 20:38:11 +08:00
|
|
|
if(CONFIG_SOC_HAS_TIMING_FUNCTIONS AND NOT CONFIG_BOARD_HAS_TIMING_FUNCTIONS)
|
|
|
|
if(CONFIG_TIMING_FUNCTIONS)
|
|
|
|
# Use MEC172x timing calculations only if DWT is not present
|
|
|
|
if(NOT CONFIG_CORTEX_M_DWT)
|
|
|
|
zephyr_library_sources(timing.c)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
2023-10-28 05:34:14 +08:00
|
|
|
|
|
|
|
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
|