Leds toggle added

modified:   platform/avr-rss2/dev/leds.c
This commit is contained in:
Robert Olsson 2017-03-24 17:37:37 +01:00
parent e77dba152d
commit 3829dd2f20

View File

@ -33,6 +33,12 @@ leds_off(unsigned char ledv)
void void
leds_toggle(unsigned char ledv) leds_toggle(unsigned char ledv)
{ {
if(ledv & LEDS_YELLOW) {
PORTE ^= (1 << LED_YELLOW);
}
if(ledv & LEDS_RED) {
PORTE ^= (1 << LED_RED);
}
} }
void void
leds_invert(unsigned char ledv) leds_invert(unsigned char ledv)