- 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
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)