From 5e6bd78f802d524480c31ffd8f8807ec1a765693 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Wed, 15 May 2024 22:37:33 +0800 Subject: [PATCH] update(dwc2): change rx fifo to 1024/4 as default --- cherryusb_config_template.h | 2 +- port/dwc2/usb_dc_dwc2.c | 2 +- 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