aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-07-14 05:38:32 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-07-14 05:38:32 +0000
commitbc41cbd26d26c9e8e4656948377d157fa3585ee9 (patch)
tree812874ba8c38e7d2619608095f75587ccfbfeae7 /LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h
parent7c3290607e655d568be88fba222d9adedbfa1fd8 (diff)
downloadlufa-bc41cbd26d26c9e8e4656948377d157fa3585ee9.tar.gz
lufa-bc41cbd26d26c9e8e4656948377d157fa3585ee9.tar.bz2
lufa-bc41cbd26d26c9e8e4656948377d157fa3585ee9.zip
Add support for triple endpoint/pipe bank AVR32 UC3 devices.
Diffstat (limited to 'LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h')
-rw-r--r--LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h b/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h
index ae8f0363c..25a4586d8 100644
--- a/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h
+++ b/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h
@@ -161,6 +161,17 @@
* bank.
*/
#define PIPE_BANK_DOUBLE AVR32_USBB_UPCFG0_PBK_DOUBLE
+
+ #if defined(USB_SERIES_UC3A3_AVR32) || defined(USB_SERIES_UC3A4_AVR32) || defined(__DOXYGEN__)
+ /** Mask for the bank mode selection for the \ref Pipe_ConfigurePipe() macro. This indicates that the
+ * pipe should have three banks, which requires more USB FIFO memory but results in faster transfers
+ * as one USB device (the AVR or the attached device) can access one bank while the other accesses the
+ * remaining banks.
+ *
+ * \note Not available on all AVR models.
+ */
+ #define PIPE_BANK_TRIPLE AVR32_USBB_UPCFG0_PBK_TRIPLE
+ #endif
//@}
/** Default size of the default control pipe's bank, until altered by the Endpoint0Size value