mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
cpu/stm32: fix KConfig modeling for STM32F1 / usbdev_synopsys_dwc2
This fixes incorrect module selection for STM32F1 boards with feature periph_usbdev, a regression introduced by https://github.com/RIOT-OS/RIOT/pull/17812
This commit is contained in:
parent
ea0a53521f
commit
ea53b35d75
@ -4,10 +4,14 @@
|
||||
USEMODULE += periph stm32_clk stm32_vectors
|
||||
|
||||
ifneq (,$(filter periph_usbdev,$(FEATURES_USED)))
|
||||
# TODO: STM32F105xx and STM32F107xx also use synopsys_dwc2
|
||||
# All STM32 families except for STM32F1, STM32F3 and STM32WG use synopsys_dwc2
|
||||
ifeq (,$(filter f1 f3 wb,$(CPU_FAM)))
|
||||
USEMODULE += usbdev_synopsys_dwc2
|
||||
endif
|
||||
# In STM32F1 family STM32F105xx and STM32F107xx also use synopsys_dwc2
|
||||
ifneq (,$(filter stm32f105% stm32f107%,$(CPU_MODEL)))
|
||||
USEMODULE += usbdev_synopsys_dwc2
|
||||
endif
|
||||
USEMODULE += ztimer
|
||||
USEMODULE += ztimer_msec
|
||||
endif
|
||||
|
||||
@ -10,7 +10,12 @@ config MODULE_PERIPH
|
||||
default y
|
||||
select MODULE_ZTIMER if MODULE_PERIPH_USBDEV
|
||||
select MODULE_ZTIMER_MSEC if MODULE_PERIPH_USBDEV
|
||||
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && !HAS_CPU_STM32WB && !HAS_CPU_STM32F3
|
||||
# All STM32 families except for STM32F1, STM32F3 and STM32WG use
|
||||
# MODULE_USBDEV_SYNOPSYS_DWC2
|
||||
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && !HAS_CPU_STM32WB && !HAS_CPU_STM32F3 && !HAS_CPU_STM32F1
|
||||
# NOTE: In STM32F1 family STM32F105xx and STM32F107xx also use
|
||||
# MODULE_USBDEV_SYNOPSYS_DWC2. Add those MCUs once the are added to
|
||||
# KConfig
|
||||
help
|
||||
stm32 common peripheral code.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user