Fix XMEGA architecture not correctly resetting the device address and endpoints in response to a USB bus reset from the host.
This commit is contained in:
parent
a2d18e46f8
commit
385ffb6de3
1 changed files with 3 additions and 0 deletions
|
@ -90,6 +90,9 @@ ISR(USB_BUSEVENT_vect)
|
|||
USB_DeviceState = DEVICE_STATE_Default;
|
||||
USB_Device_ConfigurationNumber = 0;
|
||||
|
||||
USB_Device_SetDeviceAddress(0);
|
||||
|
||||
Endpoint_ClearEndpoints();
|
||||
Endpoint_ConfigureEndpoint(ENDPOINT_CONTROLEP, EP_TYPE_CONTROL,
|
||||
ENDPOINT_DIR_OUT, USB_Device_ControlEndpointSize,
|
||||
ENDPOINT_BANK_SINGLE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue