2020-05-03 14:35:01 +02:00
|
|
|
# All stm32 families provide pm support
|
|
|
|
|
2020-05-22 17:12:11 +02:00
|
|
|
# include stm32 common periph drivers, clock configurations and vectors
|
|
|
|
USEMODULE += periph stm32_clk stm32_vectors
|
2020-05-03 14:35:01 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter periph_usbdev,$(FEATURES_USED)))
|
2021-10-24 21:19:03 +02:00
|
|
|
USEMODULE += ztimer
|
|
|
|
USEMODULE += ztimer_msec
|
2020-05-03 14:35:01 +02:00
|
|
|
endif
|
|
|
|
|
2020-06-10 15:44:58 +02:00
|
|
|
ifneq (,$(filter periph_uart_nonblocking,$(USEMODULE)))
|
|
|
|
USEMODULE += tsrb
|
|
|
|
endif
|
|
|
|
|
2020-10-12 10:43:41 +02:00
|
|
|
ifneq (,$(filter stm32_eth_%,$(USEMODULE)))
|
|
|
|
USEMODULE += stm32_eth
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter stm32_eth_auto,$(USEMODULE)))
|
|
|
|
USEMODULE += stm32_eth_link_up
|
|
|
|
endif
|
|
|
|
|
2020-07-26 22:05:18 +02:00
|
|
|
ifneq (,$(filter stm32_eth,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_eth
|
|
|
|
USEMODULE += netdev_eth
|
|
|
|
USEMODULE += iolist
|
2020-08-03 14:31:46 +02:00
|
|
|
USEMODULE += xtimer
|
2020-07-26 22:05:18 +02:00
|
|
|
endif
|
|
|
|
|
2020-09-29 14:35:15 +02:00
|
|
|
ifneq (,$(filter periph_can,$(FEATURES_USED)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_gpio_irq
|
|
|
|
endif
|
|
|
|
|
2020-07-15 17:18:19 +02:00
|
|
|
ifneq (,$(filter periph_eth periph_ptp,$(USEMODULE)))
|
|
|
|
USEMODULE += periph_eth_common
|
|
|
|
endif
|
|
|
|
|
2021-09-03 11:15:17 +02:00
|
|
|
# periph_rtc_mem is currently tied to the peripg_rtc
|
|
|
|
ifneq (,$(filter periph_rtc_mem,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_rtc
|
|
|
|
endif
|
|
|
|
|
2020-05-03 14:35:01 +02:00
|
|
|
include $(RIOTCPU)/cortexm_common/Makefile.dep
|