diff options
| author | HiFiPhile <[email protected]> | 2026-02-27 10:58:01 +0100 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2026-02-27 10:58:01 +0100 |
| commit | bb8845c8e89002629d8eb4f8d72eaf370b97b004 (patch) | |
| tree | 27351267216c6ef447786cfea98275c803047b4d /src/common | |
| parent | fc9f63e62d0806b233602cc1bb45b370d350a717 (diff) | |
dcd/samx7x: synchronize DMA and cache options
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_mcu.h | 4 |
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 |
