|
|
@ -295,6 +295,10 @@ void setup_powerhold()
|
|
|
|
WRITE(SUICIDE_PIN, HIGH);
|
|
|
|
WRITE(SUICIDE_PIN, HIGH);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if (PS_ON_PIN > -1)
|
|
|
|
|
|
|
|
SET_OUTPUT(PS_ON_PIN);
|
|
|
|
|
|
|
|
WRITE(PS_ON_PIN, PS_ON_AWAKE);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void suicide()
|
|
|
|
void suicide()
|
|
|
@ -1137,7 +1141,7 @@ void process_commands()
|
|
|
|
#if (PS_ON_PIN > -1)
|
|
|
|
#if (PS_ON_PIN > -1)
|
|
|
|
case 80: // M80 - ATX Power On
|
|
|
|
case 80: // M80 - ATX Power On
|
|
|
|
SET_OUTPUT(PS_ON_PIN); //GND
|
|
|
|
SET_OUTPUT(PS_ON_PIN); //GND
|
|
|
|
WRITE(PS_ON_PIN, LOW);
|
|
|
|
WRITE(PS_ON_PIN, PS_ON_AWAKE);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
@ -1148,7 +1152,7 @@ void process_commands()
|
|
|
|
suicide();
|
|
|
|
suicide();
|
|
|
|
#elif (PS_ON_PIN > -1)
|
|
|
|
#elif (PS_ON_PIN > -1)
|
|
|
|
SET_OUTPUT(PS_ON_PIN);
|
|
|
|
SET_OUTPUT(PS_ON_PIN);
|
|
|
|
WRITE(PS_ON_PIN, HIGH);
|
|
|
|
WRITE(PS_ON_PIN, PS_ON_ASLEEP);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|