From: Peter Henn Date: Wed, 29 Dec 2021 19:20:10 +0000 (+0000) Subject: Enhance USB Interrupt responsibility X-Git-Tag: DFU-Bootloader-ProMicro~3 X-Git-Url: http://git.linex4red.de/pub/lufa.git/commitdiff_plain/f4687fd36013da45a2885b568a33bbe331ab5d14 Enhance USB Interrupt responsibility - Remove the yellow LED flashing from the original implementation from Stanley Lio, which uses busy wait loops of 5 ms and switch back to the LUFA LED toggling function --- diff --git a/LUFA/Drivers/Board/AVR8/PROMICRO/LEDs.h b/LUFA/Drivers/Board/AVR8/PROMICRO/LEDs.h index 06eac90f9..fba64651b 100644 --- a/LUFA/Drivers/Board/AVR8/PROMICRO/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/PROMICRO/LEDs.h @@ -131,20 +131,11 @@ PORTD = ((PORTD & ~(LEDMask & LEDS_PORTD_LEDS)) | (ActiveMask & LEDS_PORTD_LEDS)); } -#if 0 static inline void LEDs_ToggleLEDs(const uint8_t LEDMask) { PORTB ^= (LEDMask & LEDS_PORTB_LEDS); PORTD ^= (LEDMask & LEDS_PORTD_LEDS); } -#else - static inline void LEDs_ToggleLEDs(const uint8_t LEDMask) - { - PORTB &= ~(LEDMask & LEDS_PORTB_LEDS); - Delay_MS(5); - PORTB |= (LEDMask & LEDS_PORTB_LEDS); - } -#endif static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT; static inline uint8_t LEDs_GetLEDs(void)