Added start of a port of the core USB driver code to the AVR32 UC3B architecture.
[pub/USBasp.git] / LUFA / Drivers / Board / ADAFRUITU4 / LEDs.h
index 39b6256..9f5097f 100644 (file)
@@ -1,13 +1,13 @@
 /*\r
              LUFA Library\r
 /*\r
              LUFA Library\r
-     Copyright (C) Dean Camera, 2010.\r
+     Copyright (C) Dean Camera, 2011.\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 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
+  Copyright 2011  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
 \r
 /** \file\r
  *  \brief Board specific LED driver header for the Adafruit U4 Breakout board.\r
 \r
 /** \file\r
  *  \brief Board specific LED driver header for the Adafruit U4 Breakout board.\r
- *\r
- *  Board specific LED driver header for the Adafruit U4 Breakout board (http://ladyada.net/products/atmega32u4breakout).\r
+ *  \copydetails Group_LEDs_ADAFRUITU4\r
  *\r
  *  \note This file should not be included directly. It is automatically included as needed by the LEDs driver\r
  *        dispatch header located in LUFA/Drivers/Board/LEDs.h.\r
  */\r
 \r
 /** \ingroup Group_LEDs\r
  *\r
  *  \note This file should not be included directly. It is automatically included as needed by the LEDs driver\r
  *        dispatch header located in LUFA/Drivers/Board/LEDs.h.\r
  */\r
 \r
 /** \ingroup Group_LEDs\r
- *  @defgroup Group_LEDs_ADAFRUITU4 ADAFRUITU4\r
+ *  \defgroup Group_LEDs_ADAFRUITU4 ADAFRUITU4\r
+ *  \brief Board specific LED driver header for the Adafruit U4 Breakout board.\r
  *\r
  *  Board specific LED driver header for the Adafruit U4 Breakout board (http://ladyada.net/products/atmega32u4breakout).\r
  *\r
  *\r
  *  Board specific LED driver header for the Adafruit U4 Breakout board (http://ladyada.net/products/atmega32u4breakout).\r
  *\r
- *  \note This file should not be included directly. It is automatically included as needed by the LEDs driver\r
- *        dispatch header located in LUFA/Drivers/Board/LEDs.h.\r
- *\r
  *  @{\r
  */\r
 \r
  *  @{\r
  */\r
 \r
@@ -52,8 +49,6 @@
 #define __LEDS_ADAFRUITU4_H__\r
 \r
        /* Includes: */\r
 #define __LEDS_ADAFRUITU4_H__\r
 \r
        /* Includes: */\r
-               #include <avr/io.h>\r
-\r
                #include "../../../Common/Common.h"\r
 \r
        /* Enable C linkage for C++ Compilers: */\r
                #include "../../../Common/Common.h"\r
 \r
        /* Enable C linkage for C++ Compilers: */\r
 \r
                        static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)\r
                        {\r
 \r
                        static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)\r
                        {\r
-                               PORTE = (PORTE ^ (LEDMask & LEDS_ALL_LEDS));\r
+                               PORTE &= LEDMask;\r
                        }\r
 \r
                        static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;\r
                        }\r
 \r
                        static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;\r