|
|
|
@ -84,23 +84,23 @@
|
|
|
|
|
#if !defined(__DOXYGEN__)
|
|
|
|
|
static inline void LEDs_Init(void)
|
|
|
|
|
{
|
|
|
|
|
DDRD |= LEDS_ALL_LEDS;
|
|
|
|
|
PORTD &= ~LEDS_ALL_LEDS;
|
|
|
|
|
DDRD |= LEDS_ALL_LEDS;
|
|
|
|
|
PORTD |= LEDS_ALL_LEDS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
|
|
|
|
|
{
|
|
|
|
|
PORTD |= LEDMask;
|
|
|
|
|
PORTD &= ~LEDMask;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask)
|
|
|
|
|
{
|
|
|
|
|
PORTD &= ~LEDMask;
|
|
|
|
|
PORTD |= LEDMask;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static inline void LEDs_SetAllLEDs(const uint8_t LEDMask)
|
|
|
|
|
{
|
|
|
|
|
PORTD = ((PORTD & ~LEDS_ALL_LEDS) | LEDMask);
|
|
|
|
|
PORTD = ((PORTD | LEDS_ALL_LEDS) & ~LEDMask);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
|
|
|
|
@ -111,7 +111,7 @@
|
|
|
|
|
|
|
|
|
|
static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
|
|
|
|
|
{
|
|
|
|
|
PORTD = (PORTD ^ (LEDMask & LEDS_ALL_LEDS));
|
|
|
|
|
PORTD ^= LEDMask;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
|
|
|
|
|