aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-12-09 07:09:52 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-12-09 07:09:52 +0000
commite4cfd5208fdb51942ad8857dd5e1d96f5216f73b (patch)
tree657867fd882462065843e5c776424754a5af973f
parent7ace314cc12f24c1c3108311bdfb3a2ed484ab37 (diff)
downloadlufa-e4cfd5208fdb51942ad8857dd5e1d96f5216f73b.tar.gz
lufa-e4cfd5208fdb51942ad8857dd5e1d96f5216f73b.tar.bz2
lufa-e4cfd5208fdb51942ad8857dd5e1d96f5216f73b.zip
Fix incorrect definition of Endpoint_BytesInEndpoint() for the U4 parts.
-rw-r--r--LUFA/Drivers/USB/LowLevel/Endpoint.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/Endpoint.h b/LUFA/Drivers/USB/LowLevel/Endpoint.h
index eb09a0ddb..8ff930611 100644
--- a/LUFA/Drivers/USB/LowLevel/Endpoint.h
+++ b/LUFA/Drivers/USB/LowLevel/Endpoint.h
@@ -338,9 +338,11 @@
*/
static inline void Endpoint_SetEndpointDirection(uint8_t DirectionMask);
#else
- #if defined(USB_SERIES_4_AVR) || defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR) || defined(__DOXYGEN__)
+ #if defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR) || defined(__DOXYGEN__)
#define Endpoint_BytesInEndpoint() UEBCX
- #else
+ #elif defined(USB_SERIES_4_AVR)
+ #define Endpoint_BytesInEndpoint() (((uint16_t)UEBCHX << 8) | UEBCLX)
+ #elif defined(USB_SERIES_2_AVR)
#define Endpoint_BytesInEndpoint() UEBCLX
#endif