LPC5528 USB_DEVICE_CONFIG_ENDPOINTS value

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC5528 USB_DEVICE_CONFIG_ENDPOINTS value

199 Views
tks11111
Contributor II

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 

Labels (2)
0 Kudos
1 Reply

118 Views
_Leo_
NXP TechSupport
NXP TechSupport

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!

0 Kudos