diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-09-09 09:57:03 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-09-09 09:57:03 +0000 |
commit | 66f14d44a3c3f1744e85cea14061b568c3c1306c (patch) | |
tree | d48771ffdf6f6a730b15ea41b01cbfb7b03c44b6 /LUFA/Drivers/Board/EVK527/LEDs.h | |
parent | 7aaf9b2036784fadff048172029d0a2029da0ec9 (diff) | |
download | lufa-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/EVK527/LEDs.h')
-rw-r--r-- | LUFA/Drivers/Board/EVK527/LEDs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/Board/EVK527/LEDs.h b/LUFA/Drivers/Board/EVK527/LEDs.h index 7612ba060..9f36ec828 100644 --- a/LUFA/Drivers/Board/EVK527/LEDs.h +++ b/LUFA/Drivers/Board/EVK527/LEDs.h @@ -114,7 +114,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; |