projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed broken LED definitions that were inserted during the Apimote bringup.
[goodfet]
/
firmware
/
lib
/
msp430.c
diff --git
a/firmware/lib/msp430.c
b/firmware/lib/msp430.c
index
0f30e33
..
db3e56d
100644
(file)
--- 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()
{
//LED2 and LED3 are only used by the telosb and apimote for now
void led2_on()
{
+#ifdef PLED2OUT
PLED2OUT &= ~PLED2PIN;
PLED2OUT &= ~PLED2PIN;
+#endif
}
void led2_off()
{
}
void led2_off()
{
+#ifdef PLED2OUT
PLED2OUT |= PLED2PIN;
PLED2OUT |= PLED2PIN;
+#endif
}
void led3_on()
{
}
void led3_on()
{
+#ifdef PLED3OUT
PLED3OUT &= ~PLED3PIN;
PLED3OUT &= ~PLED3PIN;
+#endif
}
void led3_off()
{
}
void led3_off()
{
+#ifdef PLED3OUT
PLED3OUT |= PLED3PIN;
PLED3OUT |= PLED3PIN;
+#endif
}
//! Initialize MSP430 registers and all that jazz.
}
//! Initialize MSP430 registers and all that jazz.