diff options
| author | sakumisu <[email protected]> | 2024-09-26 21:27:56 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-09-27 19:03:33 +0800 |
| commit | 2f14ee7a7b32d8e4407d97eab82476f09d419b7f (patch) | |
| tree | eba23c97de63456d63c023f3bf8a234e1e042b20 | |
| parent | 0d65bbc6ba7b8f62ecc57b0036bea220ddadad58 (diff) | |
update(port/dwc2/usb_dc_dwc2): enlarge CONFIG_USB_DWC2_TX1_FIFO_SIZE for video demo and export CONFIG_USB_DWC2_DMA_ENABLE
| -rw-r--r-- | cherryusb_config_template.h | 4 | ||||
| -rw-r--r-- | port/dwc2/usb_dc_dwc2.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cherryusb_config_template.h b/cherryusb_config_template.h index a7ce3c14..30869b43 100644 --- a/cherryusb_config_template.h +++ b/cherryusb_config_template.h @@ -218,7 +218,7 @@ // #define CONFIG_USB_DWC2_RXALL_FIFO_SIZE (1024 / 4) /* IN Endpoints Max packet Size / 4 */ // #define CONFIG_USB_DWC2_TX0_FIFO_SIZE (64 / 4) -// #define CONFIG_USB_DWC2_TX1_FIFO_SIZE (512 / 4) +// #define CONFIG_USB_DWC2_TX1_FIFO_SIZE (1024 / 4) // #define CONFIG_USB_DWC2_TX2_FIFO_SIZE (64 / 4) // #define CONFIG_USB_DWC2_TX3_FIFO_SIZE (64 / 4) // #define CONFIG_USB_DWC2_TX4_FIFO_SIZE (0 / 4) @@ -227,6 +227,8 @@ // #define CONFIG_USB_DWC2_TX7_FIFO_SIZE (0 / 4) // #define CONFIG_USB_DWC2_TX8_FIFO_SIZE (0 / 4) +// #define CONFIG_USB_DWC2_DMA_ENABLE + /* ---------------- MUSB Configuration ---------------- */ // #define CONFIG_USB_MUSB_SUNXI diff --git a/port/dwc2/usb_dc_dwc2.c b/port/dwc2/usb_dc_dwc2.c index 5fd4ff8c..72006abd 100644 --- a/port/dwc2/usb_dc_dwc2.c +++ b/port/dwc2/usb_dc_dwc2.c @@ -51,8 +51,6 @@ #endif // clang-format on -//#define CONFIG_USB_DWC2_DMA_ENABLE - #ifndef CONFIG_USB_DWC2_RXALL_FIFO_SIZE #define CONFIG_USB_DWC2_RXALL_FIFO_SIZE (1024 / 4) #endif @@ -62,7 +60,7 @@ #endif #ifndef CONFIG_USB_DWC2_TX1_FIFO_SIZE -#define CONFIG_USB_DWC2_TX1_FIFO_SIZE (512 / 4) +#define CONFIG_USB_DWC2_TX1_FIFO_SIZE (1024 / 4) #endif #ifndef CONFIG_USB_DWC2_TX2_FIFO_SIZE |
