X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/359fbfe14d00ab378f85a36664820ea9ba538c3f..3642ea0b9715cdf0196b10c9fc97898940eaefa6:/LUFA/Drivers/Board/AVR8/OLIMEXT32U4/LEDs.h diff --git a/LUFA/Drivers/Board/AVR8/OLIMEXT32U4/LEDs.h b/LUFA/Drivers/Board/AVR8/OLIMEXT32U4/LEDs.h index 1602af842..c0f5409f3 100644 --- a/LUFA/Drivers/Board/AVR8/OLIMEXT32U4/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/OLIMEXT32U4/LEDs.h @@ -1,13 +1,13 @@ /* LUFA Library - Copyright (C) Dean Camera, 2012. + Copyright (C) Dean Camera, 2015. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* - Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com) + Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted @@ -18,7 +18,7 @@ advertising or publicity pertaining to distribution of the software without specific, written prior permission. - The author disclaim all warranties with regard to this + The author disclaims all warranties with regard to this software, including all implied warranties of merchantability and fitness. In no event shall the author be liable for any special, indirect or consequential damages or any damages @@ -44,8 +44,8 @@ * * * - * - * + * + * * *
NameColorInfoActive LevelPort Pin
LEDS_LED1GreenTXHighPORTD.5
LEDS_LED2YellowRXHighPORTB.0
LEDS_LED1YellowRXHighPORTB.0
LEDS_LED2GreenTXHighPORTD.5
LEDS_LED3N/AGeneral Indicator (Not Mounted)HighPORTE.6
* @@ -71,22 +71,22 @@ /* Private Interface - For use in library only: */ #if !defined(__DOXYGEN__) /* Macros: */ - #define LEDS_PORTB_LEDS (LEDS_LED2) - #define LEDS_PORTD_LEDS (LEDS_LED1) + #define LEDS_PORTB_LEDS (LEDS_LED1) + #define LEDS_PORTD_LEDS (LEDS_LED2) #define LEDS_PORTE_LEDS (LEDS_LED3) #endif - + /* Public Interface - May be used in end-application: */ /* Macros: */ /** LED mask for the first LED on the board. */ - #define LEDS_LED1 (1 << 5) + #define LEDS_LED1 (1 << 0) /** LED mask for the second LED on the board. */ - #define LEDS_LED2 (1 << 0) + #define LEDS_LED2 (1 << 5) /** LED mask for the third LED on the board. */ #define LEDS_LED3 (1 << 6) - + /** LED mask for all the LEDs on the board. */ #define LEDS_ALL_LEDS (LEDS_LED1 | LEDS_LED2 | LEDS_LED3) @@ -107,11 +107,11 @@ static inline void LEDs_Disable(void) { - DDRB &= LEDS_PORTB_LEDS; + DDRB &= ~LEDS_PORTB_LEDS; PORTB &= ~LEDS_PORTB_LEDS; - DDRD &= LEDS_PORTD_LEDS; + DDRD &= ~LEDS_PORTD_LEDS; PORTD &= ~LEDS_PORTD_LEDS; - DDRE &= LEDS_PORTE_LEDS; + DDRE &= ~LEDS_PORTE_LEDS; PORTE &= ~LEDS_PORTE_LEDS; }