49 LEDS_PxDIR |= (LEDS_CONF_RED | LEDS_CONF_GREEN | LEDS_CONF_YELLOW);
50 LEDS_PxOUT |= (LEDS_CONF_RED | LEDS_CONF_GREEN | LEDS_CONF_YELLOW);
56 return ((LEDS_PxOUT & LEDS_CONF_RED) ? 0 : LEDS_RED)
57 | ((LEDS_PxOUT & LEDS_CONF_GREEN) ? 0 : LEDS_GREEN)
58 | ((LEDS_PxOUT & LEDS_CONF_YELLOW) ? 0 : LEDS_YELLOW);
62 leds_arch_set(
unsigned char leds)
64 LEDS_PxOUT = (LEDS_PxOUT & ~(LEDS_CONF_RED|LEDS_CONF_GREEN|LEDS_CONF_YELLOW))
65 | ((leds & LEDS_RED) ? 0 : LEDS_CONF_RED)
66 | ((leds & LEDS_GREEN) ? 0 : LEDS_CONF_GREEN)
67 | ((leds & LEDS_YELLOW) ? 0 : LEDS_CONF_YELLOW);