diff --git a/cherryusb_config_template.h b/cherryusb_config_template.h index dd30cb32..fbf152e4 100644 --- a/cherryusb_config_template.h +++ b/cherryusb_config_template.h @@ -210,9 +210,9 @@ /* largest periodic USB packet used / 4 */ // #define CONFIG_USB_DWC2_PTX_FIFO_SIZE (1024 / 4) /* -(largest USB packet used / 4) + 1 for status information + 1 transfer complete + -1 location each for Bulk/Control endpoint for handling NAK/NYET scenario -*/ + * (largest USB packet used / 4) + 1 for status information + 1 transfer complete + + * 1 location each for Bulk/Control endpoint for handling NAK/NYET scenario + */ // #define CONFIG_USB_DWC2_RX_FIFO_SIZE ((1012 - CONFIG_USB_DWC2_NPTX_FIFO_SIZE - CONFIG_USB_DWC2_PTX_FIFO_SIZE) / 4) /* ---------------- MUSB Configuration ---------------- */ diff --git a/port/dwc2/usb_hc_dwc2.c b/port/dwc2/usb_hc_dwc2.c index 2653bf47..eed6b21f 100644 --- a/port/dwc2/usb_hc_dwc2.c +++ b/port/dwc2/usb_hc_dwc2.c @@ -22,9 +22,9 @@ #endif /* -(largest USB packet used / 4) + 1 for status information + 1 transfer complete + -1 location each for Bulk/Control endpoint for handling NAK/NYET scenario -*/ + * (largest USB packet used / 4) + 1 for status information + 1 transfer complete + + * 1 location each for Bulk/Control endpoint for handling NAK/NYET scenario + */ #ifndef CONFIG_USB_DWC2_RX_FIFO_SIZE #define CONFIG_USB_DWC2_RX_FIFO_SIZE ((1012 - CONFIG_USB_DWC2_NPTX_FIFO_SIZE - CONFIG_USB_DWC2_PTX_FIFO_SIZE) / 4) #endif