X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/a147cee95f5373902242e7b34b92f7103fc05ae4..5563da6a626a7301e5064a8df8b3a9b03421f8aa:/LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h diff --git a/LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h b/LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h index 541da264c..e236ded16 100644 --- a/LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/USB2AX/LEDs.h @@ -104,6 +104,17 @@ #endif } + static inline void LEDs_Disable(void) + { + #if (BOARD == BOARD_USB2AX) + DDRC &= ~LEDS_ALL_LEDS; + PORTC &= ~LEDS_ALL_LEDS; + #else + DDRD &= ~LEDS_ALL_LEDS; + PORTD &= ~LEDS_ALL_LEDS; + #endif + } + static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask) { #if (BOARD == BOARD_USB2AX)