diff options
Diffstat (limited to 'LUFA/Drivers/Board/AVR8')
-rw-r--r-- | LUFA/Drivers/Board/AVR8/BLACKCAT/LEDs.h | 1 | ||||
-rw-r--r-- | LUFA/Drivers/Board/AVR8/EVK527/Joystick.h | 2 | ||||
-rw-r--r-- | LUFA/Drivers/Board/AVR8/EVK527/LEDs.h | 1 | ||||
-rw-r--r-- | LUFA/Drivers/Board/AVR8/MAXIMUS/LEDs.h | 23 | ||||
-rw-r--r-- | LUFA/Drivers/Board/AVR8/MINIMUS/Buttons.h | 21 | ||||
-rw-r--r-- | LUFA/Drivers/Board/AVR8/MINIMUS/LEDs.h | 23 | ||||
-rw-r--r-- | LUFA/Drivers/Board/AVR8/STK525/Joystick.h | 2 | ||||
-rw-r--r-- | LUFA/Drivers/Board/AVR8/TEENSY/LEDs.h | 12 | ||||
-rw-r--r-- | LUFA/Drivers/Board/AVR8/USB2AX/Buttons.h | 1 | ||||
-rw-r--r-- | LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h | 1 | ||||
-rw-r--r-- | LUFA/Drivers/Board/AVR8/USBKEY/Joystick.h | 2 | ||||
-rw-r--r-- | LUFA/Drivers/Board/AVR8/USBKEY/LEDs.h | 1 | ||||
-rw-r--r-- | LUFA/Drivers/Board/AVR8/XPLAIN/Dataflash.h | 2 | ||||
-rw-r--r-- | LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h | 2 |
14 files changed, 51 insertions, 43 deletions
diff --git a/LUFA/Drivers/Board/AVR8/BLACKCAT/LEDs.h b/LUFA/Drivers/Board/AVR8/BLACKCAT/LEDs.h index dfb77fa38..04a6a8485 100644 --- a/LUFA/Drivers/Board/AVR8/BLACKCAT/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/BLACKCAT/LEDs.h @@ -124,3 +124,4 @@ #endif /** @} */ + diff --git a/LUFA/Drivers/Board/AVR8/EVK527/Joystick.h b/LUFA/Drivers/Board/AVR8/EVK527/Joystick.h index 696530173..19d19ee7d 100644 --- a/LUFA/Drivers/Board/AVR8/EVK527/Joystick.h +++ b/LUFA/Drivers/Board/AVR8/EVK527/Joystick.h @@ -66,7 +66,7 @@ /* Macros: */ #define JOY_FMASK ((1 << 4) | (1 << 5) | (1 << 6) | (1 << 7)) #define JOY_CMASK (1 << 6) - + #define JOY_PORTC_MASK_SHIFT 3 #endif diff --git a/LUFA/Drivers/Board/AVR8/EVK527/LEDs.h b/LUFA/Drivers/Board/AVR8/EVK527/LEDs.h index b24c9bc29..4cb6aeb08 100644 --- a/LUFA/Drivers/Board/AVR8/EVK527/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/EVK527/LEDs.h @@ -127,3 +127,4 @@ #endif /** @} */ + diff --git a/LUFA/Drivers/Board/AVR8/MAXIMUS/LEDs.h b/LUFA/Drivers/Board/AVR8/MAXIMUS/LEDs.h index 9030326e1..f211e652c 100644 --- a/LUFA/Drivers/Board/AVR8/MAXIMUS/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/MAXIMUS/LEDs.h @@ -1,7 +1,7 @@ /* LUFA Library Copyright (C) Dean Camera, 2011. - + dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ @@ -9,13 +9,13 @@ /* Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com) - Permission to use, copy, modify, distribute, and sell this + Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted - without fee, provided that the above copyright notice appear in + without fee, provided that the above copyright notice appear in all copies and that both that the copyright notice and this - permission notice and warranty disclaimer appear in supporting - documentation, and that the name of the author not be used in - advertising or publicity pertaining to distribution of the + permission notice and warranty disclaimer appear in supporting + documentation, and that the name of the author not be used in + advertising or publicity pertaining to distribution of the software without specific, written prior permission. The author disclaim all warranties with regard to this @@ -82,7 +82,7 @@ DDRB |= LEDS_ALL_LEDS; PORTB &= ~LEDS_ALL_LEDS; } - + static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask) { PORTB |= LEDMask; @@ -97,18 +97,18 @@ { PORTB = ((PORTB & ~LEDS_ALL_LEDS) | LEDMask); } - + static inline void LEDs_ChangeLEDs(const uint8_t LEDMask, const uint8_t ActiveMask) { PORTB = ((PORTB & ~LEDMask) | ActiveMask); } - + static inline void LEDs_ToggleLEDs(const uint8_t LEDMask) { PORTB ^= LEDMask; } - + static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT; static inline uint8_t LEDs_GetLEDs(void) { @@ -120,7 +120,8 @@ #if defined(__cplusplus) } #endif - + #endif /** @} */ + diff --git a/LUFA/Drivers/Board/AVR8/MINIMUS/Buttons.h b/LUFA/Drivers/Board/AVR8/MINIMUS/Buttons.h index 0d645c514..ef30a9b4c 100644 --- a/LUFA/Drivers/Board/AVR8/MINIMUS/Buttons.h +++ b/LUFA/Drivers/Board/AVR8/MINIMUS/Buttons.h @@ -1,7 +1,7 @@ /* LUFA Library Copyright (C) Dean Camera, 2011. - + dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ @@ -9,13 +9,13 @@ /* Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com) - Permission to use, copy, modify, distribute, and sell this + Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted - without fee, provided that the above copyright notice appear in + without fee, provided that the above copyright notice appear in all copies and that both that the copyright notice and this - permission notice and warranty disclaimer appear in supporting - documentation, and that the name of the author not be used in - advertising or publicity pertaining to distribution of the + permission notice and warranty disclaimer appear in supporting + documentation, and that the name of the author not be used in + advertising or publicity pertaining to distribution of the software without specific, written prior permission. The author disclaim all warranties with regard to this @@ -35,7 +35,7 @@ * \note This file should not be included directly. It is automatically included as needed by the Buttons driver * dispatch header located in LUFA/Drivers/Board/Buttons.h. */ - + /** \ingroup Group_Buttons * \defgroup Group_Buttons_MINIMUS MINIMUS * \brief Board specific Buttons driver header for the MINIMUS. @@ -60,12 +60,12 @@ #if !defined(__INCLUDE_FROM_BUTTONS_H) #error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead. #endif - + /* Public Interface - May be used in end-application: */ /* Macros: */ /** Button mask for the first button on the board. */ #define BUTTONS_BUTTON1 (1 << 7) - + /* Inline Functions: */ #if !defined(__DOXYGEN__) static inline void Buttons_Init(void) @@ -85,7 +85,8 @@ #if defined(__cplusplus) } #endif - + #endif /** @} */ + diff --git a/LUFA/Drivers/Board/AVR8/MINIMUS/LEDs.h b/LUFA/Drivers/Board/AVR8/MINIMUS/LEDs.h index a7325482a..124fbaaad 100644 --- a/LUFA/Drivers/Board/AVR8/MINIMUS/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/MINIMUS/LEDs.h @@ -1,7 +1,7 @@ /* LUFA Library Copyright (C) Dean Camera, 2011. - + dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ @@ -9,13 +9,13 @@ /* Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com) - Permission to use, copy, modify, distribute, and sell this + Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted - without fee, provided that the above copyright notice appear in + without fee, provided that the above copyright notice appear in all copies and that both that the copyright notice and this - permission notice and warranty disclaimer appear in supporting - documentation, and that the name of the author not be used in - advertising or publicity pertaining to distribution of the + permission notice and warranty disclaimer appear in supporting + documentation, and that the name of the author not be used in + advertising or publicity pertaining to distribution of the software without specific, written prior permission. The author disclaim all warranties with regard to this @@ -82,7 +82,7 @@ DDRD |= LEDS_ALL_LEDS; PORTD |= LEDS_ALL_LEDS; } - + static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask) { PORTD &= ~LEDMask; @@ -97,18 +97,18 @@ { PORTD = ((PORTD | LEDS_ALL_LEDS) & ~LEDMask); } - + static inline void LEDs_ChangeLEDs(const uint8_t LEDMask, const uint8_t ActiveMask) { PORTD = ((PORTD & ~LEDMask) | ActiveMask); } - + static inline void LEDs_ToggleLEDs(const uint8_t LEDMask) { PORTD ^= LEDMask; } - + static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT; static inline uint8_t LEDs_GetLEDs(void) { @@ -120,7 +120,8 @@ #if defined(__cplusplus) } #endif - + #endif /** @} */ + diff --git a/LUFA/Drivers/Board/AVR8/STK525/Joystick.h b/LUFA/Drivers/Board/AVR8/STK525/Joystick.h index 3504d184d..dcf7f2eda 100644 --- a/LUFA/Drivers/Board/AVR8/STK525/Joystick.h +++ b/LUFA/Drivers/Board/AVR8/STK525/Joystick.h @@ -66,7 +66,7 @@ /* Macros: */ #define JOY_BMASK ((1 << 5) | (1 << 6) | (1 << 7)) #define JOY_EMASK ((1 << 4) | (1 << 5)) - + #define JOY_PORTE_MASK_SHIFT 1 #endif diff --git a/LUFA/Drivers/Board/AVR8/TEENSY/LEDs.h b/LUFA/Drivers/Board/AVR8/TEENSY/LEDs.h index 63b96b0df..1722fe7d3 100644 --- a/LUFA/Drivers/Board/AVR8/TEENSY/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/TEENSY/LEDs.h @@ -35,7 +35,7 @@ * \note This file should not be included directly. It is automatically included as needed by the LEDs driver * dispatch header located in LUFA/Drivers/Board/LEDs.h. */ - + /** \ingroup Group_LEDs * \defgroup Group_LEDs_TEENSY2 TEENSY2 * \brief Board specific LED driver header for the PJRC Teensy 2 boards. @@ -88,7 +88,7 @@ DDRD |= LEDS_ALL_LEDS; #if (BOARD == BOARD_TEENSY2) - PORTD &= ~LEDS_ALL_LEDS; + PORTD &= ~LEDS_ALL_LEDS; #else PORTD |= LEDS_ALL_LEDS; #endif @@ -97,7 +97,7 @@ static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask) { #if (BOARD == BOARD_TEENSY2) - PORTD |= LEDMask; + PORTD |= LEDMask; #else PORTD &= ~LEDMask; #endif @@ -106,7 +106,7 @@ static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask) { #if (BOARD == BOARD_TEENSY2) - PORTD &= ~LEDMask; + PORTD &= ~LEDMask; #else PORTD |= LEDMask; #endif @@ -125,7 +125,7 @@ const uint8_t ActiveMask) { #if (BOARD == BOARD_TEENSY2) - PORTD = ((PORTD & ~LEDMask) | ActiveMask); + PORTD = ((PORTD & ~LEDMask) | ActiveMask); #else PORTD = ((PORTD | LEDMask) & ~ActiveMask); #endif @@ -140,7 +140,7 @@ static inline uint8_t LEDs_GetLEDs(void) { #if (BOARD == BOARD_TEENSY2) - return (PORTD & LEDS_ALL_LEDS); + return (PORTD & LEDS_ALL_LEDS); #else return (~PORTD & LEDS_ALL_LEDS); #endif diff --git a/LUFA/Drivers/Board/AVR8/USB2AX/Buttons.h b/LUFA/Drivers/Board/AVR8/USB2AX/Buttons.h index bbb1b5cc7..4e1e50033 100644 --- a/LUFA/Drivers/Board/AVR8/USB2AX/Buttons.h +++ b/LUFA/Drivers/Board/AVR8/USB2AX/Buttons.h @@ -99,3 +99,4 @@ /** @} */
+ diff --git a/LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h b/LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h index 97a24ba69..541da264c 100644 --- a/LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h @@ -170,3 +170,4 @@ /** @} */
+ diff --git a/LUFA/Drivers/Board/AVR8/USBKEY/Joystick.h b/LUFA/Drivers/Board/AVR8/USBKEY/Joystick.h index 65f348178..5e80a5368 100644 --- a/LUFA/Drivers/Board/AVR8/USBKEY/Joystick.h +++ b/LUFA/Drivers/Board/AVR8/USBKEY/Joystick.h @@ -66,7 +66,7 @@ /* Macros: */ #define JOY_BMASK ((1 << 5) | (1 << 6) | (1 << 7)) #define JOY_EMASK ((1 << 4) | (1 << 5)) - + #define JOY_PORTE_MASK_SHIFT 1 #endif diff --git a/LUFA/Drivers/Board/AVR8/USBKEY/LEDs.h b/LUFA/Drivers/Board/AVR8/USBKEY/LEDs.h index f7bb39873..e4a7002a5 100644 --- a/LUFA/Drivers/Board/AVR8/USBKEY/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/USBKEY/LEDs.h @@ -130,3 +130,4 @@ #endif /** @} */ + diff --git a/LUFA/Drivers/Board/AVR8/XPLAIN/Dataflash.h b/LUFA/Drivers/Board/AVR8/XPLAIN/Dataflash.h index ebbd21128..6a867cafa 100644 --- a/LUFA/Drivers/Board/AVR8/XPLAIN/Dataflash.h +++ b/LUFA/Drivers/Board/AVR8/XPLAIN/Dataflash.h @@ -35,7 +35,7 @@ * \note This file should not be included directly. It is automatically included as needed by the dataflash driver * dispatch header located in LUFA/Drivers/Board/Dataflash.h. */ - + /** \ingroup Group_Dataflash * \defgroup Group_Dataflash_XPLAIN_REV1 XPLAIN_REV1 * \brief Board specific Dataflash driver header for the original Atmel XPLAIN, revision 1. diff --git a/LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h b/LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h index 50e150e8a..3abe98eeb 100644 --- a/LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h @@ -35,7 +35,7 @@ * \note This file should not be included directly. It is automatically included as needed by the LEDs driver * dispatch header located in LUFA/Drivers/Board/LEDs.h. */ - + /** \ingroup Group_LEDs * \defgroup Group_LEDs_XPLAIN_REV1 XPLAIN_REV1 * \brief Board specific LED driver header for the original Atmel XPLAIN, revision 1. |