Fixed USB_USBTask not being called internally in stream transfers between packets when Partial Stream Transfers are used.

Remove old unused function prototype in the LowLevel MassStorage device demo.
This commit is contained in:
Dean Camera 2011-07-25 01:11:24 +00:00
parent 110711598a
commit 5c274d106b
5 changed files with 13 additions and 14 deletions
Demos/Device/LowLevel/MassStorage
LUFA
Drivers/USB/Core
ManPages

View File

@ -90,7 +90,5 @@
static void ReturnCommandStatus(void); static void ReturnCommandStatus(void);
#endif #endif
uint8_t StreamCallback_AbortOnMassStoreReset(void);
#endif #endif

View File

@ -53,16 +53,16 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
{ {
TEMPLATE_CLEAR_ENDPOINT(); TEMPLATE_CLEAR_ENDPOINT();
#if !defined(INTERRUPT_CONTROL_ENDPOINT)
USB_USBTask();
#endif
if (BytesProcessed != NULL) if (BytesProcessed != NULL)
{ {
*BytesProcessed += BytesInTransfer; *BytesProcessed += BytesInTransfer;
return ENDPOINT_RWSTREAM_IncompleteTransfer; return ENDPOINT_RWSTREAM_IncompleteTransfer;
} }
#if !defined(INTERRUPT_CONTROL_ENDPOINT)
USB_USBTask();
#endif
if ((ErrorCode = Endpoint_WaitUntilReady())) if ((ErrorCode = Endpoint_WaitUntilReady()))
return ErrorCode; return ErrorCode;
} }

View File

@ -53,16 +53,16 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
{ {
TEMPLATE_CLEAR_ENDPOINT(); TEMPLATE_CLEAR_ENDPOINT();
#if !defined(INTERRUPT_CONTROL_ENDPOINT)
USB_USBTask();
#endif
if (BytesProcessed != NULL) if (BytesProcessed != NULL)
{ {
*BytesProcessed += BytesInTransfer; *BytesProcessed += BytesInTransfer;
return ENDPOINT_RWSTREAM_IncompleteTransfer; return ENDPOINT_RWSTREAM_IncompleteTransfer;
} }
#if !defined(INTERRUPT_CONTROL_ENDPOINT)
USB_USBTask();
#endif
if ((ErrorCode = Endpoint_WaitUntilReady())) if ((ErrorCode = Endpoint_WaitUntilReady()))
return ErrorCode; return ErrorCode;
} }

View File

@ -53,16 +53,16 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
{ {
TEMPLATE_CLEAR_ENDPOINT(); TEMPLATE_CLEAR_ENDPOINT();
#if !defined(INTERRUPT_CONTROL_ENDPOINT)
USB_USBTask();
#endif
if (BytesProcessed != NULL) if (BytesProcessed != NULL)
{ {
*BytesProcessed += BytesInTransfer; *BytesProcessed += BytesInTransfer;
return ENDPOINT_RWSTREAM_IncompleteTransfer; return ENDPOINT_RWSTREAM_IncompleteTransfer;
} }
#if !defined(INTERRUPT_CONTROL_ENDPOINT)
USB_USBTask();
#endif
if ((ErrorCode = Endpoint_WaitUntilReady())) if ((ErrorCode = Endpoint_WaitUntilReady()))
return ErrorCode; return ErrorCode;
} }

View File

@ -68,6 +68,7 @@
* option was not enabled on the AVR8s * option was not enabled on the AVR8s
* - Fixed lack of C++ compatibility in some internal header files causing compile errors when using LUFA in C++ projects * - Fixed lack of C++ compatibility in some internal header files causing compile errors when using LUFA in C++ projects
* - Fixed error in the pipe unordered allocation algorithm for the AVR8 devices breaking compatibility with some devices * - Fixed error in the pipe unordered allocation algorithm for the AVR8 devices breaking compatibility with some devices
* - Fixed USB_USBTask not being called internally in stream transfers between packets when Partial Stream Transfers are used
* - Library Applications: * - Library Applications:
* - Fixed incorrect signature in the CDC and DFU class bootloaders for the ATMEGA8U2 * - Fixed incorrect signature in the CDC and DFU class bootloaders for the ATMEGA8U2
* - Fixed KeyboardHost and KeyboardHostWithParser demos displaying incorrect values when numerical keys were pressed * - Fixed KeyboardHost and KeyboardHostWithParser demos displaying incorrect values when numerical keys were pressed