projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added beginnings of a new AVRISP-MKII clone project.
[pub/USBasp.git]
/
LUFA
/
Drivers
/
Board
/
USBKEY
/
LEDs.h
diff --git
a/LUFA/Drivers/Board/USBKEY/LEDs.h
b/LUFA/Drivers/Board/USBKEY/LEDs.h
index
07a2b75
..
2e61d2e
100644
(file)
--- a/
LUFA/Drivers/Board/USBKEY/LEDs.h
+++ b/
LUFA/Drivers/Board/USBKEY/LEDs.h
@@
-36,6
+36,12
@@
* dispatch header located in LUFA/Drivers/Board/LEDs.h.
\r
*/
\r
\r
* dispatch header located in LUFA/Drivers/Board/LEDs.h.
\r
*/
\r
\r
+/** \ingroup Group_LEDs
\r
+ * @defgroup Group_LEDs_USBKEY USBKEY
\r
+ *
\r
+ * @{
\r
+ */
\r
+
\r
#ifndef __LEDS_USBKEY_H__
\r
#define __LEDS_USBKEY_H__
\r
\r
#ifndef __LEDS_USBKEY_H__
\r
#define __LEDS_USBKEY_H__
\r
\r
@@
-82,24
+88,29
@@
PORTD &= ~LEDS_ALL_LEDS;
\r
}
\r
\r
PORTD &= ~LEDS_ALL_LEDS;
\r
}
\r
\r
- static inline void LEDs_TurnOnLEDs(const uint8_t L
ed
Mask)
\r
+ static inline void LEDs_TurnOnLEDs(const uint8_t L
ED
Mask)
\r
{
\r
{
\r
- PORTD |= L
ed
Mask;
\r
+ PORTD |= L
ED
Mask;
\r
}
\r
\r
}
\r
\r
- static inline void LEDs_TurnOffLEDs(const uint8_t L
ed
Mask)
\r
+ static inline void LEDs_TurnOffLEDs(const uint8_t L
ED
Mask)
\r
{
\r
{
\r
- PORTD &= ~L
ed
Mask;
\r
+ PORTD &= ~L
ED
Mask;
\r
}
\r
\r
}
\r
\r
- static inline void LEDs_SetAllLEDs(const uint8_t L
ed
Mask)
\r
+ static inline void LEDs_SetAllLEDs(const uint8_t L
ED
Mask)
\r
{
\r
{
\r
- PORTD = ((PORTD & ~LEDS_ALL_LEDS) | L
ed
Mask);
\r
+ PORTD = ((PORTD & ~LEDS_ALL_LEDS) | L
ED
Mask);
\r
}
\r
\r
}
\r
\r
- static inline void LEDs_ChangeLEDs(const uint8_t L
ed
Mask, const uint8_t ActiveMask)
\r
+ static inline void LEDs_ChangeLEDs(const uint8_t L
ED
Mask, const uint8_t ActiveMask)
\r
{
\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
}
\r
\r
static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
\r
@@
-115,3
+126,5
@@
#endif
\r
\r
#endif
\r
#endif
\r
\r
#endif
\r
+
\r
+/** @} */
\r