Fixed inverted Minimus board LEDs.
authorDean Camera <dean@fourwalledcubicle.com>
Tue, 28 Dec 2010 22:07:31 +0000 (22:07 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Tue, 28 Dec 2010 22:07:31 +0000 (22:07 +0000)
LUFA/Drivers/Board/ADAFRUITU4/LEDs.h
LUFA/Drivers/Board/CULV3/LEDs.h
LUFA/Drivers/Board/MAXIMUS/LEDs.h
LUFA/Drivers/Board/MINIMUS/LEDs.h
LUFA/Drivers/Board/RZUSBSTICK/LEDs.h
LUFA/ManPages/ChangeLog.txt

index 39b6256..c5c6496 100644 (file)
 \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
index 498206a..756de49 100644 (file)
 
                        static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
                        {
 
                        static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
                        {
-                               PORTE = (PORTE ^ (LEDMask & LEDS_ALL_LEDS));
+                               PORTE ^= LEDMask;
                        }
 
                        static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
                        }
 
                        static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
index d540d32..9b5de15 100644 (file)
                        \r
                        static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)\r
                        {\r
                        \r
                        static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)\r
                        {\r
-                               PORTB = (PORTB ^ (LEDMask & LEDS_ALL_LEDS));\r
+                               PORTB ^= 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
index 96db6ee..fd7fb52 100644 (file)
                #if !defined(__DOXYGEN__)\r
                        static inline void LEDs_Init(void)\r
                        {\r
                #if !defined(__DOXYGEN__)\r
                        static inline void LEDs_Init(void)\r
                        {\r
-                               DDRD  |=  LEDS_ALL_LEDS;\r
-                               PORTD &= ~LEDS_ALL_LEDS;\r
+                               DDRD  |= LEDS_ALL_LEDS;\r
+                               PORTD |= LEDS_ALL_LEDS;\r
                        }\r
                        \r
                        static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)\r
                        {\r
                        }\r
                        \r
                        static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)\r
                        {\r
-                               PORTD |= LEDMask;\r
+                               PORTD &= ~LEDMask;\r
                        }\r
 \r
                        static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask)\r
                        {\r
                        }\r
 \r
                        static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask)\r
                        {\r
-                               PORTD &= ~LEDMask;\r
+                               PORTD |=  LEDMask;\r
                        }\r
 \r
                        static inline void LEDs_SetAllLEDs(const uint8_t LEDMask)\r
                        {\r
                        }\r
 \r
                        static inline void LEDs_SetAllLEDs(const uint8_t LEDMask)\r
                        {\r
-                               PORTD = ((PORTD & ~LEDS_ALL_LEDS) | LEDMask);\r
+                               PORTD = ((PORTD | LEDS_ALL_LEDS) & ~LEDMask);\r
                        }\r
                        \r
                        static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,\r
                        }\r
                        \r
                        static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,\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
-                               PORTD = (PORTD ^ (LEDMask & LEDS_ALL_LEDS));\r
+                               PORTD ^= 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
index caeb480..a801335 100644 (file)
 
                        static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
                        {
 
                        static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
                        {
-                               PORTD = (PORTD ^ (LEDMask & LEDS_PORTD_LEDS));
-                               PORTE = (PORTE ^ ((LEDMask & LEDS_PORTE_LEDS) << LEDS_PORTE_MASK_SHIFT));
+                               PORTD ^= (LEDMask & LEDS_PORTD_LEDS);
+                               PORTE ^= ((LEDMask & LEDS_PORTE_LEDS) << LEDS_PORTE_MASK_SHIFT);
                        }
 
                        static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
                        }
 
                        static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
index 106e7fe..d3ba81c 100644 (file)
@@ -38,6 +38,7 @@
   *   - Fixed HID host class driver incorrectly binding to HID devices that do not have an OUT endpoint
   *   - Fixed incorrect definition of the HID_KEYBOARD_SC_D constant in the HID class driver (thanks to Opendous Inc.)
   *   - Fixed incorrect endpoint initialisation order in the several device demos (thanks to Rick Drolet)
   *   - Fixed HID host class driver incorrectly binding to HID devices that do not have an OUT endpoint
   *   - Fixed incorrect definition of the HID_KEYBOARD_SC_D constant in the HID class driver (thanks to Opendous Inc.)
   *   - Fixed incorrect endpoint initialisation order in the several device demos (thanks to Rick Drolet)
+  *   - Fixed inverted Minimum board LEDs
   *  - Library Applications:
   *   - Fixed Benito project discarding incoming data from the USB virtual serial port when the USART is busy
   *   - Fixed broken DFU bootloader, added XPLAIN support for bootloader start when XCK jumpered to ground
   *  - Library Applications:
   *   - Fixed Benito project discarding incoming data from the USB virtual serial port when the USART is busy
   *   - Fixed broken DFU bootloader, added XPLAIN support for bootloader start when XCK jumpered to ground