Fix issue with CDC device demos causing broken communications when the device tries...
[pub/USBasp.git] / LUFA / Drivers / Board / RZUSBSTICK / LEDs.h
index 38cbed0..ecaab1e 100644 (file)
  *  \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
  *  \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_RZUSBSTICK RZUSBSTICK\r
+ *\r
+ *  @{\r
+ */\r
  \r
 #ifndef __LEDS_RZUSBSTICK_H__\r
 #define __LEDS_RZUSBSTICK_H__\r
  \r
 #ifndef __LEDS_RZUSBSTICK_H__\r
 #define __LEDS_RZUSBSTICK_H__\r
                                        ~((ActiveMask & LEDS_PORTE_LEDS) << LEDS_PORTE_MASK_SHIFT));\r
                        }\r
                        \r
                                        ~((ActiveMask & LEDS_PORTE_LEDS) << LEDS_PORTE_MASK_SHIFT));\r
                        }\r
                        \r
+                       static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)\r
+                       {\r
+                               PORTD = (PORTD ^ (LEDMask & LEDS_PORTD_LEDS));\r
+                               PORTE = (PORTE ^ ((LEDMask & LEDS_PORTE_LEDS) << LEDS_PORTE_MASK_SHIFT));\r
+                       }\r
+\r
                        static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;\r
                        static inline uint8_t LEDs_GetLEDs(void)\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
                #endif\r
        \r
 #endif\r
+\r
+/** @} */\r