aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-03-11 06:47:39 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-03-11 06:47:39 +0000
commitc8a438d66c40f444b5b5fa6a814492fef75886ed (patch)
tree96fedf9dcc53d7bea53f4f01dd6a7cb3a73b6c21 /LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.h
parente4b3e3fc65c0f0bbb10047c159a4771d6359e9b6 (diff)
downloadlufa-c8a438d66c40f444b5b5fa6a814492fef75886ed.tar.gz
lufa-c8a438d66c40f444b5b5fa6a814492fef75886ed.tar.bz2
lufa-c8a438d66c40f444b5b5fa6a814492fef75886ed.zip
Add structure padding to the appropriate descriptor structures to maintain correct alignments on larger architectures.
Fix EVK1101 swapped joystick Right/Down masks.
Diffstat (limited to 'LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.h')
-rw-r--r--LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.h b/LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.h
index b74b5dae5..760f78280 100644
--- a/LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.h
+++ b/LUFA/Drivers/USB/Core/UC3B/Endpoint_UC3B.h
@@ -583,7 +583,7 @@
static inline uint32_t Endpoint_GetEndpointDirection(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
static inline uint32_t Endpoint_GetEndpointDirection(void)
{
- return ((&AVR32_USBB.uecfg0)[USB_SelectedEndpoint] & AVR32_USBB_UECFG0_EPDIR_MASK);
+ return ((&AVR32_USBB.uecfg0)[USB_SelectedEndpoint] & AVR32_USBB_UECFG0_EPDIR_MASK) ? ENDPOINT_DIR_IN : ENDPOINT_DIR_OUT;
}
/** Sets the direction of the currently selected endpoint.