aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Board/AVR8/OLIMEXT32U4
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-05-06 12:19:03 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-05-06 12:19:03 +0000
commit9207e8b2fde713e39cd42a417decf5421d856b95 (patch)
treecbe5d94f4be632fe0766b6a089b062977fb4257f /LUFA/Drivers/Board/AVR8/OLIMEXT32U4
parent395e4287a1eacb617360c932beaf8aa0288ce8a6 (diff)
downloadlufa-9207e8b2fde713e39cd42a417decf5421d856b95.tar.gz
lufa-9207e8b2fde713e39cd42a417decf5421d856b95.tar.bz2
lufa-9207e8b2fde713e39cd42a417decf5421d856b95.zip
Changed board LED driver implementations of LEDs_ToggleLEDs() for the AVR8 architecture to use the fast PIN register toggle alternative function for speed.
Diffstat (limited to 'LUFA/Drivers/Board/AVR8/OLIMEXT32U4')
-rw-r--r--LUFA/Drivers/Board/AVR8/OLIMEXT32U4/LEDs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Drivers/Board/AVR8/OLIMEXT32U4/LEDs.h b/LUFA/Drivers/Board/AVR8/OLIMEXT32U4/LEDs.h
index 029707e4c..1602af842 100644
--- a/LUFA/Drivers/Board/AVR8/OLIMEXT32U4/LEDs.h
+++ b/LUFA/Drivers/Board/AVR8/OLIMEXT32U4/LEDs.h
@@ -146,9 +146,9 @@
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;