2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
add_subdirectory(${SOC_SERIES})
|
2019-09-23 20:26:56 +08:00
|
|
|
|
|
|
|
zephyr_sources(
|
|
|
|
validate_base_addresses.c
|
2020-03-27 20:53:34 +08:00
|
|
|
validate_enabled_instances.c
|
2019-09-23 20:26:56 +08:00
|
|
|
)
|
2020-08-18 08:19:30 +08:00
|
|
|
|
|
|
|
if(CONFIG_SOC_HAS_TIMING_FUNCTIONS AND NOT CONFIG_BOARD_HAS_TIMING_FUNCTIONS)
|
2020-09-03 19:17:42 +08:00
|
|
|
if(CONFIG_TIMING_FUNCTIONS)
|
|
|
|
# Use nRF-specific timing calculations only if DWT is not present
|
|
|
|
if(NOT CONFIG_CORTEX_M_DWT)
|
|
|
|
zephyr_library_sources(timing.c)
|
|
|
|
endif()
|
|
|
|
endif()
|
2020-08-18 08:19:30 +08:00
|
|
|
endif()
|