]> git.sur5r.net Git - openocd/commitdiff
Add support for LED to USB Blaster code.
authorAli Lown <ali@lown.me.uk>
Sun, 3 Apr 2011 20:56:14 +0000 (21:56 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Fri, 8 Apr 2011 16:26:09 +0000 (18:26 +0200)
src/jtag/drivers/usb_blaster.c

index 8330493256a56a5ad87fc67323259ef0d1a6b1ec..1e8aa8d9e19bda2b8d450f5f3a55597296a46c85 100644 (file)
@@ -307,10 +307,19 @@ static void usb_blaster_reset(int trst, int srst)
                        trst, srst);
 }
 
+static void usb_blaster_blink(int state)
+{
+       out_value = 0x00;
+       if(state)
+               out_value |= LED;
+       usb_blaster_write_data();
+}
+
 static struct bitbang_interface usb_blaster_bitbang = {
        .read = usb_blaster_read_data,
        .write = usb_blaster_write,
        .reset = usb_blaster_reset,
+       .blink = usb_blaster_blink,
 };
 
 static int usb_blaster_init(void)