Updated the AVRISP-MKII Clone programmer project to be compatible with the latest...
[pub/USBasp.git] / LUFA / Drivers / Board / AVR8 / USB2AX / LEDs.h
index 97a24ba..c34715e 100644 (file)
@@ -1,13 +1,13 @@
 /*\r
              LUFA Library\r
 /*\r
              LUFA Library\r
-     Copyright (C) Dean Camera, 2011.\r
+     Copyright (C) Dean Camera, 2012.\r
 \r
   dean [at] fourwalledcubicle [dot] com\r
            www.lufa-lib.org\r
 */\r
 \r
 /*\r
 \r
   dean [at] fourwalledcubicle [dot] com\r
            www.lufa-lib.org\r
 */\r
 \r
 /*\r
-  Copyright 2011  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
+  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
 \r
   Permission to use, copy, modify, distribute, and sell this\r
   software and its documentation for any purpose is hereby granted\r
 \r
   Permission to use, copy, modify, distribute, and sell this\r
   software and its documentation for any purpose is hereby granted\r
                                #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
 \r
 /** @} */\r
 \r
 \r
 /** @} */\r
 \r
+