TI Launchpad patch from Peter Lorenzen, edited to ease the mergequake.
[goodfet] / firmware / apps / jtag / openocd.c
index feb8e57..6417e54 100644 (file)
@@ -69,10 +69,10 @@ void openocd_led(int led)
 {
        if (led)
                /* turn the LED on */
-               PLEDDIR |= PLEDPIN;
+               led_on();
        else
                /* turn the LED off */
-               PLEDOUT &= ~PLEDPIN;
+               led_off();
 }
 
 //! resets the device/JTAG logic