aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-02-19 15:26:42 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-02-19 15:26:42 +0000
commit84ff878fd75b1d2861feb537bc32d7575c40dcda (patch)
tree0722248eb7a5a2f39fa52790ac15640bf1df167c /LUFA/Drivers/USB/Core/UC3/Pipe_UC3.c
parent50ff97f378b76d177fef7162e31bb3fb71ef050c (diff)
downloadlufa-84ff878fd75b1d2861feb537bc32d7575c40dcda.tar.gz
lufa-84ff878fd75b1d2861feb537bc32d7575c40dcda.tar.bz2
lufa-84ff878fd75b1d2861feb537bc32d7575c40dcda.zip
Fix errors uncovered by the new build test compile warnings; fix UC3 pipe configuration function broken, redundant function prototypes and unused parameters.
Diffstat (limited to 'LUFA/Drivers/USB/Core/UC3/Pipe_UC3.c')
-rw-r--r--LUFA/Drivers/USB/Core/UC3/Pipe_UC3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.c b/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.c
index 770f28545..dbd03c7cd 100644
--- a/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.c
+++ b/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.c
@@ -58,6 +58,7 @@ bool Pipe_ConfigurePipe(const uint8_t Number,
((uint32_t)Type << AVR32_USBB_PTYPE_OFFSET) |
((uint32_t)Token << AVR32_USBB_PTOKEN_OFFSET) |
((uint32_t)Banks << AVR32_USBB_PBK_OFFSET) |
+ Pipe_BytesToEPSizeMask(Size) |
((EndpointNumber & PIPE_EPNUM_MASK) << AVR32_USBB_PEPNUM_OFFSET));
Pipe_SetInfiniteINRequests();
@@ -76,6 +77,7 @@ bool Pipe_ConfigurePipe(const uint8_t Number,
((uint32_t)Type << AVR32_USBB_PTYPE_OFFSET) |
((uint32_t)Token << AVR32_USBB_PTOKEN_OFFSET) |
((uint32_t)Banks << AVR32_USBB_PBK_OFFSET) |
+ Pipe_BytesToEPSizeMask(Size) |
((EndpointNumber & PIPE_EPNUM_MASK) << AVR32_USBB_PEPNUM_OFFSET));
}
else