From: Ali Lown Date: Sun, 3 Apr 2011 20:56:14 +0000 (+0100) Subject: Add support for LED to USB Blaster code. X-Git-Tag: v0.5.0-rc1~104 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=24943498e611649a540d98406288dd6d4889851d;p=openocd Add support for LED to USB Blaster code. --- diff --git a/src/jtag/drivers/usb_blaster.c b/src/jtag/drivers/usb_blaster.c index 83304932..1e8aa8d9 100644 --- a/src/jtag/drivers/usb_blaster.c +++ b/src/jtag/drivers/usb_blaster.c @@ -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)