Commit 385ffb6d authored by Dean Camera's avatar Dean Camera
Browse files

Fix XMEGA architecture not correctly resetting the device address and...

Fix XMEGA architecture not correctly resetting the device address and endpoints in response to a USB bus reset from the host.
parent a2d18e46
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment