aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Board/ATAVRUSBRF01
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-07-24 01:44:01 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-07-24 01:44:01 +0000
commit200821fe827230570e253c1679f00bcdb6c5bd94 (patch)
tree0aed41075af0b12258d1dee1c3946e61e9e4d0e0 /LUFA/Drivers/Board/ATAVRUSBRF01
parent3991c94b3858bbb02ca9ea6497cf60c84635b99a (diff)
downloadlufa-200821fe827230570e253c1679f00bcdb6c5bd94.tar.gz
lufa-200821fe827230570e253c1679f00bcdb6c5bd94.tar.bz2
lufa-200821fe827230570e253c1679f00bcdb6c5bd94.zip
Added new LEDs_ToggleLEDs() function to the Board LEDs driver.
Diffstat (limited to 'LUFA/Drivers/Board/ATAVRUSBRF01')
-rw-r--r--LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h b/LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h
index 9f808279a..8487ee74e 100644
--- a/LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h
+++ b/LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h
@@ -110,6 +110,11 @@
{
PORTD = ((PORTD & ~(LEDMask & LEDS_ALL_LEDS)) | (ActiveMask & LEDS_ALL_LEDS));
}
+
+ static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
+ {
+ PORTD = (PORTD ^ (LEDMask & LEDS_ALL_LEDS));
+ }
static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
static inline uint8_t LEDs_GetLEDs(void)