diff --git a/global.h b/global.h index 1b7125a..adaa30c 100644 --- a/global.h +++ b/global.h @@ -416,10 +416,17 @@ #define DFU_FORCE_PIN BUTTON_PIN /**< button pin */ #define DFU_FORCE_VALUE 0 /**< button floating unpressed, connected to ground pressed to force DFU mode */ #elif defined(BUSVOODOO) - /* on BusVoodoo DFU input is on PC4 */ +#if BUSVOODOO_HARDWARE_VERSION==0 + /* on BusVoodoo v0 DFU input is on PC7 */ + #define DFU_FORCE_PORT C /**< GPIO port (port C) */ + #define DFU_FORCE_PIN 7 /**< GPIO pin (pin PC7) */ + #define DFU_FORCE_VALUE 1 /**< pin is pulled low, and goes high when shorted with VUSB */ +#else + /* on BusVoodoo vA DFU input is on PC4 */ #define DFU_FORCE_PORT C /**< GPIO port (port C) */ #define DFU_FORCE_PIN 4 /**< GPIO pin (pin PC4) */ #define DFU_FORCE_VALUE 1 /**< pin floating, set high when shorted with nearby VCC */ +#endif #else /* use the JNTRST pin as GPIO (SWJ will still be working, minus NTRST) */ #define DFU_FORCE_PORT B /**< JNTRST port (needs to be remapped to become PB4) */