Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cherryusb #571

Open
supperthomas opened this issue Jan 7, 2025 · 3 comments
Open

cherryusb #571

supperthomas opened this issue Jan 7, 2025 · 3 comments

Comments

@supperthomas
Copy link
Owner

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

@supperthomas
Copy link
Owner Author

@supperthomas
Copy link
Owner Author

// 以下细节如有出入,请对照 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
Copy link
Owner Author

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

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant