The AVR USB code hard-caps the number of endpoints at 5.
|
struct _epstate ep_state[5]; |
|
const uint8_t num_endpoints = 5;//sizeof (struct usb_internal_state.ep_state) / sizeof (struct usb_internal_state.ep_state[0]); |
This is as expected for the AT90 example part but is too small for parts like the 32u4 which have USB defined and up to 7 configurable endpoints.
The AVR USB code hard-caps the number of endpoints at 5.
simavr/simavr/sim/avr_usb.c
Line 151 in ea4c450
simavr/simavr/sim/avr_usb.c
Line 156 in ea4c450
This is as expected for the AT90 example part but is too small for parts like the 32u4 which have USB defined and up to 7 configurable endpoints.