X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/d4ca7fb44c7d326b96cf391f0275dc323dbe24de..a9e0935a90346beb0c981924becc1f55d969a08b:/Projects/AVRISP-MKII/Descriptors.h?ds=sidebyside diff --git a/Projects/AVRISP-MKII/Descriptors.h b/Projects/AVRISP-MKII/Descriptors.h index 1600aaacf..3a4828364 100644 --- a/Projects/AVRISP-MKII/Descriptors.h +++ b/Projects/AVRISP-MKII/Descriptors.h @@ -1,13 +1,13 @@ /* LUFA Library - Copyright (C) Dean Camera, 2009. + Copyright (C) Dean Camera, 2010. dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ /* - Copyright 2009 Dean Camera (dean [at] fourwalledcubicle [dot] com) + Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted @@ -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: */