1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/kinetis/Makefile.dep
Benjamin Valentin 9c1455d55f cpu: make pm_layered a DEFAULT_MODULE
Allow to disable pm_layered in the bootloader to save some ROM.
2021-01-27 13:21:20 +01:00

26 lines
727 B
Makefile

ifneq (,$(filter periph_rtc,$(USEMODULE)))
USEMODULE += periph_rtt
endif
ifneq (,$(filter periph_i2c,$(USEMODULE)))
USEMODULE += core_thread_flags
endif
# 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
FEATURES_OPTIONAL += periph_mcg_lite
ifneq (,$(filter periph_ics,$(FEATURES_USED)))
USEMODULE += periph_ics
else ifneq (,$(filter periph_mcg,$(FEATURES_USED)))
USEMODULE += periph_mcg
else ifneq (,$(filter periph_mcg_lite,$(FEATURES_USED)))
USEMODULE += periph_mcg_lite
endif
USEMODULE += periph_wdog
include $(RIOTCPU)/cortexm_common/Makefile.dep