aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Drivers/USB/Class/ConfigDescriptor.h
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2009-04-05 07:00:11 +0000
committerDean Camera <[email protected]>2009-04-05 07:00:11 +0000
commit557a945ba1851bc8d1669bd034464047f50b6691 (patch)
treeebbd2aa68f7aff7ee7467343598df9059b7d7059 /LUFA/Drivers/USB/Class/ConfigDescriptor.h
parent7d4cccc22d60125fac111819df48af1873d11018 (diff)
downloadqmk_firmware-557a945ba1851bc8d1669bd034464047f50b6691.tar.gz
qmk_firmware-557a945ba1851bc8d1669bd034464047f50b6691.zip
Removed all binary constants and replaced with decimal or hexadecimal constants so that unpatched GCC compilers can still build the code without having to be itself patched and recompiled first.
Diffstat (limited to 'LUFA/Drivers/USB/Class/ConfigDescriptor.h')
-rw-r--r--LUFA/Drivers/USB/Class/ConfigDescriptor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Class/ConfigDescriptor.h b/LUFA/Drivers/USB/Class/ConfigDescriptor.h
index d42b71cce0..bd92b51f3a 100644
--- a/LUFA/Drivers/USB/Class/ConfigDescriptor.h
+++ b/LUFA/Drivers/USB/Class/ConfigDescriptor.h
@@ -52,6 +52,11 @@
/* Public Interface - May be used in end-application: */
/* Macros: */
+ /** Mask for determining the type of an endpoint from an endpoint descriptor. This should then be compared
+ * with the EP_TYPE_* masks to determine the exact type of the endpoint.
+ */
+ #define EP_TYPE_MASK 0x03
+
/** Casts a pointer to a descriptor inside the configuration descriptor into a pointer to the given
* descriptor type.
*