projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix issue with CDC device demos causing broken communications when the device tries...
[pub/USBasp.git]
/
LUFA
/
Drivers
/
Board
/
RZUSBSTICK
/
LEDs.h
diff --git
a/LUFA/Drivers/Board/RZUSBSTICK/LEDs.h
b/LUFA/Drivers/Board/RZUSBSTICK/LEDs.h
index
38cbed0
..
ecaab1e
100644
(file)
--- a/
LUFA/Drivers/Board/RZUSBSTICK/LEDs.h
+++ b/
LUFA/Drivers/Board/RZUSBSTICK/LEDs.h
@@
-35,6
+35,12
@@
* \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
@@
-125,6
+131,12
@@
~((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
@@
-139,3
+151,5
@@
#endif
\r
\r
#endif
\r
#endif
\r
\r
#endif
\r
+
\r
+/** @} */
\r