forked from mfulz_github/qmk_firmware
Fix incorrect definition of Endpoint_BytesInEndpoint() for the U4 parts.
This commit is contained in:
parent
7ace314cc1
commit
e4cfd5208f
|
@ -338,9 +338,11 @@
|
||||||
*/
|
*/
|
||||||
static inline void Endpoint_SetEndpointDirection(uint8_t DirectionMask);
|
static inline void Endpoint_SetEndpointDirection(uint8_t DirectionMask);
|
||||||
#else
|
#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
|
#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
|
#define Endpoint_BytesInEndpoint() UEBCLX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue