From e35bb6341cd3a9b81085969cdce60cb3af9ed57e Mon Sep 17 00:00:00 2001 From: Jerzy Kasenberg Date: Thu, 4 Nov 2021 21:46:17 +0100 Subject: [PATCH] broadcom/dcd: Fix mynewt build dcd_synopsys.c included broadcom/interrupts.h before preprocessor check whether file should be used. Since mynewt build does not include all folders it resulted in build error. Now offending include is moved few lines after preprocessor check. --- src/portable/broadcom/synopsys/dcd_synopsys.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/portable/broadcom/synopsys/dcd_synopsys.c b/src/portable/broadcom/synopsys/dcd_synopsys.c index 04115887..494bb70e 100644 --- a/src/portable/broadcom/synopsys/dcd_synopsys.c +++ b/src/portable/broadcom/synopsys/dcd_synopsys.c @@ -29,6 +29,10 @@ #include "tusb_option.h" +#if TUSB_OPT_DEVICE_ENABLED && \ + (CFG_TUSB_MCU == OPT_MCU_BCM2711 ) \ + + #include "synopsys_common.h" #include "broadcom/interrupts.h" @@ -37,10 +41,6 @@ // We disable SOF for now until needed later on #define USE_SOF 0 -#if TUSB_OPT_DEVICE_ENABLED && \ - (CFG_TUSB_MCU == OPT_MCU_BCM2711 ) \ - - // EP_MAX : Max number of bi-directional endpoints including EP0 // EP_FIFO_SIZE : Size of dedicated USB SRAM #if CFG_TUSB_MCU == OPT_MCU_BCM2711