X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/7f9f97c792dee6875fbca9806422bdd7d6c5a657..a9e0935a90346beb0c981924becc1f55d969a08b:/Projects/AVRISP-MKII/Descriptors.h diff --git a/Projects/AVRISP-MKII/Descriptors.h b/Projects/AVRISP-MKII/Descriptors.h index 6a34b2bba..3a4828364 100644 --- a/Projects/AVRISP-MKII/Descriptors.h +++ b/Projects/AVRISP-MKII/Descriptors.h @@ -42,11 +42,22 @@ #include /* Macros: */ - /** Endpoint number of the AVRISP bidirectional data endpoint. */ - #define AVRISP_DATA_EPNUM 2 + #if !defined(LIBUSB_FILTERDRV_COMPAT) + /** Endpoint number of the AVRISP data OUT endpoint. */ + #define AVRISP_DATA_OUT_EPNUM 2 + + /** Endpoint number of the AVRISP data IN endpoint. */ + #define AVRISP_DATA_IN_EPNUM 2 + #else + /** Endpoint number of the AVRISP data OUT endpoint. */ + #define AVRISP_DATA_OUT_EPNUM 2 + + /** Endpoint number of the AVRISP data IN endpoint. */ + #define AVRISP_DATA_IN_EPNUM 3 + #endif /** Size in bytes of the AVRISP data endpoint. */ - #define AVRISP_DATA_EPSIZE 64 + #define AVRISP_DATA_EPSIZE 64 /* Type Defines: */ /** Type define for the device configuration descriptor structure. This must be defined in the @@ -56,9 +67,9 @@ typedef struct { USB_Descriptor_Configuration_Header_t Config; - USB_Descriptor_Interface_t AVRISPInterface; - USB_Descriptor_Endpoint_t DataInEndpoint; - USB_Descriptor_Endpoint_t DataOutEndpoint; + USB_Descriptor_Interface_t AVRISP_Interface; + USB_Descriptor_Endpoint_t AVRISP_DataInEndpoint; + USB_Descriptor_Endpoint_t AVRISP_DataOutEndpoint; } USB_Descriptor_Configuration_t; /* Function Prototypes: */