X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/6a10d6b465be27db090d760dc0fbe722c94e4344..ecaf872177e771b6b7e331b47a5b68832b5dd126:/LUFA/Drivers/USB/LowLevel/Pipe.c?ds=inline diff --git a/LUFA/Drivers/USB/LowLevel/Pipe.c b/LUFA/Drivers/USB/LowLevel/Pipe.c index 743bb91f2..1218d2f24 100644 --- a/LUFA/Drivers/USB/LowLevel/Pipe.c +++ b/LUFA/Drivers/USB/LowLevel/Pipe.c @@ -27,7 +27,9 @@ arising out of or in connection with the use or performance of this software. */ -#include "USBMode.h" + +#include "../HighLevel/USBMode.h" + #if defined(USB_CAN_BE_HOST) #define INCLUDE_FROM_PIPE_C @@ -68,7 +70,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); @@ -190,7 +192,7 @@ uint8_t Pipe_Discard_Stream(uint16_t Length } uint8_t Pipe_Read_Stream_LE(void* Buffer, uint16_t Length - #if !defined(NO_STREAM_CALLBACKS) +#if !defined(NO_STREAM_CALLBACKS) , uint8_t (* const Callback)(void) #endif ) @@ -223,7 +225,7 @@ uint8_t Pipe_Read_Stream_LE(void* Buffer, uint16_t Length } uint8_t Pipe_Read_Stream_BE(void* Buffer, uint16_t Length - #if !defined(NO_STREAM_CALLBACKS) +#if !defined(NO_STREAM_CALLBACKS) , uint8_t (* const Callback)(void) #endif )