diff options
| author | sakumisu <[email protected]> | 2024-04-16 21:48:11 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-04-16 21:48:11 +0800 |
| commit | e3886fe99d298adebc3d5b5f5f8d9c7d2e94e233 (patch) | |
| tree | 2feeb63c5a8ba9c275129b5bad0436780b18c3a3 | |
| parent | d8714d8169155771d906ed8174646ae580091c6c (diff) | |
format comment
| -rw-r--r-- | cherryusb_config_template.h | 6 | ||||
| -rw-r--r-- | 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 |
