Enhance USB Interrupt responsibility
authorPeter Henn <Peter.Henn@web.de>
Wed, 29 Dec 2021 19:20:10 +0000 (19:20 +0000)
committerPeter Henn <Peter.Henn@web.de>
Fri, 7 Jan 2022 12:15:33 +0000 (12:15 +0000)
- 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

LUFA/Drivers/Board/AVR8/PROMICRO/LEDs.h

index 06eac90..fba6465 100644 (file)
                                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)