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
b9122e4
..
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
@@
-353,7
+355,7
@@
#if !defined(CONTROL_ONLY_DEVICE)
\r
#define Endpoint_SelectEndpoint(epnum) MACROS{ UENUM = (epnum); }MACROE
\r
#else
\r
#if !defined(CONTROL_ONLY_DEVICE)
\r
#define Endpoint_SelectEndpoint(epnum) MACROS{ UENUM = (epnum); }MACROE
\r
#else
\r
- #define Endpoint_SelectEndpoint(epnum) (void)
epnum
\r
+ #define Endpoint_SelectEndpoint(epnum) (void)
(epnum)
\r
#endif
\r
\r
#define Endpoint_ResetFIFO(epnum) MACROS{ UERST = (1 << (epnum)); UERST = 0; }MACROE
\r
#endif
\r
\r
#define Endpoint_ResetFIFO(epnum) MACROS{ UERST = (1 << (epnum)); UERST = 0; }MACROE
\r