Skip to content

Commit 9e674d4

Browse files
authored
Merge pull request hathach#2881 from hathach/enhance-dwc2-dcd
2 parents b3efa8e + 3fe7e61 commit 9e674d4

File tree

9 files changed

+567
-415
lines changed

9 files changed

+567
-415
lines changed

hw/bsp/family_support.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,11 @@ function(family_add_tinyusb TARGET OPT_MCU RTOS)
289289
)
290290
endif ()
291291

292+
# compile define from command line
293+
if(DEFINED CFLAGS_CLI)
294+
target_compile_options(${TARGET}-tinyusb PUBLIC ${CFLAGS_CLI})
295+
endif()
296+
292297
endfunction()
293298

294299
# Add bin/hex output

src/common/tusb_mcu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@
548548
#define TUP_DCD_EDPT_ISO_ALLOC
549549
#endif
550550

551-
#if defined(TUP_USBIP_DWC2) // && CFG_TUD_DWC2_DMA == 0
551+
#if defined(TUP_USBIP_DWC2) // && CFG_TUD_DWC2_DMA_ENABLE == 0
552552
#define TUP_MEM_CONST_ADDR
553553
#endif
554554

0 commit comments

Comments
 (0)