diff options
Diffstat (limited to 'LUFA/Drivers/Board/UC3')
-rw-r--r-- | LUFA/Drivers/Board/UC3/EVK1100/Buttons.h | 9 | ||||
-rw-r--r-- | LUFA/Drivers/Board/UC3/EVK1100/Joystick.h | 11 | ||||
-rw-r--r-- | LUFA/Drivers/Board/UC3/EVK1100/LEDs.h | 13 | ||||
-rw-r--r-- | LUFA/Drivers/Board/UC3/EVK1101/Buttons.h | 9 | ||||
-rw-r--r-- | LUFA/Drivers/Board/UC3/EVK1101/Joystick.h | 11 | ||||
-rw-r--r-- | LUFA/Drivers/Board/UC3/EVK1101/LEDs.h | 11 | ||||
-rw-r--r-- | LUFA/Drivers/Board/UC3/EVK1104/Buttons.h | 9 | ||||
-rw-r--r-- | LUFA/Drivers/Board/UC3/EVK1104/LEDs.h | 11 |
8 files changed, 46 insertions, 38 deletions
diff --git a/LUFA/Drivers/Board/UC3/EVK1100/Buttons.h b/LUFA/Drivers/Board/UC3/EVK1100/Buttons.h index 2f05f2c10..10f02cf6a 100644 --- a/LUFA/Drivers/Board/UC3/EVK1100/Buttons.h +++ b/LUFA/Drivers/Board/UC3/EVK1100/Buttons.h @@ -1,7 +1,7 @@ /* LUFA Library Copyright (C) Dean Camera, 2011. - + dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ @@ -44,7 +44,7 @@ * * @{ */ - + #ifndef __BUTTONS_EVK1100_H__ #define __BUTTONS_EVK1100_H__ @@ -60,7 +60,7 @@ #if !defined(__INCLUDE_FROM_BUTTONS_H) #error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead. #endif - + /* Private Interface - For use in library only: */ #if !defined(__DOXYGEN__) /* Macros: */ @@ -97,7 +97,8 @@ #if defined(__cplusplus) } #endif - + #endif /** @} */ + diff --git a/LUFA/Drivers/Board/UC3/EVK1100/Joystick.h b/LUFA/Drivers/Board/UC3/EVK1100/Joystick.h index e35d1b336..aaf729b02 100644 --- a/LUFA/Drivers/Board/UC3/EVK1100/Joystick.h +++ b/LUFA/Drivers/Board/UC3/EVK1100/Joystick.h @@ -1,7 +1,7 @@ /* LUFA Library Copyright (C) Dean Camera, 2011. - + dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ @@ -44,7 +44,7 @@ * * @{ */ - + #ifndef __JOYSTICK_EVK1100_H__ #define __JOYSTICK_EVK1100_H__ @@ -67,7 +67,7 @@ #define JOY_PORT 0 #define JOY_MASK ((1UL << 28) | (1UL << 27) | (1UL << 26) | (1UL << 25) | (1UL << 20)) #endif - + /* Public Interface - May be used in end-application: */ /* Macros: */ /** Mask for the joystick being pushed in the left direction. */ @@ -84,7 +84,7 @@ /** Mask for the joystick being pushed inward. */ #define JOY_PRESS (1UL << 20) - + /* Inline Functions: */ #if !defined(__DOXYGEN__) static inline void Joystick_Init(void) @@ -92,7 +92,7 @@ AVR32_GPIO.port[JOY_PORT].gpers = JOY_MASK; AVR32_GPIO.port[JOY_PORT].gpers = JOY_MASK; }; - + static inline uint32_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT; static inline uint32_t Joystick_GetStatus(void) { @@ -108,3 +108,4 @@ #endif /** @} */ + diff --git a/LUFA/Drivers/Board/UC3/EVK1100/LEDs.h b/LUFA/Drivers/Board/UC3/EVK1100/LEDs.h index 484cedeaf..6fd1ac8c2 100644 --- a/LUFA/Drivers/Board/UC3/EVK1100/LEDs.h +++ b/LUFA/Drivers/Board/UC3/EVK1100/LEDs.h @@ -1,7 +1,7 @@ /* LUFA Library Copyright (C) Dean Camera, 2011. - + dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ @@ -92,7 +92,7 @@ /** LED mask for the eighth LED on the board. */ #define LEDS_LED8 (1UL << 30) - + /** LED mask for all the LEDs on the board. */ #define LEDS_ALL_LEDS (LEDS_LED1 | LEDS_LED2 | LEDS_LED3 | LEDS_LED4 \ LEDS_LED5 | LEDS_LED6 | LEDS_LED7 | LEDS_LED8) @@ -108,7 +108,7 @@ AVR32_GPIO.port[LEDS_PORT].oders = LEDS_ALL_LEDS; AVR32_GPIO.port[LEDS_PORT].ovrs = LEDS_ALL_LEDS; } - + static inline void LEDs_TurnOnLEDs(const uint32_t LEDMask) { AVR32_GPIO.port[LEDS_PORT].ovrc = LEDMask; @@ -124,7 +124,7 @@ AVR32_GPIO.port[LEDS_PORT].ovrs = LEDS_ALL_LEDS; AVR32_GPIO.port[LEDS_PORT].ovrc = LEDMask; } - + static inline void LEDs_ChangeLEDs(const uint32_t LEDMask, const uint32_t ActiveMask) { AVR32_GPIO.port[LEDS_PORT].ovrs = LEDMask; @@ -135,7 +135,7 @@ { AVR32_GPIO.port[LEDS_PORT].ovrt = LEDMask; } - + static inline uint32_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT; static inline uint32_t LEDs_GetLEDs(void) { @@ -147,7 +147,8 @@ #if defined(__cplusplus) } #endif - + #endif /** @} */ + diff --git a/LUFA/Drivers/Board/UC3/EVK1101/Buttons.h b/LUFA/Drivers/Board/UC3/EVK1101/Buttons.h index f6770a221..18c711706 100644 --- a/LUFA/Drivers/Board/UC3/EVK1101/Buttons.h +++ b/LUFA/Drivers/Board/UC3/EVK1101/Buttons.h @@ -1,7 +1,7 @@ /* LUFA Library Copyright (C) Dean Camera, 2011. - + dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ @@ -44,7 +44,7 @@ * * @{ */ - + #ifndef __BUTTONS_EVK1101_H__ #define __BUTTONS_EVK1101_H__ @@ -60,7 +60,7 @@ #if !defined(__INCLUDE_FROM_BUTTONS_H) #error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead. #endif - + /* Private Interface - For use in library only: */ #if !defined(__DOXYGEN__) /* Macros: */ @@ -94,7 +94,8 @@ #if defined(__cplusplus) } #endif - + #endif /** @} */ + diff --git a/LUFA/Drivers/Board/UC3/EVK1101/Joystick.h b/LUFA/Drivers/Board/UC3/EVK1101/Joystick.h index 892474db7..0481f8335 100644 --- a/LUFA/Drivers/Board/UC3/EVK1101/Joystick.h +++ b/LUFA/Drivers/Board/UC3/EVK1101/Joystick.h @@ -1,7 +1,7 @@ /* LUFA Library Copyright (C) Dean Camera, 2011. - + dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ @@ -44,7 +44,7 @@ * * @{ */ - + #ifndef __JOYSTICK_EVK1101_H__ #define __JOYSTICK_EVK1101_H__ @@ -69,7 +69,7 @@ #define JOY_PRESS_PORT 0 #define JOY_PRESS_MASK (1UL << 13) #endif - + /* Public Interface - May be used in end-application: */ /* Macros: */ /** Mask for the joystick being pushed in the left direction. */ @@ -86,7 +86,7 @@ /** Mask for the joystick being pushed inward. */ #define JOY_PRESS (1UL << 13) - + /* Inline Functions: */ #if !defined(__DOXYGEN__) static inline void Joystick_Init(void) @@ -97,7 +97,7 @@ AVR32_GPIO.port[JOY_MOVE_PORT].puers = JOY_MOVE_MASK; AVR32_GPIO.port[JOY_PRESS_PORT].puers = JOY_PRESS_MASK; }; - + static inline uint32_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT; static inline uint32_t Joystick_GetStatus(void) { @@ -114,3 +114,4 @@ #endif /** @} */ + diff --git a/LUFA/Drivers/Board/UC3/EVK1101/LEDs.h b/LUFA/Drivers/Board/UC3/EVK1101/LEDs.h index 08b19fba4..6feadbce3 100644 --- a/LUFA/Drivers/Board/UC3/EVK1101/LEDs.h +++ b/LUFA/Drivers/Board/UC3/EVK1101/LEDs.h @@ -1,7 +1,7 @@ /* LUFA Library Copyright (C) Dean Camera, 2011. - + dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ @@ -95,7 +95,7 @@ AVR32_GPIO.port[LEDS_PORT].oders = LEDS_ALL_LEDS; AVR32_GPIO.port[LEDS_PORT].ovrs = LEDS_ALL_LEDS; } - + static inline void LEDs_TurnOnLEDs(const uint32_t LEDMask) { AVR32_GPIO.port[LEDS_PORT].ovrc = LEDMask; @@ -111,7 +111,7 @@ AVR32_GPIO.port[LEDS_PORT].ovrs = LEDS_ALL_LEDS; AVR32_GPIO.port[LEDS_PORT].ovrc = LEDMask; } - + static inline void LEDs_ChangeLEDs(const uint32_t LEDMask, const uint32_t ActiveMask) { AVR32_GPIO.port[LEDS_PORT].ovrs = LEDMask; @@ -122,7 +122,7 @@ { AVR32_GPIO.port[LEDS_PORT].ovrt = LEDMask; } - + static inline uint32_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT; static inline uint32_t LEDs_GetLEDs(void) { @@ -134,7 +134,8 @@ #if defined(__cplusplus) } #endif - + #endif /** @} */ + diff --git a/LUFA/Drivers/Board/UC3/EVK1104/Buttons.h b/LUFA/Drivers/Board/UC3/EVK1104/Buttons.h index 0b30c2315..934f92265 100644 --- a/LUFA/Drivers/Board/UC3/EVK1104/Buttons.h +++ b/LUFA/Drivers/Board/UC3/EVK1104/Buttons.h @@ -1,7 +1,7 @@ /* LUFA Library Copyright (C) Dean Camera, 2011. - + dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ @@ -44,7 +44,7 @@ * * @{ */ - + #ifndef __BUTTONS_EVK1104_H__ #define __BUTTONS_EVK1104_H__ @@ -60,7 +60,7 @@ #if !defined(__INCLUDE_FROM_BUTTONS_H) #error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead. #endif - + /* Private Interface - For use in library only: */ #if !defined(__DOXYGEN__) /* Macros: */ @@ -91,7 +91,8 @@ #if defined(__cplusplus) } #endif - + #endif /** @} */ + diff --git a/LUFA/Drivers/Board/UC3/EVK1104/LEDs.h b/LUFA/Drivers/Board/UC3/EVK1104/LEDs.h index 6e26cc893..5813e892c 100644 --- a/LUFA/Drivers/Board/UC3/EVK1104/LEDs.h +++ b/LUFA/Drivers/Board/UC3/EVK1104/LEDs.h @@ -1,7 +1,7 @@ /* LUFA Library Copyright (C) Dean Camera, 2011. - + dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ @@ -100,7 +100,7 @@ AVR32_GPIO.port[3].oders = LEDS_LEDMASK3; AVR32_GPIO.port[3].ovrs = LEDS_LEDMASK3; } - + static inline void LEDs_TurnOnLEDs(const uint32_t LEDMask) { AVR32_GPIO.port[2].ovrc = (LEDMask & LEDS_LEDMASK2); @@ -121,7 +121,7 @@ AVR32_GPIO.port[3].ovrs = LEDS_LEDMASK3; AVR32_GPIO.port[3].ovrc = (LEDMask & LEDS_LEDMASK3); } - + static inline void LEDs_ChangeLEDs(const uint32_t LEDMask, const uint32_t ActiveMask) { AVR32_GPIO.port[2].ovrs = (LEDMask & LEDS_LEDMASK2); @@ -136,7 +136,7 @@ AVR32_GPIO.port[2].ovrt = (LEDMask & LEDS_LEDMASK2); AVR32_GPIO.port[3].ovrt = (LEDMask & LEDS_LEDMASK3); } - + static inline uint32_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT; static inline uint32_t LEDs_GetLEDs(void) { @@ -148,7 +148,8 @@ #if defined(__cplusplus) } #endif - + #endif /** @} */ + |