@ -93,30 +93,30 @@
/* Macros: */
/* Macros: */
# define _ENDPOINT_GET_MAXSIZE(EPIndex) _ENDPOINT_GET_MAXSIZE2(ENDPOINT_DETAILS_EP ## EPIndex)
# define _ENDPOINT_GET_MAXSIZE(EPIndex) _ENDPOINT_GET_MAXSIZE2(ENDPOINT_DETAILS_EP ## EPIndex)
# define _ENDPOINT_GET_MAXSIZE2(EPDetails) _ENDPOINT_GET_MAXSIZE3(EPDetails)
# define _ENDPOINT_GET_MAXSIZE2(EPDetails) _ENDPOINT_GET_MAXSIZE3(EPDetails)
# define _ENDPOINT_GET_MAXSIZE3(MaxSize, D B) (MaxSize)
# define _ENDPOINT_GET_MAXSIZE3(MaxSize, Banks ) (MaxSize)
# define _ENDPOINT_GET_ DOUBLE BANK(EPIndex) _ENDPOINT_GET_DOUBLE BANK2(ENDPOINT_DETAILS_EP ## EPIndex)
# define _ENDPOINT_GET_ BANKS (EPIndex) _ENDPOINT_GET_BANKS 2(ENDPOINT_DETAILS_EP ## EPIndex)
# define _ENDPOINT_GET_ DOUBLE BANK2(EPDetails) _ENDPOINT_GET_DOUBLE BANK3(EPDetails)
# define _ENDPOINT_GET_ BANKS 2(EPDetails) _ENDPOINT_GET_BANKS 3(EPDetails)
# define _ENDPOINT_GET_ DOUBLE BANK3(MaxSize, D B) (D B)
# define _ENDPOINT_GET_ BANKS 3(MaxSize, Banks ) (Banks )
# if defined(USB_SERIES_4_AVR) || defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR)
# if defined(USB_SERIES_4_AVR) || defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR)
# define ENDPOINT_DETAILS_MAXEP 7
# define ENDPOINT_DETAILS_MAXEP 7
# define ENDPOINT_DETAILS_EP0 64, true
# define ENDPOINT_DETAILS_EP0 64, 2
# define ENDPOINT_DETAILS_EP1 256, true
# define ENDPOINT_DETAILS_EP1 256, 2
# define ENDPOINT_DETAILS_EP2 64, true
# define ENDPOINT_DETAILS_EP2 64, 2
# define ENDPOINT_DETAILS_EP3 64, true
# define ENDPOINT_DETAILS_EP3 64, 2
# define ENDPOINT_DETAILS_EP4 64, true
# define ENDPOINT_DETAILS_EP4 64, 2
# define ENDPOINT_DETAILS_EP5 64, true
# define ENDPOINT_DETAILS_EP5 64, 2
# define ENDPOINT_DETAILS_EP6 64, true
# define ENDPOINT_DETAILS_EP6 64, 2
# else
# else
# define ENDPOINT_DETAILS_MAXEP 5
# define ENDPOINT_DETAILS_MAXEP 5
# define ENDPOINT_DETAILS_EP0 64, true
# define ENDPOINT_DETAILS_EP0 64, 2
# define ENDPOINT_DETAILS_EP1 64, false
# define ENDPOINT_DETAILS_EP1 64, 1
# define ENDPOINT_DETAILS_EP2 64, false
# define ENDPOINT_DETAILS_EP2 64, 1
# define ENDPOINT_DETAILS_EP3 64, true
# define ENDPOINT_DETAILS_EP3 64, 2
# define ENDPOINT_DETAILS_EP4 64, true
# define ENDPOINT_DETAILS_EP4 64, 2
# endif
# endif
/* Inline Functions: */
/* Inline Functions: */
@ -203,11 +203,11 @@
*/
*/
# define ENDPOINT_MAX_SIZE(EPIndex) _ENDPOINT_GET_MAXSIZE(EPIndex)
# define ENDPOINT_MAX_SIZE(EPIndex) _ENDPOINT_GET_MAXSIZE(EPIndex)
/** Indicates if the given endpoint supports double banking .
/** Indicates the total number of banks supported by the given endpoint .
*
*
* \ param [ in ] EPIndex Endpoint number , a value between 0 and ( ENDPOINT_TOTAL_ENDPOINTS - 1 )
* \ param [ in ] EPIndex Endpoint number , a value between 0 and ( ENDPOINT_TOTAL_ENDPOINTS - 1 )
*/
*/
# define ENDPOINT_ DOUBLE BANK_SUPPORTED(EPIndex) _ENDPOINT_GET_DOUBLE BANK(EPIndex)
# define ENDPOINT_ BANKS _SUPPORTED(EPIndex) _ENDPOINT_GET_BANKS (EPIndex)
# if !defined(CONTROL_ONLY_DEVICE) || defined(__DOXYGEN__)
# if !defined(CONTROL_ONLY_DEVICE) || defined(__DOXYGEN__)
/** Total number of endpoints (including the default control endpoint at address 0) which may
/** Total number of endpoints (including the default control endpoint at address 0) which may