diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-05 07:00:11 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-05 07:00:11 +0000 |
commit | 557a945ba1851bc8d1669bd034464047f50b6691 (patch) | |
tree | ebbd2aa68f7aff7ee7467343598df9059b7d7059 /LUFA/Drivers/USB/LowLevel/LowLevel.h | |
parent | 7d4cccc22d60125fac111819df48af1873d11018 (diff) | |
download | lufa-557a945ba1851bc8d1669bd034464047f50b6691.tar.gz lufa-557a945ba1851bc8d1669bd034464047f50b6691.tar.bz2 lufa-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/LowLevel/LowLevel.h')
-rw-r--r-- | LUFA/Drivers/USB/LowLevel/LowLevel.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/LowLevel.h b/LUFA/Drivers/USB/LowLevel/LowLevel.h index 94d8c83c9..07be4396d 100644 --- a/LUFA/Drivers/USB/LowLevel/LowLevel.h +++ b/LUFA/Drivers/USB/LowLevel/LowLevel.h @@ -160,32 +160,25 @@ *
* \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions.
*/
- #define EP_TYPE_CONTROL 0b00
+ #define EP_TYPE_CONTROL 0x00
/** Mask for an ISOCHRONOUS type endpoint or pipe.
*
* \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions.
*/
- #define EP_TYPE_ISOCHRONOUS 0b01
+ #define EP_TYPE_ISOCHRONOUS 0x01
/** Mask for a BULK type endpoint or pipe.
*
* \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions.
*/
- #define EP_TYPE_BULK 0b10
+ #define EP_TYPE_BULK 0x02
/** Mask for an INTERRUPT type endpoint or pipe.
*
* \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions.
*/
- #define EP_TYPE_INTERRUPT 0b11
-
- /** Mask for determining the type of an endpoint or pipe. This should then be compared with the
- * EP_TYPE_* macros elsewhere in this module to determine the exact type of the endpoint or pipe.
- *
- * \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions.
- */
- #define EP_TYPE_MASK 0b11
+ #define EP_TYPE_INTERRUPT 0x03
#if defined(USB_FULL_CONTROLLER) || defined(USB_MODIFIED_FULL_CONTROLLER) || defined(__DOXYGEN__)
/** Returns boolean true if the VBUS line is currently high (i.e. the USB host is supplying power),
|