1#
2# Copyright (c) 2019, Microchip Technology Inc.
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7zephyr_sources(
8  soc.c
9  )
10
11zephyr_sources_ifdef(CONFIG_PM
12  device_power.c
13  power.c
14  )
15
16if(CONFIG_SOC_HAS_TIMING_FUNCTIONS AND NOT CONFIG_BOARD_HAS_TIMING_FUNCTIONS)
17  if(CONFIG_TIMING_FUNCTIONS)
18    # Use MEC15xx timing calculations only if DWT is not present
19    if(NOT CONFIG_CORTEX_M_DWT)
20      zephyr_library_sources(timing.c)
21    endif()
22  endif()
23endif()
24