TI Launchpad patch from Peter Lorenzen, edited to ease the mergequake.
[goodfet] / firmware / lib / msp430.c
index 3a71e14..1684f59 100644 (file)
 #include "apps.h"
 #include "glitch.h"
 
 #include "apps.h"
 #include "glitch.h"
 
+void led_init()
+{
+       PLEDDIR |= PLEDPIN;
+}
+void led_on()
+{
+       PLEDOUT |= PLEDPIN;
+}
+void led_off()
+{
+  PLEDOUT&=~PLEDPIN;
+
+}
+void led_toggle()
+{
+}
 
 //! Initialize MSP430 registers and all that jazz.
 void msp430_init(){
        WDTCTL = WDTPW + WDTHOLD;                                       // Stop watchdog timer
 
        //LED out and on.
 
 //! Initialize MSP430 registers and all that jazz.
 void msp430_init(){
        WDTCTL = WDTPW + WDTHOLD;                                       // Stop watchdog timer
 
        //LED out and on.
-       PLEDDIR |= PLEDPIN;
-       PLEDOUT &= ~PLEDPIN;
+       led_init();
+       led_off();
 
 
        /* P5.0 out and low; this is chosen for the PIC app (in which P5.0
 
 
        /* P5.0 out and low; this is chosen for the PIC app (in which P5.0