bluetoothlover_doc icon indicating copy to clipboard operation
bluetoothlover_doc copied to clipboard

cherryusb

Open supperthomas opened this issue 1 year ago • 3 comments

USB中文网站 有文档,有视频 CherryUSB使用指南

supperthomas avatar Jan 07 '25 01:01 supperthomas

https://cherryusb.cherry-embedded.org/quick_start/rtthread

supperthomas avatar Jan 07 '25 02:01 supperthomas

// 以下细节如有出入,请对照 stm32xxx.h 文件修改
// 需要根据硬件实际的 fifo 深度进行修改,默认是最基础的配置
#define CONFIG_USBDEV_EP_NUM 6
#define CONFIG_USB_DWC2_RXALL_FIFO_SIZE (1012 - 16 * 6)
#define CONFIG_USB_DWC2_TX0_FIFO_SIZE (64 / 4)
#define CONFIG_USB_DWC2_TX1_FIFO_SIZE (64 / 4)
#define CONFIG_USB_DWC2_TX2_FIFO_SIZE (64 / 4)
#define CONFIG_USB_DWC2_TX3_FIFO_SIZE (64 / 4)
#define CONFIG_USB_DWC2_TX4_FIFO_SIZE (64 / 4)
#define CONFIG_USB_DWC2_TX5_FIFO_SIZE (64 / 4)

supperthomas avatar Jan 17 '25 12:01 supperthomas

当 CONFIG_USBDEV_EP_NUM 为4 时,fifo_num 不得大于 320 字

当 CONFIG_USBDEV_EP_NUM 为6 时,fifo_num 不得大于 1280 字

supperthomas avatar Jan 17 '25 12:01 supperthomas