43 #include PLATFORM_HEADER
45 #include "contiki-conf.h"
47 #include "hal/micro/micro-common.h"
50 #define LEDS_PORT *((volatile int32u *)(GPIO_PxOUT_BASE+(GPIO_Px_OFFSET*(LEDS_CONF_PORT/8))))
59 LEDS_PORT |= (LEDS_CONF_RED | LEDS_CONF_GREEN);
65 return ((LEDS_PORT & LEDS_CONF_RED) ? 0 : LEDS_RED)
66 | ((LEDS_PORT & LEDS_CONF_GREEN) ? 0 : LEDS_GREEN);
70 leds_arch_set(
unsigned char leds)
73 LEDS_PORT = (LEDS_PORT & ~(LEDS_CONF_RED|LEDS_CONF_GREEN))
74 | ((leds & LEDS_RED) ? 0 : LEDS_CONF_RED)
75 | ((leds & LEDS_GREEN) ? 0 : LEDS_CONF_GREEN);