diff options
Diffstat (limited to 'firmware/drivers/led.c')
-rw-r--r-- | firmware/drivers/led.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/drivers/led.c b/firmware/drivers/led.c index 6abd83eb15..90a1b2cb39 100644 --- a/firmware/drivers/led.c +++ b/firmware/drivers/led.c | |||
@@ -31,6 +31,11 @@ void led(bool on) | |||
31 | { | 31 | { |
32 | current = on; | 32 | current = on; |
33 | if ( on ^ xor ) | 33 | if ( on ^ xor ) |
34 | #ifdef GMINI_ARCH | ||
35 | P2 |= 1; | ||
36 | else | ||
37 | P2 &= ~1; | ||
38 | #else | ||
34 | { | 39 | { |
35 | or_b(0x40, &PBDRL); | 40 | or_b(0x40, &PBDRL); |
36 | } | 41 | } |
@@ -38,6 +43,7 @@ void led(bool on) | |||
38 | { | 43 | { |
39 | and_b(~0x40, &PBDRL); | 44 | and_b(~0x40, &PBDRL); |
40 | } | 45 | } |
46 | #endif | ||
41 | } | 47 | } |
42 | 48 | ||
43 | void invert_led(bool on) | 49 | void invert_led(bool on) |