Corrected new Pipe_IsEndpointBound() function.
Completed host CDC class driver enumeration code.
This commit is contained in:
parent
cbbd3d746a
commit
05fa6e0c43
4 changed files with 18 additions and 35 deletions
|
@ -72,13 +72,13 @@ void Pipe_ClearPipes(void)
|
|||
|
||||
bool Pipe_IsEndpointBound(uint8_t EndpointAddress)
|
||||
{
|
||||
uint8_t PrevPipeNumber = Pipe_GetPipeNumber();
|
||||
uint8_t PrevPipeNumber = Pipe_GetCurrentPipe();
|
||||
|
||||
for (uint8_t PNum = 0; PNum < PIPE_TOTAL_PIPES; PNum++)
|
||||
{
|
||||
Pipe_SelectPipe(PNum);
|
||||
|
||||
if (Pipe_IsConfigured() && (Pipe_BoundEndpointAddress() == EndpointAddress))
|
||||
if (Pipe_IsConfigured() && (Pipe_BoundEndpointNumber() == EndpointAddress))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue