X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/a81ccd83fd3c0bd30909d9faa3a62a4ce3cd4f68..43a3350981f74aaa7455798d287465265f9e19d8:/LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h?ds=sidebyside diff --git a/LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h b/LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h index 0eb11d978..870d7a364 100644 --- a/LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/XPLAIN/LEDs.h @@ -37,6 +37,13 @@ */ /** \ingroup Group_LEDs + * \defgroup Group_LEDs_XPLAIN_REV1 XPLAIN_REV1 + * \brief Board specific LED driver header for the original Atmel XPLAIN, revision 1. + * + * See \ref Group_LEDs_XPLAIN for more details. + */ + +/** \ingroup Group_LEDs * \defgroup Group_LEDs_XPLAIN XPLAIN * \brief Board specific LED driver header for the original Atmel XPLAIN. * @@ -80,6 +87,12 @@ PORTB |= LEDS_ALL_LEDS; } + static inline void LEDs_Disable(void) + { + DDRB &= ~LEDS_ALL_LEDS; + PORTB &= ~LEDS_ALL_LEDS; + } + static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask) { PORTB &= ~LEDMask;