aboutsummaryrefslogtreecommitdiff
path: root/Projects/XPLAINBridge/AVRISPDescriptors.h
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2010-03-31 09:20:24 +0000
committerDean Camera <[email protected]>2010-03-31 09:20:24 +0000
commitc9148f9b473187163f9b1384b993315e39a14711 (patch)
tree2ba2e20b8efb6662876a960e899c26fe516a5382 /Projects/XPLAINBridge/AVRISPDescriptors.h
parentce46257ff297d19958b6303f30f69dd053fd9fa1 (diff)
downloadqmk_firmware-c9148f9b473187163f9b1384b993315e39a14711.tar.gz
qmk_firmware-c9148f9b473187163f9b1384b993315e39a14711.zip
Added WIN_LIBUSB_COMPAT compile time option to the AVRISP programmer project to make the code compatible with Windows builds of avrdude at the expense of AVRStudio compatibility.
Diffstat (limited to 'Projects/XPLAINBridge/AVRISPDescriptors.h')
-rw-r--r--Projects/XPLAINBridge/AVRISPDescriptors.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/Projects/XPLAINBridge/AVRISPDescriptors.h b/Projects/XPLAINBridge/AVRISPDescriptors.h
index 7287ce6397..2fa18095df 100644
--- a/Projects/XPLAINBridge/AVRISPDescriptors.h
+++ b/Projects/XPLAINBridge/AVRISPDescriptors.h
@@ -42,9 +42,20 @@
#include <LUFA/Drivers/USB/USB.h>
/* 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