summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2024-05-15 22:37:33 +0800
committersakumisu <[email protected]>2024-05-15 22:37:57 +0800
commit5e6bd78f802d524480c31ffd8f8807ec1a765693 (patch)
treefbc1afc276ec704131c1004bc6e021a610fce979
parentf2133f5ca25da15ae306cb1aa30105ed6630f9fa (diff)
update(dwc2): change rx fifo to 1024/4 as default
-rw-r--r--cherryusb_config_template.h2
-rw-r--r--port/dwc2/usb_dc_dwc2.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cherryusb_config_template.h b/cherryusb_config_template.h
index f0370fb9..2128480f 100644
--- a/cherryusb_config_template.h
+++ b/cherryusb_config_template.h
@@ -203,7 +203,7 @@
//#define CONFIG_USBDEV_FSDEV_PMA_ACCESS 2 // maybe 1 or 2, many chips may have a difference
/* ---------------- DWC2 Configuration ---------------- */
-// #define CONFIG_USB_DWC2_RXALL_FIFO_SIZE (320)
+// #define CONFIG_USB_DWC2_RXALL_FIFO_SIZE (1024 / 4)
// #define CONFIG_USB_DWC2_TX0_FIFO_SIZE (64 / 4)
// #define CONFIG_USB_DWC2_TX1_FIFO_SIZE (512 / 4)
// #define CONFIG_USB_DWC2_TX2_FIFO_SIZE (64 / 4)
diff --git a/port/dwc2/usb_dc_dwc2.c b/port/dwc2/usb_dc_dwc2.c
index b73e3031..4bdc5712 100644
--- a/port/dwc2/usb_dc_dwc2.c
+++ b/port/dwc2/usb_dc_dwc2.c
@@ -54,7 +54,7 @@
//#define CONFIG_USB_DWC2_DMA_ENABLE
#ifndef CONFIG_USB_DWC2_RXALL_FIFO_SIZE
-#define CONFIG_USB_DWC2_RXALL_FIFO_SIZE (320)
+#define CONFIG_USB_DWC2_RXALL_FIFO_SIZE (1024 / 4)
#endif
#ifndef CONFIG_USB_DWC2_TX0_FIFO_SIZE