From e338cb6f329d6bf948abad88637f81436ee90daf Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 18 Jun 2009 07:53:51 +0000 Subject: Added new USB_Host_ClearPipeStall() convenience function to clear a stall condition on an attached device's endpoint. Added new USB_Host_GetDeviceDescriptor() convenience function to retrieve the attached device's Device descriptor. Make Pipe_ConfigurePipe() mask the given endpoint number against PIPE_EPNUM_MASK to ensure the endpoint IN direction bit is cleared to prevent endpoint type corruption. Fix documentation mentioning Pipe_GetCurrentToken() function when real name is Pipe_GetPipeToken(). --- Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.c | 4 ++-- Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'Demos/Host/ClassDriver/MassStorageHost/Lib') diff --git a/Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.c b/Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.c index afeace02f..75974732c 100644 --- a/Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.c +++ b/Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.c @@ -134,7 +134,7 @@ static uint8_t MassStore_WaitForDataReceived(void) if (Pipe_IsStalled()) { /* Clear the stall condition on the OUT pipe */ - MassStore_ClearPipeStall(MASS_STORE_DATA_OUT_PIPE); + USB_Host_ClearPipeStall(MASS_STORE_DATA_OUT_PIPE); return PIPE_RWSTREAM_PipeStalled; } @@ -147,7 +147,7 @@ static uint8_t MassStore_WaitForDataReceived(void) if (Pipe_IsStalled()) { /* Clear the stall condition on the IN pipe */ - MassStore_ClearPipeStall(MASS_STORE_DATA_IN_PIPE); + USB_Host_ClearPipeStall(MASS_STORE_DATA_IN_PIPE); return PIPE_RWSTREAM_PipeStalled; } diff --git a/Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.h b/Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.h index e939f1c86..78700de84 100644 --- a/Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.h +++ b/Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.h @@ -158,7 +158,6 @@ static uint8_t MassStore_GetReturnedStatus(void); #endif - uint8_t MassStore_ClearPipeStall(const uint8_t EndpointNum); uint8_t MassStore_MassStorageReset(void); uint8_t MassStore_GetMaxLUN(uint8_t* const MaxLUNIndex); uint8_t MassStore_RequestSense(const uint8_t LUNIndex, const SCSI_Request_Sense_Response_t* const SensePtr) -- cgit v1.2.3