aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Core/HostStandardReq.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-02-26 20:22:33 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-02-26 20:22:33 +0000
commitcf2411435cf41ca4dbfcc3d89c6287743db79625 (patch)
tree9c68d72e708b6fa86066f644f23e5a8722986984 /LUFA/Drivers/USB/Core/HostStandardReq.c
parent66c38cd940714287e4e11729bf688211902b464d (diff)
downloadlufa-cf2411435cf41ca4dbfcc3d89c6287743db79625.tar.gz
lufa-cf2411435cf41ca4dbfcc3d89c6287743db79625.tar.bz2
lufa-cf2411435cf41ca4dbfcc3d89c6287743db79625.zip
Removed Pipe_ClearErrorFlags(), pipe error flags are now automatically cleared when Pipe_ClearError() is called.
More UC3B architecture porting.
Diffstat (limited to 'LUFA/Drivers/USB/Core/HostStandardReq.c')
-rw-r--r--LUFA/Drivers/USB/Core/HostStandardReq.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/LUFA/Drivers/USB/Core/HostStandardReq.c b/LUFA/Drivers/USB/Core/HostStandardReq.c
index 16d0ffb17..f74490f93 100644
--- a/LUFA/Drivers/USB/Core/HostStandardReq.c
+++ b/LUFA/Drivers/USB/Core/HostStandardReq.c
@@ -38,11 +38,11 @@
uint8_t USB_Host_SendControlRequest(void* const BufferPtr)
{
- uint8_t* HeaderStream = (uint8_t*)&USB_ControlRequest;
- uint8_t* DataStream = (uint8_t*)BufferPtr;
- bool BusSuspended = USB_Host_IsBusSuspended();
- uint8_t ReturnStatus = HOST_SENDCONTROL_Successful;
- uint16_t DataLen = USB_ControlRequest.wLength;
+ uint8_t* HeaderStream = (uint8_t*)&USB_ControlRequest;
+ uint8_t* DataStream = (uint8_t*)BufferPtr;
+ bool BusSuspended = USB_Host_IsBusSuspended();
+ uint8_t ReturnStatus = HOST_SENDCONTROL_Successful;
+ uint16_t DataLen = USB_ControlRequest.wLength;
USB_Host_ResumeBus();
@@ -50,7 +50,7 @@ uint8_t USB_Host_SendControlRequest(void* const BufferPtr)
goto End_Of_Control_Send;
Pipe_SetPipeToken(PIPE_TOKEN_SETUP);
- Pipe_ClearErrorFlags();
+ Pipe_ClearError();
Pipe_Unfreeze();