diff options
| author | hathach <[email protected]> | 2024-11-01 17:54:10 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-11-01 17:54:10 +0700 |
| commit | b7ff10f59c48024e65341a494c51c471d4e8337e (patch) | |
| tree | e39f5ac021dbd6e3f80327cfde1f691880a78194 /src/tusb_option.h | |
| parent | 4c8ce9733aafa96c8810be3b291ff1afea6888b7 (diff) | |
rename and add both CFG_TUH_DWC2_SLAVE_ENABLE/CFG_TUH_DWC2_DMA_ENABLE better out dma handle
Diffstat (limited to 'src/tusb_option.h')
| -rw-r--r-- | src/tusb_option.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h index f3a8bb724..b193d9c09 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -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 |
