X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/7f9f97c792dee6875fbca9806422bdd7d6c5a657..0e6d5cf5b4fea133cbd3c16b958617deb42332cf:/LUFA/Drivers/Board/USBKEY/LEDs.h diff --git a/LUFA/Drivers/Board/USBKEY/LEDs.h b/LUFA/Drivers/Board/USBKEY/LEDs.h index ed3f5a1d8..0864be82d 100644 --- a/LUFA/Drivers/Board/USBKEY/LEDs.h +++ b/LUFA/Drivers/Board/USBKEY/LEDs.h @@ -39,6 +39,11 @@ /** \ingroup Group_LEDs * @defgroup Group_LEDs_USBKEY USBKEY * + * Board specific LED driver header for the USBKEY. + * + * \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. + * * @{ */ @@ -56,7 +61,7 @@ #endif /* Preprocessor Checks: */ - #if !defined(INCLUDE_FROM_LEDS_H) + #if !defined(__INCLUDE_FROM_LEDS_H) #error Do not include this file directly. Include LUFA/Drivers/Board/LEDS.h instead. #endif @@ -88,33 +93,32 @@ PORTD &= ~LEDS_ALL_LEDS; } - static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask) + static inline void LEDs_TurnOnLEDs(const uintN_t LEDMask) { PORTD |= LEDMask; } - static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask) + static inline void LEDs_TurnOffLEDs(const uintN_t LEDMask) { PORTD &= ~LEDMask; } - static inline void LEDs_SetAllLEDs(const uint8_t LEDMask) + static inline void LEDs_SetAllLEDs(const uintN_t LEDMask) { PORTD = ((PORTD & ~LEDS_ALL_LEDS) | LEDMask); } - static inline void LEDs_ChangeLEDs(const uint8_t LEDMask, const uint8_t ActiveMask) + static inline void LEDs_ChangeLEDs(const uintN_t LEDMask, const uintN_t ActiveMask) { PORTD = ((PORTD & ~LEDMask) | ActiveMask); } - static inline void LEDs_ToggleLEDs(const uint8_t LEDMask) + static inline void LEDs_ToggleLEDs(const uintN_t LEDMask) { PORTD = (PORTD ^ (LEDMask & LEDS_ALL_LEDS)); } - static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT; - static inline uint8_t LEDs_GetLEDs(void) + static inline uintN_t LEDs_GetLEDs(void) { return (PORTD & LEDS_ALL_LEDS); }