Fix flip-ee DFU build target accidentally erasing the target FLASH memory space.
[pub/USBasp.git] / Projects / AVRISP-MKII / AVRISPDescriptors.h
index 2779e08..20725c5 100644 (file)
@@ -41,6 +41,8 @@
 
                #include <LUFA/Drivers/USB/USB.h>
                #include <LUFA/Drivers/Board/LEDs.h>
+               
+               #include "Config/AppConfig.h"
 
        /* Preprocessor Checks: */
                #if defined(LIBUSB_DRIVER_COMPAT) && defined(RESET_TOGGLES_LIBUSB_COMPAT)
                /** Endpoint address of the AVRISP data IN endpoint, when in LibUSB driver compatibility mode. */
                #define AVRISP_DATA_IN_EPADDR_LIBUSB   (ENDPOINT_DIR_IN  | 3)
 
-               #if !defined(LIBUSB_DRIVER_COMPAT) || defined(__DOXYGEN__)
-                       /** Endpoint address of the AVRISP data IN endpoint. */
-                       #define AVRISP_DATA_IN_EPADDR      AVRISP_DATA_IN_EPADDR_JUNGO
-               #elif defined(RESET_TOGGLES_LIBUSB_COMPAT)
+               #if defined(RESET_TOGGLES_LIBUSB_COMPAT)
                        #define AVRISP_DATA_IN_EPADDR      AVRISP_CurrDataINEndpointAddress
-               #else
+               #elif defined(LIBUSB_DRIVER_COMPAT)
                        #define AVRISP_DATA_IN_EPADDR      AVRISP_DATA_IN_EPADDR_LIBUSB
+               #else
+                       /** Endpoint address of the AVRISP data IN endpoint. */
+                       #define AVRISP_DATA_IN_EPADDR      AVRISP_DATA_IN_EPADDR_JUNGO
                #endif
                
                /** Size in bytes of the AVRISP data endpoint. */