41 #include "contiki-conf.h"
49 LEDS_PxDIR |= (LEDS_CONF_RED | LEDS_CONF_GREEN | LEDS_CONF_YELLOW);
50 LEDS_PxOUT |= (LEDS_CONF_RED | LEDS_CONF_GREEN | LEDS_CONF_YELLOW);
53 unsigned char leds_arch_get(
void)
55 return ((LEDS_PxOUT & LEDS_CONF_RED) ? 0 : LEDS_RED)
56 | ((LEDS_PxOUT & LEDS_CONF_GREEN) ? 0 : LEDS_GREEN)
57 | ((LEDS_PxOUT & LEDS_CONF_YELLOW) ? 0 : LEDS_YELLOW);
60 void leds_arch_set(
unsigned char leds)
62 LEDS_PxOUT = (LEDS_PxOUT & ~(LEDS_CONF_RED|LEDS_CONF_GREEN|LEDS_CONF_YELLOW))
63 | ((leds & LEDS_RED) ? 0 : LEDS_CONF_RED)
64 | ((leds & LEDS_GREEN) ? 0 : LEDS_CONF_GREEN)
65 | ((leds & LEDS_YELLOW) ? 0 : LEDS_CONF_YELLOW);