Fix incorrect definition of Endpoint_BytesInEndpoint() for the U4 parts.
authorDean Camera <dean@fourwalledcubicle.com>
Wed, 9 Dec 2009 07:09:52 +0000 (07:09 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Wed, 9 Dec 2009 07:09:52 +0000 (07:09 +0000)
LUFA/Drivers/USB/LowLevel/Endpoint.h

index eb09a0d..8ff9306 100644 (file)
                                 */\r
                                static inline void Endpoint_SetEndpointDirection(uint8_t DirectionMask);\r
                        #else\r
-                               #if defined(USB_SERIES_4_AVR) || defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR) || defined(__DOXYGEN__)\r
+                               #if defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR) || defined(__DOXYGEN__)\r
                                        #define Endpoint_BytesInEndpoint()        UEBCX\r
-                               #else\r
+                               #elif defined(USB_SERIES_4_AVR)\r
+                                       #define Endpoint_BytesInEndpoint()        (((uint16_t)UEBCHX << 8) | UEBCLX)                            \r
+                               #elif defined(USB_SERIES_2_AVR)\r
                                        #define Endpoint_BytesInEndpoint()        UEBCLX\r
                                #endif\r
                                \r