aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel/HostChapter9.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-05-15 12:27:32 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-05-15 12:27:32 +0000
commiteeba38e343a299e12964aec15fd43108d3dc9130 (patch)
tree4ad58eb59a275db1102be49aba13a775617f1fa9 /LUFA/Drivers/USB/LowLevel/HostChapter9.c
parent76d5e99bb8765030a7f99e7b5adf9bae7f92e0ba (diff)
downloadlufa-eeba38e343a299e12964aec15fd43108d3dc9130.tar.gz
lufa-eeba38e343a299e12964aec15fd43108d3dc9130.tar.bz2
lufa-eeba38e343a299e12964aec15fd43108d3dc9130.zip
Create a new function pointer type in StreamCallbacks.h for endpoint/pipe stream callbacks, to make stream function prototypes clearer.
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel/HostChapter9.c')
-rw-r--r--LUFA/Drivers/USB/LowLevel/HostChapter9.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/HostChapter9.c b/LUFA/Drivers/USB/LowLevel/HostChapter9.c
index 4b96c691d..238e099ef 100644
--- a/LUFA/Drivers/USB/LowLevel/HostChapter9.c
+++ b/LUFA/Drivers/USB/LowLevel/HostChapter9.c
@@ -153,7 +153,11 @@ End_Of_Control_Send:
static uint8_t USB_Host_Wait_For_Setup_IOS(const uint8_t WaitType)
{
+ #if (USB_HOST_TIMEOUT_MS < 0xFF)
+ uint8_t TimeoutCounter = USB_HOST_TIMEOUT_MS;
+ #else
uint16_t TimeoutCounter = USB_HOST_TIMEOUT_MS;
+ #endif
while (!(((WaitType == USB_HOST_WAITFOR_SetupSent) && Pipe_IsSETUPSent()) ||
((WaitType == USB_HOST_WAITFOR_InReceived) && Pipe_IsINReceived()) ||