From: travisutk Date: Tue, 31 Jul 2012 22:19:16 +0000 (+0000) Subject: Fixed broken LED definitions that were inserted during the Apimote bringup. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=73de406e23d8df8b4bae0f544e01323d20cf00e2 Fixed broken LED definitions that were inserted during the Apimote bringup. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1211 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/firmware/lib/msp430.c b/firmware/lib/msp430.c index 0f30e33..db3e56d 100644 --- a/firmware/lib/msp430.c +++ b/firmware/lib/msp430.c @@ -41,19 +41,27 @@ void led_toggle() //LED2 and LED3 are only used by the telosb and apimote for now void led2_on() { +#ifdef PLED2OUT PLED2OUT &= ~PLED2PIN; +#endif } void led2_off() { +#ifdef PLED2OUT PLED2OUT |= PLED2PIN; +#endif } void led3_on() { +#ifdef PLED3OUT PLED3OUT &= ~PLED3PIN; +#endif } void led3_off() { +#ifdef PLED3OUT PLED3OUT |= PLED3PIN; +#endif } //! Initialize MSP430 registers and all that jazz.