{stm32f7,stm32h7}/otg: fix compilation for USBDEV when USB_DEBUG=y

This commit is contained in:
raiden00pl 2023-03-24 12:26:19 +01:00 committed by David Sidrane
parent 5651715486
commit 13a96c7eb7
2 changed files with 2 additions and 4 deletions

View File

@ -107,8 +107,6 @@ endif
ifeq ($(CONFIG_USBHOST),y) ifeq ($(CONFIG_USBHOST),y)
CHIP_CSRCS += stm32_otghost.c CHIP_CSRCS += stm32_otghost.c
endif
ifeq ($(CONFIG_USBHOST_TRACE),y) ifeq ($(CONFIG_USBHOST_TRACE),y)
CHIP_CSRCS += stm32_usbhost.c CHIP_CSRCS += stm32_usbhost.c
else else
@ -116,6 +114,7 @@ ifeq ($(CONFIG_DEBUG_USB),y)
CHIP_CSRCS += stm32_usbhost.c CHIP_CSRCS += stm32_usbhost.c
endif endif
endif endif
endif
ifeq ($(CONFIG_STM32F7_TIM),y) ifeq ($(CONFIG_STM32F7_TIM),y)
CHIP_CSRCS += stm32_tim.c stm32_tim_lowerhalf.c CHIP_CSRCS += stm32_tim.c stm32_tim_lowerhalf.c

View File

@ -128,8 +128,6 @@ endif
ifeq ($(CONFIG_USBHOST),y) ifeq ($(CONFIG_USBHOST),y)
CHIP_CSRCS += stm32_otghost.c CHIP_CSRCS += stm32_otghost.c
endif
ifeq ($(CONFIG_USBHOST_TRACE),y) ifeq ($(CONFIG_USBHOST_TRACE),y)
CHIP_CSRCS += stm32_usbhost.c CHIP_CSRCS += stm32_usbhost.c
else else
@ -137,6 +135,7 @@ ifeq ($(CONFIG_DEBUG_USB),y)
CHIP_CSRCS += stm32_usbhost.c CHIP_CSRCS += stm32_usbhost.c
endif endif
endif endif
endif
ifeq ($(CONFIG_STM32H7_TIM),y) ifeq ($(CONFIG_STM32H7_TIM),y)
CHIP_CSRCS += stm32_tim.c CHIP_CSRCS += stm32_tim.c