From e3886fe99d298adebc3d5b5f5f8d9c7d2e94e233 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Tue, 16 Apr 2024 21:48:11 +0800 Subject: [PATCH] format comment --- cherryusb_config_template.h | 6 +++--- port/dwc2/usb_hc_dwc2.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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