Change PIPE_PIPENUM_MASK from 0x07 to the more generic 0x0F to allow for full pipe address support in USB host architectures other than the current AVR8 devices. Minor documentation improvements.

This commit is contained in:
Dean Camera 2011-12-11 03:04:16 +00:00
parent ecba8bcecf
commit ec3e47a7d0
4 changed files with 5 additions and 4 deletions

View file

@ -106,7 +106,7 @@
/** Pipe number mask, for masking against pipe addresses to retrieve the pipe's numerical address
* in the device.
*/
#define PIPE_PIPENUM_MASK 0x07
#define PIPE_PIPENUM_MASK 0x0F
/** Endpoint number mask, for masking against endpoint addresses to retrieve the endpoint's
* numerical address in the attached device.
@ -114,7 +114,7 @@
#define PIPE_EPNUM_MASK 0x0F
/** Endpoint direction mask, for masking against endpoint addresses to retrieve the endpoint's
* direction for comparing with the \c ENDPOINT_DESCRIPTOR_DIR_* masks.
* direction for comparing with the \c ENDPOINT_DIR_* masks.
*/
#define PIPE_EPDIR_MASK 0x80