Added new LEDs_Disable(), Buttons_Disable() and Joystick_Disable() functions to the...
[pub/lufa.git] / LUFA / Drivers / Board / AVR8 / BUI / LEDs.h
index aeb757a..66a1959 100644 (file)
                #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)