aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel/Endpoint.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-04-16 23:59:14 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-04-16 23:59:14 +0000
commit1c16ae399a9f924c15d9dec54cacb1320ff0a92f (patch)
tree026174d2f65b998d9cb6b24156393fae40a0d60e /LUFA/Drivers/USB/LowLevel/Endpoint.h
parent8f6b4ddf764c3a54e42d00a7502c82c5c3e71b1c (diff)
downloadlufa-1c16ae399a9f924c15d9dec54cacb1320ff0a92f.tar.gz
lufa-1c16ae399a9f924c15d9dec54cacb1320ff0a92f.tar.bz2
lufa-1c16ae399a9f924c15d9dec54cacb1320ff0a92f.zip
Partial commit: change references to Drivers/AT90USBXXX to Drivers/Peripheral.
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel/Endpoint.h')
-rw-r--r--LUFA/Drivers/USB/LowLevel/Endpoint.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/Endpoint.h b/LUFA/Drivers/USB/LowLevel/Endpoint.h
index 2223f0ca4..a7a282258 100644
--- a/LUFA/Drivers/USB/LowLevel/Endpoint.h
+++ b/LUFA/Drivers/USB/LowLevel/Endpoint.h
@@ -416,9 +416,9 @@
#define Endpoint_HasEndpointInterrupted(n) ((UEINT & (1 << n)) ? true : false)
- #define Endpoint_IsINReady() ((UEINTX & (1 << TXINI)) ? true : false)
+ #define Endpoint_IsINReady() ((UEINTX & (1 << TXINI)) ? true : false)
- #define Endpoint_IsOUTReceived() ((UEINTX & (1 << RXOUTI)) ? true : false)
+ #define Endpoint_IsOUTReceived() ((UEINTX & (1 << RXOUTI)) ? true : false)
#define Endpoint_IsSETUPReceived() ((UEINTX & (1 << RXSTPI)) ? true : false)
@@ -428,9 +428,11 @@
#define Endpoint_ClearControlOUT() MACROS{ UEINTX &= ~(1 << RXOUTI); }MACROE
- #define Endpoint_ClearIN() MACROS{ UEINTX &= ~(1 << TXINI); UEINTX &= ~(1 << FIFOCON); }MACROE
+ #define Endpoint_ClearIN() MACROS{ uint8_t Temp = UEINTX; UEINTX = (Temp & ~(1 << TXINI)); \
+ UEINTX = (Temp & ~(1 << FIFOCON)); }MACROE
- #define Endpoint_ClearOUT() MACROS{ UEINTX &= ~(1 << RXOUTI); UEINTX &= ~(1 << FIFOCON); }MACROE
+ #define Endpoint_ClearOUT() MACROS{ uint8_t Temp = UEINTX; UEINTX = (Temp & ~(1 << RXOUTI)); \
+ UEINTX = (Temp & ~(1 << FIFOCON)); }MACROE
#define Endpoint_StallTransaction() MACROS{ UECONX |= (1 << STALLRQ); }MACROE