diff options
Diffstat (limited to 'LUFA')
-rw-r--r-- | LUFA/ChangeLog.txt | 3 | ||||
-rw-r--r-- | LUFA/Drivers/USB/LowLevel/Endpoint.c | 2 | ||||
-rw-r--r-- | LUFA/Drivers/USB/LowLevel/Pipe.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/LUFA/ChangeLog.txt b/LUFA/ChangeLog.txt index af15a964d..b89c6e8b9 100644 --- a/LUFA/ChangeLog.txt +++ b/LUFA/ChangeLog.txt @@ -23,6 +23,9 @@ * next time the device is attached to a host.
* - Added new F_CLOCK compile time constant to the library and makefiles, to give the raw input clock (used to feed the PLL before any
* clock prescaling is performed) frequency, so that the PLL prescale mask can be determined
+ * - Changed stream wait timeout counter to be 16-bit, so that very long timeout periods can be set for correct communications with
+ * badly designed hosts or devices which greatly exceed the USB specification limits
+ * - Mass Storage Host demo now uses a USB_STREAM_TIMEOUT_MS of two seconds to maintain compatibility with poorly designed devices
*
* \section Sec_ChangeLog090209 Version 090209
*
diff --git a/LUFA/Drivers/USB/LowLevel/Endpoint.c b/LUFA/Drivers/USB/LowLevel/Endpoint.c index 273e1908a..3376098ed 100644 --- a/LUFA/Drivers/USB/LowLevel/Endpoint.c +++ b/LUFA/Drivers/USB/LowLevel/Endpoint.c @@ -83,7 +83,7 @@ void Endpoint_ClearEndpoints(void) uint8_t Endpoint_WaitUntilReady(void)
{
- uint8_t TimeoutMSRem = USB_STREAM_TIMEOUT_MS;
+ uint16_t TimeoutMSRem = USB_STREAM_TIMEOUT_MS;
USB_INT_Clear(USB_INT_SOFI);
diff --git a/LUFA/Drivers/USB/LowLevel/Pipe.c b/LUFA/Drivers/USB/LowLevel/Pipe.c index 743bb91f2..496df33de 100644 --- a/LUFA/Drivers/USB/LowLevel/Pipe.c +++ b/LUFA/Drivers/USB/LowLevel/Pipe.c @@ -68,7 +68,7 @@ void Pipe_ClearPipes(void) uint8_t Pipe_WaitUntilReady(void)
{
- uint8_t TimeoutMSRem = USB_STREAM_TIMEOUT_MS;
+ uint16_t TimeoutMSRem = USB_STREAM_TIMEOUT_MS;
USB_INT_Clear(USB_INT_HSOFI);
|