39 #include "contiki-conf.h"
47 #if MODELS_CONF_CC2531_USB_STICK
53 P1SEL &= ~(LED1_MASK | LED2_MASK | LED3_MASK);
54 P1DIR |= (LED1_MASK | LED2_MASK | LED3_MASK);
61 #if MODELS_CONF_CC2531_USB_STICK
62 return (
unsigned char)(LED1_PIN | ((LED2_PIN ^ 0x01) << 1));
64 return (
unsigned char)(LED1_PIN | (LED2_PIN << 1) | (LED3_PIN << 2));
69 leds_arch_set(
unsigned char leds)
71 LED1_PIN = leds & 0x01;
72 #if MODELS_CONF_CC2531_USB_STICK
73 LED2_PIN = ((leds & 0x02) >> 1) ^ 0x01;
75 LED2_PIN = (leds & 0x02) >> 1;
76 LED3_PIN = (leds & 0x04) >> 2;
void leds_arch_init(void)
Leds implementation.
Definitions for TI/Chipcon cc2530, cc2531 and cc2533 SFR registers.
Header file for platform-specific led functionality