Added new LEDs_ToggleLEDs() function to the Board LEDs driver.
This commit is contained in:
parent
3991c94b38
commit
200821fe82
12 changed files with 74 additions and 42 deletions
|
@ -131,6 +131,12 @@
|
|||
~((ActiveMask & LEDS_PORTE_LEDS) << LEDS_PORTE_MASK_SHIFT));
|
||||
}
|
||||
|
||||
static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
|
||||
{
|
||||
PORTD = (PORTD ^ (LEDMask & LEDS_PORTD_LEDS));
|
||||
PORTE = (PORTE ^ ((LEDMask & LEDS_PORTE_LEDS) << LEDS_PORTE_MASK_SHIFT));
|
||||
}
|
||||
|
||||
static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
|
||||
static inline uint8_t LEDs_GetLEDs(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue