mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Leds toggle added
modified: platform/avr-rss2/dev/leds.c
This commit is contained in:
parent
e77dba152d
commit
3829dd2f20
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user