Просмотр исходного кода

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.
Jerzy Kasenberg 4 лет назад
Родитель
Сommit
e35bb6341c
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/portable/broadcom/synopsys/dcd_synopsys.c

+ 4 - 4
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