From c9148f9b473187163f9b1384b993315e39a14711 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 31 Mar 2010 09:20:24 +0000 Subject: 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. --- Projects/AVRISP-MKII/Lib/V2Protocol.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Projects/AVRISP-MKII/Lib/V2Protocol.h') diff --git a/Projects/AVRISP-MKII/Lib/V2Protocol.h b/Projects/AVRISP-MKII/Lib/V2Protocol.h index 26c42ab75b..43dee1e77c 100644 --- a/Projects/AVRISP-MKII/Lib/V2Protocol.h +++ b/Projects/AVRISP-MKII/Lib/V2Protocol.h @@ -72,6 +72,12 @@ /** MUX mask for the VTARGET ADC channel number */ #define VTARGET_ADC_CHANNEL_MASK _GETADCMUXMASK(ADC_CHANNEL, VTARGET_ADC_CHANNEL) + + #if !defined(WIN_AVRDUDE_COMPAT) + #define SELECT_DATA_OUT_ENDPOINT() Endpoint_SetEndpointDirection(ENDPOINT_DIR_OUT); + #else + #define SELECT_DATA_OUT_ENDPOINT() Endpoint_SelectEndpoint(); + #endif /* External Variables: */ extern uint32_t CurrentAddress; -- cgit v1.2.3