* \note This file should not be included directly. It is automatically included as needed by the LEDs driver\r
* dispatch header located in LUFA/Drivers/Board/LEDs.h.\r
*/\r
+\r
+/** \ingroup Group_LEDs\r
+ * @defgroup Group_LEDs_STK525 STK525\r
+ *\r
+ * @{\r
+ */\r
\r
#ifndef __LEDS_STK525_H__\r
#define __LEDS_STK525_H__\r
PORTD &= ~LEDS_ALL_LEDS;\r
}\r
\r
- static inline void LEDs_TurnOnLEDs(const uint8_t LedMask)\r
+ static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)\r
{\r
- PORTD |= LedMask;\r
+ PORTD |= LEDMask;\r
}\r
\r
- static inline void LEDs_TurnOffLEDs(const uint8_t LedMask)\r
+ static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask)\r
{\r
- PORTD &= ~LedMask;\r
+ PORTD &= ~LEDMask;\r
}\r
\r
- static inline void LEDs_SetAllLEDs(const uint8_t LedMask)\r
+ static inline void LEDs_SetAllLEDs(const uint8_t LEDMask)\r
{\r
- PORTD = ((PORTD & ~LEDS_ALL_LEDS) | LedMask);\r
+ PORTD = ((PORTD & ~LEDS_ALL_LEDS) | LEDMask);\r
}\r
\r
- static inline void LEDs_ChangeLEDs(const uint8_t LedMask, const uint8_t ActiveMask)\r
+ static inline void LEDs_ChangeLEDs(const uint8_t LEDMask, const uint8_t ActiveMask)\r
{\r
- PORTD = ((PORTD & ~LedMask) | ActiveMask);\r
+ PORTD = ((PORTD & ~LEDMask) | ActiveMask);\r
}\r
\r
+ static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)\r
+ {\r
+ PORTD = (PORTD ^ (LEDMask & LEDS_ALL_LEDS));\r
+ }\r
+\r
static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;\r
static inline uint8_t LEDs_GetLEDs(void)\r
{\r
#endif\r
\r
#endif\r
+\r
+/** @} */\r