projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added stdio.h stream examples for the virtual CDC UART in the CDC host demos.
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
LowLevel
/
Pipe.c
diff --git
a/LUFA/Drivers/USB/LowLevel/Pipe.c
b/LUFA/Drivers/USB/LowLevel/Pipe.c
index
0a32f18
..
400cc5f
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/Pipe.c
+++ b/
LUFA/Drivers/USB/LowLevel/Pipe.c
@@
-70,15
+70,15
@@
void Pipe_ClearPipes(void)
}
\r
}
\r
\r
}
\r
}
\r
\r
-bool Pipe_IsEndpointBound(uint8_t EndpointAddress)
\r
+bool Pipe_IsEndpointBound(
const
uint8_t EndpointAddress)
\r
{
\r
{
\r
- uint8_t PrevPipeNumber = Pipe_Get
PipeNumber
();
\r
+ uint8_t PrevPipeNumber = Pipe_Get
CurrentPipe
();
\r
\r
for (uint8_t PNum = 0; PNum < PIPE_TOTAL_PIPES; PNum++)
\r
{
\r
Pipe_SelectPipe(PNum);
\r
\r
\r
for (uint8_t PNum = 0; PNum < PIPE_TOTAL_PIPES; PNum++)
\r
{
\r
Pipe_SelectPipe(PNum);
\r
\r
- if (Pipe_IsConfigured() && (Pipe_BoundEndpoint
Address
() == EndpointAddress))
\r
+ if (Pipe_IsConfigured() && (Pipe_BoundEndpoint
Number
() == EndpointAddress))
\r
return true;
\r
}
\r
\r
return true;
\r
}
\r
\r
@@
-93,7
+93,7
@@
uint8_t Pipe_WaitUntilReady(void)
#else
\r
uint16_t TimeoutMSRem = USB_STREAM_TIMEOUT_MS;
\r
#endif
\r
#else
\r
uint16_t TimeoutMSRem = USB_STREAM_TIMEOUT_MS;
\r
#endif
\r
-
\r
+
\r
for (;;)
\r
{
\r
if (Pipe_GetPipeToken() == PIPE_TOKEN_IN)
\r
for (;;)
\r
{
\r
if (Pipe_GetPipeToken() == PIPE_TOKEN_IN)
\r