27 #define LED_GREEN(v) {((v) ? (P2DIR |= 0x10) : (P2DIR &= ~0x10));}
31 #define LED_YELLOW(v) {((v) ? (P2DIR |= 0x04) : (P2DIR &= ~0x04));}
35 #define LED_RED(v) {((v) ? (P2DIR |= 0x02) : (P2DIR &= ~0x02));}
43 #define LED_GREEN_STATE ((P2DIR >> 4) & 1)
46 #define LED_YELLOW_STATE ((P2DIR >> 2) & 1)
49 #define LED_RED_STATE ((P2DIR >> 1) & 1)
54 #define LED_GREEN_TOGGLE() {P2DIR ^= 0x10;}
59 #define LED_YELLOW_TOGGLE() {P2DIR ^= 0x04;}
64 #define LED_RED_TOGGLE() {P2DIR ^= 0x02;}
void boardStartBootloader()
uint16 CODE serialNumberStringDescriptor[]
uint8 CODE serialNumber[4]
void boardStartBootloaderIfNeeded()