UPGRADE
#define SPECIAL_COMMANDS (UPGRADE + 1 - GPIO_PINS)
#ifdef UPGRADE
sc->sc_pins[UPGRADE].pin_flags = GPIO_PIN_OUTPUT;
sc->sc_pins[UPGRADE].pin_mapped = 0;
#if defined(BOOT_COUNT) || defined(UPGRADE)
#ifdef UPGRADE
case UPGRADE: