From 21eff7095c50bcdc74000e6cda0c76aa3d16b854 Mon Sep 17 00:00:00 2001 From: duane Date: Sat, 27 Dec 2008 02:56:55 +0000 Subject: Added dongle VSLLINK - from Simon Qian git-svn-id: svn://svn.berlios.de/openocd/trunk@1280 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/Makefile.am | 4 ++++ src/jtag/Makefile.am | 8 +++++++- src/jtag/jtag.c | 7 +++++++ 3 files changed, 18 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index b254291..0e0f50e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -50,10 +50,14 @@ else if RLINK LIBUSB = -lusb else +if VSLLINK +LIBUSB = -lusb +else LIBUSB = endif endif endif +endif diff --git a/src/jtag/Makefile.am b/src/jtag/Makefile.am index 0c58129..8bb0ea2 100644 --- a/src/jtag/Makefile.am +++ b/src/jtag/Makefile.am @@ -96,7 +96,13 @@ else RLINKFILES = endif +if VSLLINK +VSLLINKFILES = vsllink.c +else +VSLLINKFILES = +endif + libjtag_a_SOURCES = jtag.c $(BITBANGFILES) $(PARPORTFILES) $(DUMMYFILES) $(FT2232FILES) $(AMTJTAGACCELFILES) $(EP93XXFILES) \ - $(AT91RM9200FILES) $(GW16012FILES) $(BITQFILES) $(PRESTOFILES) $(USBPROGFILES) $(ECOSBOARDFILES) $(JLINKFILES) $(RLINKFILES) + $(AT91RM9200FILES) $(GW16012FILES) $(BITQFILES) $(PRESTOFILES) $(USBPROGFILES) $(ECOSBOARDFILES) $(JLINKFILES) $(RLINKFILES) $(VSLLINKFILES) noinst_HEADERS = bitbang.h jtag.h diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index 16dbbd2..48921eb 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -196,6 +196,10 @@ static int hasKHz = 0; extern jtag_interface_t jlink_interface; #endif +#if BUILD_VSLLINK == 1 + extern jtag_interface_t vsllink_interface; +#endif + #if BUILD_RLINK == 1 extern jtag_interface_t rlink_interface; #endif @@ -237,6 +241,9 @@ jtag_interface_t *jtag_interfaces[] = { #if BUILD_JLINK == 1 &jlink_interface, #endif +#if BUILD_VSLLINK == 1 + &vsllink_interface, +#endif #if BUILD_RLINK == 1 &rlink_interface, #endif -- cgit v1.1