General cleanup and more port work to the AVR32 UC3B.
[pub/lufa.git] / LUFA / Drivers / USB / Core / UC3B / Endpoint_UC3B.h
index ca7403a..556ac84 100644 (file)
                        #define _ENDPOINT_GET_BANKS2(EPDetails)        _ENDPOINT_GET_BANKS3(EPDetails)\r
                        #define _ENDPOINT_GET_BANKS3(MaxSize, Banks)   (Banks)\r
 \r
-                       #if defined(USB_SERIES_4_AVR) || defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR)\r
-                               #define ENDPOINT_DETAILS_MAXEP             7\r
-\r
-                               #define ENDPOINT_DETAILS_EP0               64,  2\r
-                               #define ENDPOINT_DETAILS_EP1               256, 2\r
-                               #define ENDPOINT_DETAILS_EP2               64,  2\r
-                               #define ENDPOINT_DETAILS_EP3               64,  2\r
-                               #define ENDPOINT_DETAILS_EP4               64,  2\r
-                               #define ENDPOINT_DETAILS_EP5               64,  2\r
-                               #define ENDPOINT_DETAILS_EP6               64,  2\r
-                       #else\r
-                               #define ENDPOINT_DETAILS_MAXEP             5\r
+                       #define ENDPOINT_DETAILS_MAXEP                 7\r
 \r
-                               #define ENDPOINT_DETAILS_EP0               64,  2\r
-                               #define ENDPOINT_DETAILS_EP1               64,  1\r
-                               #define ENDPOINT_DETAILS_EP2               64,  1\r
-                               #define ENDPOINT_DETAILS_EP3               64,  2\r
-                               #define ENDPOINT_DETAILS_EP4               64,  2\r
-                       #endif\r
+                       #define ENDPOINT_DETAILS_EP0                   64,  1\r
+                       #define ENDPOINT_DETAILS_EP1                   64,  2\r
+                       #define ENDPOINT_DETAILS_EP2                   64,  2\r
+                       #define ENDPOINT_DETAILS_EP3                   64,  2\r
+                       #define ENDPOINT_DETAILS_EP4                   64,  2\r
+                       #define ENDPOINT_DETAILS_EP5                   256, 2\r
+                       #define ENDPOINT_DETAILS_EP6                   256, 2\r
 \r
                /* Inline Functions: */\r
                        static inline uint32_t Endpoint_BytesToEPSizeMask(const uint16_t Bytes) ATTR_WARN_UNUSED_RESULT ATTR_CONST\r
                         *  accesses the second bank.\r
                         */\r
                        #define ENDPOINT_BANK_DOUBLE                    AVR32_USBB_UECFG0_EPBK_DOUBLE\r
-\r
-                       /** Mask for the bank mode selection for the \ref Endpoint_ConfigureEndpoint() macro. This indicates\r
-                        *  that the endpoint should have three banks, which requires more USB FIFO memory but results\r
-                        *  in faster transfers as one USB device (the AVR or the host) can access one bank while the other\r
-                        *  accesses the remaining banks.\r
-                        */\r
-                       #define ENDPOINT_BANK_TRIPLE                    AVR32_USBB_UECFG0_EPBK_TRIPLE\r
                        //@}\r
 \r
                        #if (!defined(FIXED_CONTROL_ENDPOINT_SIZE) || defined(__DOXYGEN__))\r
 \r
                        #if !defined(CONTROL_ONLY_DEVICE) || defined(__DOXYGEN__)\r
                                /** Total number of endpoints (including the default control endpoint at address 0) which may\r
-                                *  be used in the device. Different USB AVR models support different amounts of endpoints,\r
+                                *  be used in the device. Different AVR models support different amounts of endpoints,\r
                                 *  this value reflects the maximum number of endpoints for the currently selected AVR model.\r
                                 */\r
                                #define ENDPOINT_TOTAL_ENDPOINTS            ENDPOINT_DETAILS_MAXEP\r
                         *        ascending order, or bank corruption will occur.\r
                         *        \n\n\r
                         *\r
-                        *  \note Certain models of USB AVR's endpoints may have different maximum packet sizes based on the endpoint's\r
-                        *        index - refer to the chosen USB AVR's datasheet to determine the maximum bank size for each endpoint.\r
+                        *  \note Different endpoints may have different maximum packet sizes based on the endpoint's index - refer to\r
+                        *        the chosen microcontroller model's datasheet to determine the maximum bank size for each endpoint.\r
                         *        \n\n\r
                         *\r
                         *  \note The default control endpoint should not be manually configured by the user application, as\r