From ac9bc01132e3a396ceb977d16b808c4fb6226392 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 18 Nov 2024 23:15:17 +0700 Subject: [PATCH] add CFG_TUD_DWC2_SLAVE_ENABLE = 1 as default --- src/tusb_option.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tusb_option.h b/src/tusb_option.h index 6257a87ba4..cb4641ad51 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -247,6 +247,10 @@ // USBIP //--------------------------------------------------------------------+ +#ifndef CFG_TUD_DWC2_SLAVE_ENABLE + #define CFG_TUD_DWC2_SLAVE_ENABLE 1 +#endif + // DWC2 controller: use DMA for data transfer // For processors with data cache enabled, USB endpoint buffer region // (defined by CFG_TUSB_MEM_SECTION) must be declared as non-cacheable.