summaryrefslogtreecommitdiff
path: root/firmware/drivers/led.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-11-07 12:15:24 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-11-07 12:15:24 +0000
commitbef7ab0c2648bff663700645b019969d53ea5923 (patch)
treeff9a3e9761e9741621eabb4a307d7bd20dc05aa8 /firmware/drivers/led.c
parent0dd7d48c3a216e6f6e8441d7444c330d1e83ada4 (diff)
The code police strikes back
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4024 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/led.c')
-rw-r--r--firmware/drivers/led.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/firmware/drivers/led.c b/firmware/drivers/led.c
index ad21dc9baf..adeb2714e0 100644
--- a/firmware/drivers/led.c
+++ b/firmware/drivers/led.c
@@ -24,19 +24,12 @@
void led(bool on)
{
-#ifdef ASM_IMPLEMENTATION
- if ( on )
- asm("or.b" "\t" "%0,@(r0,gbr)" : : "I"(0x40), "z"(PBDR_ADDR+1));
- else
- asm("and.b" "\t" "%0,@(r0,gbr)" : : "I"(~0x40), "z"(PBDR_ADDR+1));
-#else
if ( on )
{
- __set_bit_constant(6, &PBDRL);
+ or_b(0x40, &PBDRL);
}
else
{
- __clear_bit_constant(6, &PBDRL);
+ and_b(~0x40, &PBDRL);
}
-#endif
}