1# Copyright (c) 2017 - 2018, Nordic Semiconductor ASA 2# SPDX-License-Identifier: Apache-2.0 3 4config COUNTER_NRF_TIMER 5 def_bool y 6 depends on DT_HAS_NORDIC_NRF_TIMER_ENABLED 7 8config COUNTER_NRF_RTC 9 def_bool y 10 depends on DT_HAS_NORDIC_NRF_RTC_ENABLED 11 12# Internal flag which detects if PPI wrap feature is enabled for any instance 13config COUNTER_RTC_WITH_PPI_WRAP 14 def_bool $(dt_nodelabel_bool_prop,rtc0,ppi-wrap) || \ 15 $(dt_nodelabel_bool_prop,rtc1,ppi-wrap) || \ 16 $(dt_nodelabel_bool_prop,rtc2,ppi-wrap) 17 depends on COUNTER_NRF_RTC 18 select NRFX_PPI if HAS_HW_NRF_PPI 19 select NRFX_DPPI if HAS_HW_NRF_DPPIC 20 21# Internal flag which detects if fixed top feature is enabled for any instance 22config COUNTER_RTC_CUSTOM_TOP_SUPPORT 23 def_bool !$(dt_nodelabel_bool_prop,rtc0,fixed-top) || \ 24 !$(dt_nodelabel_bool_prop,rtc1,fixed-top) || \ 25 !$(dt_nodelabel_bool_prop,rtc2,fixed-top) 26 depends on COUNTER_NRF_RTC 27