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