Add new USE_LUFA_CONFIG_HEADER compile time option.
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 9 May 2011 14:04:40 +0000 (14:04 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 9 May 2011 14:04:40 +0000 (14:04 +0000)
Add missing LEDS_ToggleLEDs() function to the LED driver for the EVK1101 board.

LUFA/Common/Common.h
LUFA/Drivers/Board/EVK1101/LEDs.h
LUFA/ManPages/ChangeLog.txt
LUFA/ManPages/CompileTimeTokens.txt

index 69c4ff2..49a2bcd 100644 (file)
                #include <string.h>
                #include <stddef.h>
                
                #include <string.h>
                #include <stddef.h>
                
+               #if defined(USE_LUFA_CONFIG_HEADER)
+                       #include "LUFAConfig.h"
+               #endif
+
                #include "Architectures.h"
                #include "Attributes.h"
                #include "BoardTypes.h"
                #include "Architectures.h"
                #include "Attributes.h"
                #include "BoardTypes.h"
index 5609b77..ddb4607 100644 (file)
                                AVR32_GPIO.port[LEDS_PORT].ovrs  = LEDS_ALL_LEDS;\r
                        }\r
                        \r
                                AVR32_GPIO.port[LEDS_PORT].ovrs  = LEDS_ALL_LEDS;\r
                        }\r
                        \r
-                       static inline void LEDs_TurnOnLEDs(const uint32_t LedMask)\r
+                       static inline void LEDs_TurnOnLEDs(const uint32_t LEDMask)\r
                        {\r
                        {\r
-                               AVR32_GPIO.port[LEDS_PORT].ovrc  = LedMask;\r
+                               AVR32_GPIO.port[LEDS_PORT].ovrc  = LEDMask;\r
                        }\r
 \r
                        }\r
 \r
-                       static inline void LEDs_TurnOffLEDs(const uint32_t LedMask)\r
+                       static inline void LEDs_TurnOffLEDs(const uint32_t LEDMask)\r
                        {\r
                        {\r
-                               AVR32_GPIO.port[LEDS_PORT].ovrs  = LedMask;\r
+                               AVR32_GPIO.port[LEDS_PORT].ovrs  = LEDMask;\r
                        }\r
 \r
                        }\r
 \r
-                       static inline void LEDs_SetAllLEDs(const uint32_t LedMask)\r
+                       static inline void LEDs_SetAllLEDs(const uint32_t LEDMask)\r
                        {\r
                                AVR32_GPIO.port[LEDS_PORT].ovrs  = LEDS_ALL_LEDS;\r
                        {\r
                                AVR32_GPIO.port[LEDS_PORT].ovrs  = LEDS_ALL_LEDS;\r
-                               AVR32_GPIO.port[LEDS_PORT].ovrc  = LedMask;\r
+                               AVR32_GPIO.port[LEDS_PORT].ovrc  = LEDMask;\r
                        }\r
                        \r
                        }\r
                        \r
-                       static inline void LEDs_ChangeLEDs(const uint32_t LedMask, const uint32_t ActiveMask)\r
+                       static inline void LEDs_ChangeLEDs(const uint32_t LEDMask, const uint32_t ActiveMask)\r
                        {\r
                        {\r
-                               AVR32_GPIO.port[LEDS_PORT].ovrs  = LedMask;\r
+                               AVR32_GPIO.port[LEDS_PORT].ovrs  = LEDMask;\r
                                AVR32_GPIO.port[LEDS_PORT].ovrc  = ActiveMask;\r
                        }\r
                                AVR32_GPIO.port[LEDS_PORT].ovrc  = ActiveMask;\r
                        }\r
+\r
+                       static inline void LEDs_ToggleLEDs(const uint32_t LEDMask)\r
+                       {\r
+                               AVR32_GPIO.port[LEDS_PORT].ovrt  = LEDMask;\r
+                       }\r
                        \r
                        static inline uint32_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;\r
                        static inline uint32_t LEDs_GetLEDs(void)\r
                        \r
                        static inline uint32_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;\r
                        static inline uint32_t LEDs_GetLEDs(void)\r
index d507790..f937fa3 100644 (file)
@@ -27,6 +27,8 @@
   *   - Internal restructuring for eventual multiple architecture ports
   *   - Added AVR32 UC3 architecture port (currently incomplete/experimental)
   *   - Added new architecture independant functions to enable, disable, save and restore the Global Interrupt Enable flags
   *   - Internal restructuring for eventual multiple architecture ports
   *   - Added AVR32 UC3 architecture port (currently incomplete/experimental)
   *   - Added new architecture independant functions to enable, disable, save and restore the Global Interrupt Enable flags
+  *   - Added USE_LUFA_CONFIG_HEADER compile time option to include a LUFAConfig.h header in the user director for LUFA configuration
+  *     tokens as an alternative to tokens defined in the project makefile
   *  - Library Applications:
   *   - Added ability to write protect Mass Storage disk write operations from the host OS
   *   - Added new MIDIToneGenerator project
   *  - Library Applications:
   *   - Added ability to write protect Mass Storage disk write operations from the host OS
   *   - Added new MIDIToneGenerator project
index 9dfa805..415fde5 100644 (file)
@@ -10,6 +10,9 @@
  *  compiler via the -D switch, to alter the LUFA library code. These tokens may alter the library behaviour,
  *  or remove features unused by a given application in order to save flash space.
  *
  *  compiler via the -D switch, to alter the LUFA library code. These tokens may alter the library behaviour,
  *  or remove features unused by a given application in order to save flash space.
  *
+ *  If the \c USE_LUFA_CONFIG_HEADER token is defined, the library will include a header file named \c LUFAConfig.h located
+ *  in the user directory where the below compile time tokens may be defined. This allows for an alternative to makefile
+ *  defined tokens for configuring the library.
  *
  *  \section Sec_SummaryNonUSBTokens Non USB Related Tokens
  *  This section describes compile tokens which affect non-USB sections of the LUFA library.
  *
  *  \section Sec_SummaryNonUSBTokens Non USB Related Tokens
  *  This section describes compile tokens which affect non-USB sections of the LUFA library.