diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-03-05 12:13:35 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-03-05 12:13:35 +0000 |
commit | 1e3d892b6a7eb6770c4abf3191399c8a68aa7eaf (patch) | |
tree | 4796cd26e03073d6c02f7379ccbddbd98f73c0b0 /LUFA/Drivers/USB/Core/DeviceStandardReq.c | |
parent | b763c3f33e8596afe2dd21746890fa9641362c5e (diff) | |
download | lufa-1e3d892b6a7eb6770c4abf3191399c8a68aa7eaf.tar.gz lufa-1e3d892b6a7eb6770c4abf3191399c8a68aa7eaf.tar.bz2 lufa-1e3d892b6a7eb6770c4abf3191399c8a68aa7eaf.zip |
Add software FIFOs to the UC3B pipe control interfaces, to match the endpoint control interfaces. Fix incorrect endianness for the Endpoint/Pipe read and write routines.
Diffstat (limited to 'LUFA/Drivers/USB/Core/DeviceStandardReq.c')
-rw-r--r-- | LUFA/Drivers/USB/Core/DeviceStandardReq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/LUFA/Drivers/USB/Core/DeviceStandardReq.c b/LUFA/Drivers/USB/Core/DeviceStandardReq.c index e43543dfe..4ee2fce06 100644 --- a/LUFA/Drivers/USB/Core/DeviceStandardReq.c +++ b/LUFA/Drivers/USB/Core/DeviceStandardReq.c @@ -50,9 +50,9 @@ void USB_Device_ProcessControlRequest(void) { USB_ControlRequest.bmRequestType = Endpoint_Read_Byte(); USB_ControlRequest.bRequest = Endpoint_Read_Byte(); - USB_ControlRequest.wValue = le16_to_cpu(Endpoint_Read_Word_LE()); - USB_ControlRequest.wIndex = le16_to_cpu(Endpoint_Read_Word_LE()); - USB_ControlRequest.wLength = le16_to_cpu(Endpoint_Read_Word_LE()); + USB_ControlRequest.wValue = Endpoint_Read_Word_LE(); + USB_ControlRequest.wIndex = Endpoint_Read_Word_LE(); + USB_ControlRequest.wLength = Endpoint_Read_Word_LE(); EVENT_USB_Device_ControlRequest(); @@ -339,7 +339,7 @@ static void USB_Device_ClearSetFeature(void) else { Endpoint_ClearStall(); - Endpoint_ResetFIFO(EndpointIndex); + Endpoint_ResetEndpoint(EndpointIndex); Endpoint_ResetDataToggle(); } } |