Pipe_ConfigurePipe() now automatically defaults IN pipes to accepting infinite IN requests, this can still be changed by calling the existing \ref Pipe_SetFiniteINRequests() function.

This commit is contained in:
Dean Camera 2009-06-23 08:03:09 +00:00
parent 7f81803aaa
commit a3a04aa671
16 changed files with 8 additions and 33 deletions

View file

@ -48,6 +48,9 @@ bool Pipe_ConfigurePipe(const uint8_t Number, const uint8_t Type, const uint8_t
UPCFG0X = ((Type << EPTYPE0) | Token | ((EndpointNumber & PIPE_EPNUM_MASK) << PEPNUM0));
UPCFG1X = ((1 << ALLOC) | Banks | Pipe_BytesToEPSizeMask(Size));
if (Token == PIPE_TOKEN_IN)
Pipe_SetInfiniteINRequests();
return Pipe_IsConfigured();
}