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
/
XPLAIN
/
LEDs.h
diff --git
a/LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h
b/LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h
index
3abe98e
..
870d7a3
100644
(file)
--- a/
LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h
+++ b/
LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h
@@
-87,6
+87,12
@@
PORTB |= LEDS_ALL_LEDS;
}
+ static inline void LEDs_Disable(void)
+ {
+ DDRB &= ~LEDS_ALL_LEDS;
+ PORTB &= ~LEDS_ALL_LEDS;
+ }
+
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
{
PORTB &= ~LEDMask;