diff --git a/global.h b/global.h index 4e2369b..ead3f2b 100644 --- a/global.h +++ b/global.h @@ -662,36 +662,9 @@ /** @defgroup input to force DFU mode on low, even if application is valid * @{ */ -#if defined(MAPLE_MINI) - /* use button */ - #define DFU_FORCE_PIN BUTTON_PIN /**< button pin */ - #define DFU_FORCE_VALUE BUTTON_PRESSED /**< button is pulled low unpressed, high pressed to force DFU mode */ -#elif defined(CORE_BOARD) - /* use button */ - #define DFU_FORCE_PIN BUTTON_PIN /**< button pin */ - #define DFU_FORCE_VALUE BUTTON_PRESSED /**< button floating unpressed, connected to ground pressed to force DFU mode */ -#elif defined(BLASTER) - #define DFU_FORCE_PIN PA8 /**< GPIO pin (pin PA8, not SWD and UART pin on debug port) */ - #define DFU_FORCE_VALUE 0 /**< short to nearby ground connection to force DFU */ -#elif defined(BUSVOODOO) -#if BUSVOODOO_HARDWARE_VERSION==0 - /* on BusVoodoo v0 DFU input is on PC7 */ - #define DFU_FORCE_PIN PC7 /**< 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_PIN PC4 /**< GPIO pin (pin PC4) */ - #define DFU_FORCE_VALUE 1 /**< pin floating, set high when shorted with nearby VCC */ -#endif -#elif defined(USB_CABLE_TESTER) /* since there is no pin left, we re-use SWDIO */ #define DFU_FORCE_PIN PA13 /**< SWDIO pin (needs to be remapped to become PA13) */ - #define DFU_FORCE_VALUE 0 /**< must be low to force DFU mode (note: SWDIO is also pulled up after reset) */ -#else - /* use the JNTRST pin as GPIO (SWJ will still be working, minus NTRST) */ - #define DFU_FORCE_PIN PB4 /**< JNTRST pin (needs to be remapped to become PB4) */ - #define DFU_FORCE_VALUE 0 /**< must be low to force DFU mode (note: JNTRST is also pulled up after reset) */ -#endif + #define DFU_FORCE_VALUE 0 /**< must be low to force DFU mode */ /** @} */ /** GPIO pin for display power, onboard LED, and USB D+ pull-up control (using a pMOS) */