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/XPLAIN/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/XPLAIN/LEDs.h')
-rw-r--r-- | LUFA/Drivers/Board/XPLAIN/LEDs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/Board/XPLAIN/LEDs.h b/LUFA/Drivers/Board/XPLAIN/LEDs.h index 00f7bc2a3..697ec9677 100644 --- a/LUFA/Drivers/Board/XPLAIN/LEDs.h +++ b/LUFA/Drivers/Board/XPLAIN/LEDs.h @@ -103,12 +103,12 @@ static inline void LEDs_ChangeLEDs(const uint8_t LEDMask, const uint8_t ActiveMask) { - PORTB = ((PORTB | (LEDMask & LEDS_ALL_LEDS)) & (~ActiveMask & LEDS_ALL_LEDS)); + PORTB = ((PORTB | LEDMask) & ~ActiveMask); } static inline void LEDs_ToggleLEDs(const uint8_t LEDMask) { - PORTD = (PORTB ^ (LEDMask & LEDS_ALL_LEDS)); + PORTB ^= LEDMask; } static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT; |