summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Lown <ali@lown.me.uk>2011-04-03 21:56:14 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-04-08 18:26:09 +0200
commit24943498e611649a540d98406288dd6d4889851d (patch)
treeb90eaf252142fd6facc676a4d82aeacd15f2b07c
parentbecfbeaacdbabecd0d0c6372dcb03505d89db4f3 (diff)
downloadopenocd+libswd-24943498e611649a540d98406288dd6d4889851d.tar.gz
openocd+libswd-24943498e611649a540d98406288dd6d4889851d.tar.bz2
openocd+libswd-24943498e611649a540d98406288dd6d4889851d.tar.xz
openocd+libswd-24943498e611649a540d98406288dd6d4889851d.zip
Add support for LED to USB Blaster code.
-rw-r--r--src/jtag/drivers/usb_blaster.c9
1 files changed, 9 insertions, 0 deletions
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)