Skip to content

Commit

Permalink
Add a note about data cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
HiFiPhile committed Sep 24, 2024
1 parent 6a15e78 commit e483c6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tusb_option.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@
//--------------------------------------------------------------------+

// 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.
// For example, on Cortex-M7 the MPU region can be configured as normal
// non-cacheable, with RASR register value: TEX=1 C=0 B=0 S=0.
#ifndef CFG_TUD_DWC2_DMA
#define CFG_TUD_DWC2_DMA 0
#endif
Expand Down

0 comments on commit e483c6a

Please sign in to comment.