mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-21 16:20:46 +00:00
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:
parent
fc59515bfd
commit
e35bb6341c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user