diff options
| author | sakumisu <[email protected]> | 2024-06-11 21:58:17 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-06-11 21:58:17 +0800 |
| commit | 77af5638986d34bc8a6b385701033d23c54ec9c1 (patch) | |
| tree | 96c30d081bc9d107e19c7d1ae7d05b6a09999195 | |
| parent | f57234e668c4d0b2ec2cd1ec098785e2cda4cb5c (diff) | |
add comments for dwc2 fifo macro
| -rw-r--r-- | cherryusb_config_template.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cherryusb_config_template.h b/cherryusb_config_template.h index 27f25199..c469a6a2 100644 --- a/cherryusb_config_template.h +++ b/cherryusb_config_template.h @@ -214,7 +214,11 @@ //#define CONFIG_USBDEV_FSDEV_PMA_ACCESS 2 // maybe 1 or 2, many chips may have a difference /* ---------------- DWC2 Configuration ---------------- */ +/* (5 * number of control endpoints + 8) + ((largest USB packet used / 4) + 1 for + * status information) + (2 * number of OUT endpoints) + 1 for Global NAK + */ // #define CONFIG_USB_DWC2_RXALL_FIFO_SIZE (1024 / 4) +/* IN Endpoints Max packet Size / 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) |
