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
/
RZUSBSTICK
/
LEDs.h
diff --git
a/LUFA/Drivers/Board/AVR8/RZUSBSTICK/LEDs.h
b/LUFA/Drivers/Board/AVR8/RZUSBSTICK/LEDs.h
index
ed5c2c1
..
bc2001e
100644
(file)
--- a/
LUFA/Drivers/Board/AVR8/RZUSBSTICK/LEDs.h
+++ b/
LUFA/Drivers/Board/AVR8/RZUSBSTICK/LEDs.h
@@
-102,6
+102,15
@@
PORTE |= (LEDS_PORTE_LEDS << LEDS_PORTE_MASK_SHIFT);
}
PORTE |= (LEDS_PORTE_LEDS << LEDS_PORTE_MASK_SHIFT);
}
+ static inline void LEDs_Disable(void)
+ {
+ DDRD &= ~LEDS_PORTD_LEDS;
+ PORTD &= ~LEDS_PORTD_LEDS;
+
+ DDRE &= ~(LEDS_PORTE_LEDS << LEDS_PORTE_MASK_SHIFT);
+ PORTE &= ~(LEDS_PORTE_LEDS << LEDS_PORTE_MASK_SHIFT);
+ }
+
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
{
PORTD |= (LEDMask & LEDS_LED1);
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
{
PORTD |= (LEDMask & LEDS_LED1);