diff options
author | Jean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com> | 2005-02-05 16:20:23 +0000 |
---|---|---|
committer | Jean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com> | 2005-02-05 16:20:23 +0000 |
commit | c3c26262f45548ad9e920d0d635a745d6829227b (patch) | |
tree | ef21dd170e994139ef13cf89c062b18fc80e8938 /firmware/drivers/led.c | |
parent | 8fd430508a096489412c3efb97268d6a68924691 (diff) | |
download | rockbox-c3c26262f45548ad9e920d0d635a745d6829227b.tar.gz rockbox-c3c26262f45548ad9e920d0d635a745d6829227b.zip |
led driver for gmini
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5798 a1c6a512-1295-4272-9138-f99709370657
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) |