projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added new LEDs_Disable(), Buttons_Disable() and Joystick_Disable() functions to the...
[pub/lufa.git]
/
LUFA
/
Drivers
/
Board
/
AVR8
/
USBKEY
/
LEDs.h
diff --git
a/LUFA/Drivers/Board/AVR8/USBKEY/LEDs.h
b/LUFA/Drivers/Board/AVR8/USBKEY/LEDs.h
index
e4a7002
..
e4a4db1
100644
(file)
--- a/
LUFA/Drivers/Board/AVR8/USBKEY/LEDs.h
+++ b/
LUFA/Drivers/Board/AVR8/USBKEY/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;