pinio.c: introduce PS_INVERT_ON.

Some non-ATX PSUs require the pin to go high for turning it on.
This commit is contained in:
Markus Hitter 2015-07-12 10:15:38 +02:00
parent bcfb13d4e2
commit e0e6c33bc4
1 changed files with 5 additions and 1 deletions

View File

@ -119,7 +119,11 @@ void power_on() {
if (ps_is_on == 0) {
#ifdef PS_ON_PIN
SET_OUTPUT(PS_ON_PIN);
#ifdef PS_INVERT_ON
WRITE(PS_ON_PIN, 1);
#else
WRITE(PS_ON_PIN, 0);
#endif
delay_ms(500);
#endif
#ifdef PS_MOSFET_PIN