aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Board/AVR8/STK526/LEDs.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-01-29 14:33:36 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-01-29 14:33:36 +0000
commit5563da6a626a7301e5064a8df8b3a9b03421f8aa (patch)
tree0d5ffd18c3d061f7b91443417ce61ff07b02af3e /LUFA/Drivers/Board/AVR8/STK526/LEDs.h
parenta147cee95f5373902242e7b34b92f7103fc05ae4 (diff)
downloadlufa-5563da6a626a7301e5064a8df8b3a9b03421f8aa.tar.gz
lufa-5563da6a626a7301e5064a8df8b3a9b03421f8aa.tar.bz2
lufa-5563da6a626a7301e5064a8df8b3a9b03421f8aa.zip
Added new LEDs_Disable(), Buttons_Disable() and Joystick_Disable() functions to the board hardware drivers.
Diffstat (limited to 'LUFA/Drivers/Board/AVR8/STK526/LEDs.h')
-rw-r--r--LUFA/Drivers/Board/AVR8/STK526/LEDs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/LUFA/Drivers/Board/AVR8/STK526/LEDs.h b/LUFA/Drivers/Board/AVR8/STK526/LEDs.h
index b77c691b1..5aeb13fc6 100644
--- a/LUFA/Drivers/Board/AVR8/STK526/LEDs.h
+++ b/LUFA/Drivers/Board/AVR8/STK526/LEDs.h
@@ -89,6 +89,12 @@
PORTD &= ~LEDS_ALL_LEDS;
}
+ static inline void LEDs_Disable(void)
+ {
+ DDRD &= ~LEDS_ALL_LEDS;
+ PORTD &= ~LEDS_ALL_LEDS;
+ }
+
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
{
PORTD |= LEDMask;