Don't fail Doxygen on versions built without various features.
[pub/USBasp.git] / LUFA / Drivers / Board / UC3 / EVK1104 / LEDs.h
index 6e26cc8..2258a26 100644 (file)
@@ -1,24 +1,24 @@
 /*
              LUFA Library
-     Copyright (C) Dean Camera, 2011.
-              
+     Copyright (C) Dean Camera, 2014.
+
   dean [at] fourwalledcubicle [dot] com
-      www.fourwalledcubicle.com
+           www.lufa-lib.org
 */
 
 /*
-  Copyright 2011  Dean Camera (dean [at] fourwalledcubicle [dot] com)
+  Copyright 2014  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 
-  Permission to use, copy, modify, and distribute this software
-  and its documentation for any purpose and without fee is hereby
-  granted, provided that the above copyright notice appear in all
-  copies and that both that the copyright notice and this
+  Permission to use, copy, modify, distribute, and sell this
+  software and its documentation for any purpose is hereby granted
+  without fee, provided that the above copyright notice appear in
+  all copies and that both that the copyright notice and this
   permission notice and warranty disclaimer appear in supporting
   documentation, and that the name of the author not be used in
   advertising or publicity pertaining to distribution of the
   software without specific, written prior permission.
 
-  The author disclaim all warranties with regard to this
+  The author disclaims all warranties with regard to this
   software, including all implied warranties of merchantability
   and fitness.  In no event shall the author be liable for any
   special, indirect or consequential damages or any damages
  *
  *  Board specific LED driver header for the Atmel EVK1104.
  *
+ *  <table>
+ *    <tr><th>Name</th><th>Color</th><th>Info</th><th>Active Level</th><th>Port Pin</th></tr>
+ *    <tr><td>LEDS_LED1</td><td>Green</td><td>LED0 LED</td><td>Low</td><td>GPIO67</td></tr>
+ *    <tr><td>LEDS_LED2</td><td>Green</td><td>LED1 LED</td><td>Low</td><td>GPIO101</td></tr>
+ *    <tr><td>LEDS_LED3</td><td>Green</td><td>LED2 LED</td><td>Low</td><td>GPIO102</td></tr>
+ *    <tr><td>LEDS_LED4</td><td>Green</td><td>LED3 LED</td><td>Low</td><td>GPIO105</td></tr>
+ *  </table>
+ *
  *  @{
  */
 
                                AVR32_GPIO.port[3].oders = LEDS_LEDMASK3;
                                AVR32_GPIO.port[3].ovrs  = LEDS_LEDMASK3;
                        }
-                       
+
+                       static inline void LEDs_Disable(void)
+                       {
+                               AVR32_GPIO.port[2].gperc = LEDS_LEDMASK2;
+                               AVR32_GPIO.port[2].oderc = LEDS_LEDMASK2;
+                               AVR32_GPIO.port[2].ovrc  = LEDS_LEDMASK2;
+
+                               AVR32_GPIO.port[3].gperc = LEDS_LEDMASK3;
+                               AVR32_GPIO.port[3].oderc = LEDS_LEDMASK3;
+                               AVR32_GPIO.port[3].ovrc  = LEDS_LEDMASK3;
+                       }
+
                        static inline void LEDs_TurnOnLEDs(const uint32_t LEDMask)
                        {
                                AVR32_GPIO.port[2].ovrc  = (LEDMask & LEDS_LEDMASK2);
                                AVR32_GPIO.port[3].ovrs  = LEDS_LEDMASK3;
                                AVR32_GPIO.port[3].ovrc  = (LEDMask & LEDS_LEDMASK3);
                        }
-                       
+
                        static inline void LEDs_ChangeLEDs(const uint32_t LEDMask, const uint32_t ActiveMask)
                        {
                                AVR32_GPIO.port[2].ovrs  = (LEDMask    & LEDS_LEDMASK2);
                                AVR32_GPIO.port[2].ovrt  = (LEDMask & LEDS_LEDMASK2);
                                AVR32_GPIO.port[3].ovrt  = (LEDMask & LEDS_LEDMASK3);
                        }
-                       
+
                        static inline uint32_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
                        static inline uint32_t LEDs_GetLEDs(void)
                        {
                #if defined(__cplusplus)
                        }
                #endif
-               
+
 #endif
 
 /** @} */
+