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
/
USB2AX
/
LEDs.h
diff --git
a/LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h
b/LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h
index
541da26
..
e236ded
100644
(file)
--- a/
LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h
+++ b/
LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h
@@
-104,6
+104,17
@@
#endif
\r
}
\r
\r
#endif
\r
}
\r
\r
+ static inline void LEDs_Disable(void)
\r
+ {
\r
+ #if (BOARD == BOARD_USB2AX)
\r
+ DDRC &= ~LEDS_ALL_LEDS;
\r
+ PORTC &= ~LEDS_ALL_LEDS;
\r
+ #else
\r
+ DDRD &= ~LEDS_ALL_LEDS;
\r
+ PORTD &= ~LEDS_ALL_LEDS;
\r
+ #endif
\r
+ }
\r
+
\r
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
\r
{
\r
#if (BOARD == BOARD_USB2AX)
\r
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
\r
{
\r
#if (BOARD == BOARD_USB2AX)
\r