Hi,
I have a small question about the USB_DEVICE_CONFIG_ENDPOINTS value setting. From the comment in the code, I can see that it might be the value of how many endpoints are supported in the stack.
However, from the content in USB_DeviceInitEndpoint and USB_DeviceInit, I think the value should be the maximum logical endpoint index we need in the project.
Which one is correct?
And if I only have two endpoints, which are endpoint 3 in and out, should I set USB_DEVICE_CONFIG_ENDPOINTS to 4 (maximum logical endpoint index + 1)?
Thanks.
BR,
Peter
Hi,
Thank you so much for your interest in our products and for using our community.
Full-Speed (FS) USB device supports 10 physical endpoints and High-Speed (HS) USB device supports 12 physical endpoints. You could refer to Table 763. Fixed endpoint configuration and Table 831. Fixed endpoint configuration from user manual for more detail.
Have a nice day!