summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorYixingShen <[email protected]>2026-03-07 22:58:07 +0800
committerYixingShen <[email protected]>2026-03-07 22:58:07 +0800
commit9072d974b05e6e9a6cc426520c0b2bf96c6e7174 (patch)
tree8c0c4caff46cfdeaee612a79181d72012a74e1ba /src/common
parent2a0802c6a56dc3849fe21d376908aff07131a111 (diff)
parent571445d26f1484a4033b504acb7c700fde340c76 (diff)
Merge branch 'master' of https://github.com/YixingShen/tinyusb
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_mcu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h
index 5b9497b9a..32f7eb557 100644
--- a/src/common/tusb_mcu.h
+++ b/src/common/tusb_mcu.h
@@ -172,6 +172,10 @@
#define TUP_RHPORT_HIGHSPEED 1
#define TUD_ENDPOINT_ONE_DIRECTION_ONLY
+ // Enable dcache if DMA is enabled
+ #define CFG_TUD_MEM_DCACHE_ENABLE_DEFAULT CFG_TUD_SAMX7X_DMA_ENABLE
+ #define CFG_TUSB_MEM_DCACHE_LINE_SIZE_DEFAULT 32
+
#elif TU_CHECK_MCU(OPT_MCU_PIC32MZ)
#define TUP_DCD_ENDPOINT_MAX 8
#define TUD_ENDPOINT_ONE_DIRECTION_ONLY