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:
parent
bcfb13d4e2
commit
e0e6c33bc4
6
pinio.c
6
pinio.c
|
|
@ -119,7 +119,11 @@ void power_on() {
|
||||||
if (ps_is_on == 0) {
|
if (ps_is_on == 0) {
|
||||||
#ifdef PS_ON_PIN
|
#ifdef PS_ON_PIN
|
||||||
SET_OUTPUT(PS_ON_PIN);
|
SET_OUTPUT(PS_ON_PIN);
|
||||||
WRITE(PS_ON_PIN, 0);
|
#ifdef PS_INVERT_ON
|
||||||
|
WRITE(PS_ON_PIN, 1);
|
||||||
|
#else
|
||||||
|
WRITE(PS_ON_PIN, 0);
|
||||||
|
#endif
|
||||||
delay_ms(500);
|
delay_ms(500);
|
||||||
#endif
|
#endif
|
||||||
#ifdef PS_MOSFET_PIN
|
#ifdef PS_MOSFET_PIN
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue