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.
This commit is contained in:
Jerzy Kasenberg 2021-11-04 21:46:17 +01:00
parent fc59515bfd
commit e35bb6341c
1 changed files with 4 additions and 4 deletions

View File

@ -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