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
/
BUI
/
LEDs.h
diff --git
a/LUFA/Drivers/Board/AVR8/BUI/LEDs.h
b/LUFA/Drivers/Board/AVR8/BUI/LEDs.h
index
aeb757a
..
66a1959
100644
(file)
--- a/
LUFA/Drivers/Board/AVR8/BUI/LEDs.h
+++ b/
LUFA/Drivers/Board/AVR8/BUI/LEDs.h
@@
-82,7
+82,14
@@
#if !defined(__DOXYGEN__)
static inline void LEDs_Init(void)
{
#if !defined(__DOXYGEN__)
static inline void LEDs_Init(void)
{
- DDRC |= LEDS_ALL_LEDS;
+ DDRC |= LEDS_ALL_LEDS;
+ PORTC &= ~LEDS_ALL_LEDS;
+ }
+
+ static inline void LEDs_Disable(void)
+ {
+ DDRC &= ~LEDS_ALL_LEDS;
+ PORTC &= ~LEDS_ALL_LEDS;
}
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
}
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)