Use immediate variable expansion in the second-deepest level makefile scripts to...
[pub/USBasp.git] / LUFA / Drivers / Board / AVR8 / OLIMEXT32U4 / LEDs.h
index 029707e..1602af8 100644 (file)
 
                        static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
                        {
-                               PORTB ^= (LEDMask & LEDS_PORTB_LEDS);
-                               PORTD ^= (LEDMask & LEDS_PORTD_LEDS);
-                               PORTE ^= (LEDMask & LEDS_PORTE_LEDS);
+                               PINB  = (LEDMask & LEDS_PORTB_LEDS);
+                               PIND  = (LEDMask & LEDS_PORTD_LEDS);
+                               PINE  = (LEDMask & LEDS_PORTE_LEDS);
                        }
 
                        static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;