projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Speed up bit-banged USART code in the AVRISP project.
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
LowLevel
/
Endpoint.h
diff --git
a/LUFA/Drivers/USB/LowLevel/Endpoint.h
b/LUFA/Drivers/USB/LowLevel/Endpoint.h
index
eb09a0d
..
ef23253
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/Endpoint.h
+++ b/
LUFA/Drivers/USB/LowLevel/Endpoint.h
@@
-338,9
+338,11
@@
*/
\r
static inline void Endpoint_SetEndpointDirection(uint8_t DirectionMask);
\r
#else
\r
*/
\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
)
\r
#define Endpoint_BytesInEndpoint() UEBCX
\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
#define Endpoint_BytesInEndpoint() UEBCLX
\r
#endif
\r
\r