aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Board
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-02-19 21:07:55 +0000
committerDean Camera <dean@fourwalledcubicle.com>2013-02-19 21:07:55 +0000
commit8703edc72414ce8f63adeff8f5d6c355efa8bdf1 (patch)
treece8ef2b0429fc10dce6ca0579a0d9de2db22841e /LUFA/Drivers/Board
parent6c531a10c05e636bd7982aeeb3317cf0b8b98efe (diff)
downloadlufa-8703edc72414ce8f63adeff8f5d6c355efa8bdf1.tar.gz
lufa-8703edc72414ce8f63adeff8f5d6c355efa8bdf1.tar.bz2
lufa-8703edc72414ce8f63adeff8f5d6c355efa8bdf1.zip
Fixed swapped LED3 and LED4 masks for the Olimex-32U4 development board LED driver.
Diffstat (limited to 'LUFA/Drivers/Board')
-rw-r--r--LUFA/Drivers/Board/AVR8/OLIMEX32U4/LEDs.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/LUFA/Drivers/Board/AVR8/OLIMEX32U4/LEDs.h b/LUFA/Drivers/Board/AVR8/OLIMEX32U4/LEDs.h
index 574b65a04..c6f244225 100644
--- a/LUFA/Drivers/Board/AVR8/OLIMEX32U4/LEDs.h
+++ b/LUFA/Drivers/Board/AVR8/OLIMEX32U4/LEDs.h
@@ -78,7 +78,7 @@
#define LEDS_PORTD_MASK_SHIFT 1
#endif
-
+
/* Public Interface - May be used in end-application: */
/* Macros: */
/** LED mask for the first LED on the board. */
@@ -86,13 +86,13 @@
/** LED mask for the second LED on the board. */
#define LEDS_LED2 (1 << 0)
-
+
/** LED mask for the third LED on the board. */
- #define LEDS_LED3 (1 << 5)
+ #define LEDS_LED3 (1 << 6)
/** LED mask for the fourth LED on the board. */
- #define LEDS_LED4 (1 << 6)
-
+ #define LEDS_LED4 (1 << 5)
+
/** LED mask for all the LEDs on the board. */
#define LEDS_ALL_LEDS (LEDS_LED1 | LEDS_LED2 | LEDS_LED3 | LEDS_LED4)
@@ -162,7 +162,7 @@
static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
static inline uint8_t LEDs_GetLEDs(void)
{
- return ((PORTB & LEDS_PORTB_LEDS) |
+ return ((PORTB & LEDS_PORTB_LEDS) |
((PORTD & (LEDS_PORTD_LEDS << LEDS_PORTD_MASK_SHIFT)) >> LEDS_PORTD_MASK_SHIFT) |
(PORTE & LEDS_PORTE_LEDS));
}