aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Board/STK525
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-09-09 09:57:03 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-09-09 09:57:03 +0000
commit66f14d44a3c3f1744e85cea14061b568c3c1306c (patch)
treed48771ffdf6f6a730b15ea41b01cbfb7b03c44b6 /LUFA/Drivers/Board/STK525
parent7aaf9b2036784fadff048172029d0a2029da0ec9 (diff)
downloadlufa-66f14d44a3c3f1744e85cea14061b568c3c1306c.tar.gz
lufa-66f14d44a3c3f1744e85cea14061b568c3c1306c.tar.bz2
lufa-66f14d44a3c3f1744e85cea14061b568c3c1306c.zip
Added LEDs_ToggleLEDs() function to several board LED drivers which were missing it (thanks to Andrei Krainev).
Simplify some of the LED driver functions to produce more compact code.
Diffstat (limited to 'LUFA/Drivers/Board/STK525')
-rw-r--r--LUFA/Drivers/Board/STK525/LEDs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/Board/STK525/LEDs.h b/LUFA/Drivers/Board/STK525/LEDs.h
index d2d1bbb2c..407c89278 100644
--- a/LUFA/Drivers/Board/STK525/LEDs.h
+++ b/LUFA/Drivers/Board/STK525/LEDs.h
@@ -117,7 +117,7 @@
static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
{
- PORTD = (PORTD ^ (LEDMask & LEDS_ALL_LEDS));
+ PORTD ^= LEDMask;
}
static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;