diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2009-07-24 01:44:01 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2009-07-24 01:44:01 +0000 |
| commit | c6b134fc58030cd850a0a0046fc19434862c6f5f (patch) | |
| tree | 0aed41075af0b12258d1dee1c3946e61e9e4d0e0 /LUFA/Drivers/Board/RZUSBSTICK | |
| parent | 0e4f9aed2acc0b21b6d9aed0b0189ffe2717540e (diff) | |
Added new LEDs_ToggleLEDs() function to the Board LEDs driver.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@683 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Drivers/Board/RZUSBSTICK')
| -rw-r--r-- | LUFA/Drivers/Board/RZUSBSTICK/LEDs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/LUFA/Drivers/Board/RZUSBSTICK/LEDs.h b/LUFA/Drivers/Board/RZUSBSTICK/LEDs.h index 24977ea5..ecaab1ed 100644 --- a/LUFA/Drivers/Board/RZUSBSTICK/LEDs.h +++ b/LUFA/Drivers/Board/RZUSBSTICK/LEDs.h @@ -131,6 +131,12 @@ ~((ActiveMask & LEDS_PORTE_LEDS) << LEDS_PORTE_MASK_SHIFT));
}
+ static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
+ {
+ PORTD = (PORTD ^ (LEDMask & LEDS_PORTD_LEDS));
+ PORTE = (PORTE ^ ((LEDMask & LEDS_PORTE_LEDS) << LEDS_PORTE_MASK_SHIFT));
+ }
+
static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
static inline uint8_t LEDs_GetLEDs(void)
{
|
