X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/2590452104c569f64aeefba3b06734035fb77d66..5e14c194c9a2f5cb52a43f7efeacb795a38ced74:/LUFA/Drivers/Board/BUMBLEB/LEDs.h diff --git a/LUFA/Drivers/Board/BUMBLEB/LEDs.h b/LUFA/Drivers/Board/BUMBLEB/LEDs.h index a5251be58..25360c0fa 100644 --- a/LUFA/Drivers/Board/BUMBLEB/LEDs.h +++ b/LUFA/Drivers/Board/BUMBLEB/LEDs.h @@ -29,9 +29,12 @@ */ /** \file + * \brief Board specific LED driver header for the BUMBLEB. * - * Board specific LED driver header for the BUMBLEB. The BUMBLEB third-party board does not include any on-board - * peripherals, but does have an officially recommended external peripheral layout for buttons, LEDs and a Joystick. + * Board specific LED driver header for the BUMBLEB (http://fletchtronics.net/bumble-b). + * + * The BUMBLEB third-party board does not include any on-board peripherals, but does have an officially recommended + * external peripheral layout for buttons, LEDs and a Joystick. * * \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. @@ -40,8 +43,9 @@ /** \ingroup Group_LEDs * @defgroup Group_LEDs_BUMBLEB BUMBLEB * - * Board specific LED driver header for the BUMBLEB. The BUMBLEB third-party board does not include any on-board - * peripherals, but does have an officially recommended external peripheral layout for buttons, LEDs and a Joystick. + * Board specific LED driver header for the BUMBLEB (http://fletchtronics.net/bumble-b). The BUMBLEB third-party board + * does not include any on-board peripherals, but does have an officially recommended external peripheral layout for + * buttons, LEDs and a Joystick. * * \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. @@ -95,27 +99,28 @@ PORTB &= ~LEDS_ALL_LEDS; } - static inline void LEDs_TurnOnLEDs(const uintN_t LedMask) + static inline void LEDs_TurnOnLEDs(const uint8_t LedMask) { PORTB |= LedMask; } - static inline void LEDs_TurnOffLEDs(const uintN_t LedMask) + static inline void LEDs_TurnOffLEDs(const uint8_t LedMask) { PORTB &= ~LedMask; } - static inline void LEDs_SetAllLEDs(const uintN_t LedMask) + static inline void LEDs_SetAllLEDs(const uint8_t LedMask) { PORTB = ((PORTB & ~LEDS_ALL_LEDS) | LedMask); } - static inline void LEDs_ChangeLEDs(const uintN_t LedMask, const uintN_t ActiveMask) + static inline void LEDs_ChangeLEDs(const uint8_t LedMask, const uint8_t ActiveMask) { PORTB = ((PORTB & ~LedMask) | ActiveMask); } - static inline uintN_t LEDs_GetLEDs(void) + static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT; + static inline uint8_t LEDs_GetLEDs(void) { return (PORTB & LEDS_ALL_LEDS); }