This is an automated email from the ASF dual-hosted git repository.

davids5 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 13a96c7eb7 {stm32f7,stm32h7}/otg: fix compilation for USBDEV when 
USB_DEBUG=y
13a96c7eb7 is described below

commit 13a96c7eb72a0b2122f384f8ad0cdecb8156ab68
Author: raiden00pl <raide...@railab.me>
AuthorDate: Fri Mar 24 12:26:19 2023 +0100

    {stm32f7,stm32h7}/otg: fix compilation for USBDEV when USB_DEBUG=y
---
 arch/arm/src/stm32f7/Make.defs | 3 +--
 arch/arm/src/stm32h7/Make.defs | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/arm/src/stm32f7/Make.defs b/arch/arm/src/stm32f7/Make.defs
index 11f893bef3..531a04e9b6 100644
--- a/arch/arm/src/stm32f7/Make.defs
+++ b/arch/arm/src/stm32f7/Make.defs
@@ -107,8 +107,6 @@ endif
 
 ifeq ($(CONFIG_USBHOST),y)
 CHIP_CSRCS += stm32_otghost.c
-endif
-
 ifeq ($(CONFIG_USBHOST_TRACE),y)
 CHIP_CSRCS += stm32_usbhost.c
 else
@@ -116,6 +114,7 @@ ifeq ($(CONFIG_DEBUG_USB),y)
 CHIP_CSRCS += stm32_usbhost.c
 endif
 endif
+endif
 
 ifeq ($(CONFIG_STM32F7_TIM),y)
 CHIP_CSRCS += stm32_tim.c stm32_tim_lowerhalf.c
diff --git a/arch/arm/src/stm32h7/Make.defs b/arch/arm/src/stm32h7/Make.defs
index 39cb9a6731..5b38888238 100644
--- a/arch/arm/src/stm32h7/Make.defs
+++ b/arch/arm/src/stm32h7/Make.defs
@@ -128,8 +128,6 @@ endif
 
 ifeq ($(CONFIG_USBHOST),y)
 CHIP_CSRCS += stm32_otghost.c
-endif
-
 ifeq ($(CONFIG_USBHOST_TRACE),y)
 CHIP_CSRCS += stm32_usbhost.c
 else
@@ -137,6 +135,7 @@ ifeq ($(CONFIG_DEBUG_USB),y)
 CHIP_CSRCS += stm32_usbhost.c
 endif
 endif
+endif
 
 ifeq ($(CONFIG_STM32H7_TIM),y)
 CHIP_CSRCS += stm32_tim.c

Reply via email to