rename and add both CFG_TUH_DWC2_SLAVE_ENABLE/CFG_TUH_DWC2_DMA_ENABLE better out dma handle

This commit is contained in:
hathach
2024-11-01 17:54:10 +07:00
parent 4c8ce9733a
commit b7ff10f59c
5 changed files with 302 additions and 283 deletions

View File

@@ -254,8 +254,14 @@
#define CFG_TUD_DWC2_DMA 0
#endif
#ifndef CFG_TUH_DWC2_DMA
#define CFG_TUH_DWC2_DMA 1
// Enable DWC2 Slave mode for host
#ifndef CFG_TUH_DWC2_SLAVE_ENABLE
#define CFG_TUH_DWC2_SLAVE_ENABLE 1
#endif
// Enable DWC2 DMA for host
#ifndef CFG_TUH_DWC2_DMA_ENABLE
#define CFG_TUH_DWC2_DMA_ENABLE 1
#endif
// Enable PIO-USB software host controller