2021-06-11 18:00:16 +02:00
|
|
|
ifneq (,$(filter periph_rtt,$(USEMODULE)))
|
|
|
|
USEMODULE += periph_timer
|
|
|
|
endif
|
2018-06-04 09:13:09 +02:00
|
|
|
ifneq (,$(filter periph_i2c,$(USEMODULE)))
|
|
|
|
USEMODULE += core_thread_flags
|
|
|
|
endif
|
2020-03-27 02:30:11 +01:00
|
|
|
|
2020-05-20 19:28:53 +02:00
|
|
|
# select kinetis periph drivers
|
|
|
|
# As FEATURES_PROVIDED cannot be checked directly, add both to FEATURES_OPTIONAL
|
|
|
|
# and check FEATURES_USED instead.
|
|
|
|
FEATURES_OPTIONAL += periph_ics
|
|
|
|
FEATURES_OPTIONAL += periph_mcg
|
2018-04-24 18:36:22 +02:00
|
|
|
FEATURES_OPTIONAL += periph_mcg_lite
|
2020-05-20 19:28:53 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter periph_ics,$(FEATURES_USED)))
|
|
|
|
USEMODULE += periph_ics
|
|
|
|
else ifneq (,$(filter periph_mcg,$(FEATURES_USED)))
|
|
|
|
USEMODULE += periph_mcg
|
2018-04-24 18:36:22 +02:00
|
|
|
else ifneq (,$(filter periph_mcg_lite,$(FEATURES_USED)))
|
|
|
|
USEMODULE += periph_mcg_lite
|
2020-05-20 19:28:53 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
USEMODULE += periph_wdog
|
|
|
|
|
2020-03-27 02:30:11 +01:00
|
|
|
include $(RIOTCPU)/cortexm_common/Makefile.dep
|