diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-01 01:27:00 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-01 01:27:00 +0000 |
commit | b6a4584a19e81c2e1f909355bbc64c2b8cea84f6 (patch) | |
tree | 3e5388a85cea77702c24478245097138c7bf704c /LUFA/Drivers/USB/LowLevel/Endpoint.h | |
parent | bb1a036f097602a70ce219915db28dea616b76a8 (diff) | |
download | lufa-b6a4584a19e81c2e1f909355bbc64c2b8cea84f6.tar.gz lufa-b6a4584a19e81c2e1f909355bbc64c2b8cea84f6.tar.bz2 lufa-b6a4584a19e81c2e1f909355bbc64c2b8cea84f6.zip |
Fixed Pipe_IsEndpointBound() function not taking the endpoint's direction into account.
Re-added Pipe_IsEndpointBound() calls to the CDC and RNDIS host class drivers, not that the function has the correct behaviour for devices with bidirectional endpoints.
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel/Endpoint.h')
-rw-r--r-- | LUFA/Drivers/USB/LowLevel/Endpoint.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/Endpoint.h b/LUFA/Drivers/USB/LowLevel/Endpoint.h index ff0b640a4..b0934f586 100644 --- a/LUFA/Drivers/USB/LowLevel/Endpoint.h +++ b/LUFA/Drivers/USB/LowLevel/Endpoint.h @@ -126,6 +126,11 @@ */
#define ENDPOINT_EPNUM_MASK 0x07
+ /** Endpoint direction mask, for masking against endpoint addresses to retrieve the endpoint's
+ * direction for comparing with the ENDPOINT_DESCRIPTOR_DIR_* masks.
+ */
+ #define ENDPOINT_EPDIR_MASK 0x80
+
/** Endpoint bank size mask, for masking against endpoint addresses to retrieve the endpoint's
* bank size in the device.
*/
|