45 #include PLATFORM_HEADER
47 #include "contiki-conf.h"
49 #include "hal/micro/micro-common.h"
52 #define LEDS_PORT *((volatile uint32_t *)(GPIO_PxOUT_BASE+(GPIO_Px_OFFSET*(LEDS_CONF_PORT/8))))
60 LEDS_PORT |= (LEDS_CONF_RED | LEDS_CONF_GREEN);
66 return ((LEDS_PORT & LEDS_CONF_RED) ? 0 :
LEDS_RED) |
67 ((LEDS_PORT & LEDS_CONF_GREEN) ? 0 :
LEDS_GREEN);
71 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) |