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)))
|
2022-10-23 22:09:25 +02:00
|
|
|
ifneq (,$(filter f2 f4 f7 h7 u5,$(CPU_FAM)))
|
|
|
|
# Whole STM32 families F2, F4, F7, H7 and U5 use the Synopsys DWC2 USB OTG core
|
2022-09-24 23:31:54 +02:00
|
|
|
USEMODULE += usbdev_synopsys_dwc2
|
2024-03-13 21:39:07 +01:00
|
|
|
USEMODULE += ztimer
|
|
|
|
USEMODULE += ztimer_msec
|
2022-10-23 22:09:25 +02:00
|
|
|
else ifneq (,$(filter stm32f105% stm32f107%,$(CPU_MODEL)))
|
|
|
|
# STM32F105xx and STM32F107xx also use the Synopsys DWC2 USB OTG core
|
|
|
|
USEMODULE += usbdev_synopsys_dwc2
|
2024-03-13 21:39:07 +01:00
|
|
|
USEMODULE += ztimer
|
|
|
|
USEMODULE += ztimer_msec
|
2022-10-23 22:09:25 +02:00
|
|
|
else ifneq (,$(filter stm32l47% stm32l48% stm32l49%,$(CPU_MODEL)))
|
|
|
|
# STM32L475xx, STM32L476xx, STM32L485xx, STM32L486xx and STM32L496xx
|
|
|
|
# also use the Synopsys DWC2 USB OTG core
|
|
|
|
USEMODULE += usbdev_synopsys_dwc2
|
2024-03-13 21:39:07 +01:00
|
|
|
USEMODULE += ztimer
|
|
|
|
USEMODULE += ztimer_msec
|
2022-10-23 22:09:25 +02:00
|
|
|
else ifneq (,$(filter stm32l4a% stm32l4p% stm32l4q% stm32l4r% stm32l4s%,$(CPU_MODEL)))
|
|
|
|
# STM32L4Axxx, STM32L4Pxxx, STM32L4Qxxx, STM32L4Rxxx and STM32L4Sxxx
|
|
|
|
# also use the Synopsys DWC2 USB OTG core
|
2022-10-14 03:53:17 +02:00
|
|
|
USEMODULE += usbdev_synopsys_dwc2
|
2024-03-13 21:39:07 +01:00
|
|
|
USEMODULE += ztimer
|
|
|
|
USEMODULE += ztimer_msec
|
2022-10-14 03:53:17 +02:00
|
|
|
endif
|
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
|
|
|
|
|
2022-08-08 13:20:21 +02:00
|
|
|
ifneq (,$(filter stm32_eth_tracing,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio_ll
|
|
|
|
endif
|
|
|
|
|
2020-10-12 10:43:41 +02:00
|
|
|
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 += iolist
|
2022-08-09 14:58:36 +02:00
|
|
|
USEMODULE += netdev_eth
|
2021-01-14 22:17:30 +01:00
|
|
|
USEMODULE += netdev_new_api
|
2021-12-02 12:22:41 +01:00
|
|
|
USEMODULE += ztimer
|
|
|
|
USEMODULE += ztimer_msec
|
2022-06-16 15:45:24 +02:00
|
|
|
|
|
|
|
# lwip IPv6 supports needs link up events to perform duplicate address
|
|
|
|
# detection
|
|
|
|
ifneq (,$(filter lwip_ipv6,$(USEMODULE)))
|
|
|
|
USEMODULE += stm32_eth_link_up
|
|
|
|
endif
|
2020-07-26 22:05:18 +02:00
|
|
|
endif
|
|
|
|
|
2023-07-30 09:43:10 +02:00
|
|
|
ifneq (,$(filter lcd_parallel_ll_mcu,$(USEMODULE)))
|
|
|
|
USEMODULE += lcd_fmc
|
|
|
|
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-12-19 10:47:15 +01:00
|
|
|
# periph_rtc_mem is currently tied to the periph_rtc
|
2021-09-03 11:15:17 +02:00
|
|
|
ifneq (,$(filter periph_rtc_mem,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_rtc
|
|
|
|
endif
|
|
|
|
|
2021-11-11 14:27:26 +01:00
|
|
|
ifneq (,$(filter periph_adc,$(FEATURES_USED)))
|
2024-07-03 22:54:08 +02:00
|
|
|
ifneq (,$(filter f3 l4 wb wl, $(CPU_FAM)))
|
2021-11-11 14:27:26 +01:00
|
|
|
USEMODULE += ztimer
|
|
|
|
USEMODULE += ztimer_msec
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2021-10-12 13:16:57 +02:00
|
|
|
ifneq (,$(filter periph_vbat,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_adc
|
|
|
|
endif
|
2021-11-11 14:27:26 +01:00
|
|
|
|
2023-07-21 17:05:41 +02:00
|
|
|
ifneq (,$(filter periph_fmc_%,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_fmc
|
|
|
|
endif
|
|
|
|
|
2023-05-10 13:52:58 +02:00
|
|
|
ifneq (,$(filter periph_sdmmc,$(FEATURES_USED)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio_irq
|
|
|
|
FEATURES_REQUIRED += periph_sdmmc_clk
|
|
|
|
FEATURES_OPTIONAL += periph_dma
|
|
|
|
endif
|
|
|
|
|
2020-05-03 14:35:01 +02:00
|
|
|
include $(RIOTCPU)/cortexm_common/Makefile.dep
|