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/ATAVRUSBRF01 | |
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/ATAVRUSBRF01')
-rw-r--r-- | LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h b/LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h index b0fa0f66c..1fe71de2f 100644 --- a/LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h +++ b/LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h @@ -115,12 +115,12 @@ static inline void LEDs_ChangeLEDs(const uint8_t LEDMask, const uint8_t ActiveMask) { - PORTD = ((PORTD & ~(LEDMask & LEDS_ALL_LEDS)) | (ActiveMask & LEDS_ALL_LEDS)); + PORTD = ((PORTD & ~LEDMask) | ActiveMask); } 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; |