Added dongle VSLLINK - from Simon Qian
authorduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 27 Dec 2008 02:56:55 +0000 (02:56 +0000)
committerduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 27 Dec 2008 02:56:55 +0000 (02:56 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1280 b42882b7-edfa-0310-969c-e2dbd0fdcd60

configure.in
doc/openocd.texi
src/Makefile.am
src/jtag/Makefile.am
src/jtag/jtag.c
testing/build.test1/Makefile.openocd

index afacbf68d963c1f80b3b379cc6e48c5848bab71a..8f3bbdf129ed8bc1480badc3617be26a8521a006 100644 (file)
@@ -156,8 +156,8 @@ esac
 )
 
 AC_ARG_ENABLE(gccwarnings,
-       AS_HELP_STRING([--enable-gccwarnings], [Enable compiler warnings, default no]),
-       [gcc_warnings=$enableval], [gcc_warnings=no])
+       AS_HELP_STRING([--enable-gccwarnings], [Enable compiler warnings, default yes]),
+       [gcc_warnings=$enableval], [gcc_warnings=yes])
 
 AC_ARG_ENABLE(parport,
   AS_HELP_STRING([--enable-parport], [Enable building the pc parallel port driver]), 
@@ -243,6 +243,10 @@ AC_ARG_ENABLE(jlink,
   AS_HELP_STRING([--enable-jlink], [Enable building support for the Segger J-Link JTAG Programmer]),
   [build_jlink=$enableval], [build_jlink=no])
 
+AC_ARG_ENABLE(vsllink,
+  AS_HELP_STRING([--enable-vsllink], [Enable building support for the Versaloon-Link JTAG Programmer]),
+  [build_vsllink=$enableval], [build_vsllink=no])
+
 AC_ARG_ENABLE(rlink,
   AS_HELP_STRING([--enable-rlink], [Enable building support for the Raisonance RLink JTAG Programmer]),
   [build_rlink=$enableval], [build_rlink=no])
@@ -412,6 +416,12 @@ else
   AC_DEFINE(BUILD_JLINK, 0, [0 if you don't want the J-Link JTAG driver.])
 fi
 
+if test $build_vsllink = yes; then
+  AC_DEFINE(BUILD_VSLLINK, 1, [1 if you want the Versaloon-Link JTAG driver.])
+else
+  AC_DEFINE(BUILD_VSLLINK, 0, [0 if you don't want the Versaloon-Link JTAG driver.])
+fi
+
 if test $build_rlink = yes; then
   AC_DEFINE(BUILD_RLINK, 1, [1 if you want the RLink JTAG driver.])
 else
@@ -631,6 +641,7 @@ AM_CONDITIONAL(PRESTO_FTD2XX, test $build_presto_ftd2xx = yes)
 AM_CONDITIONAL(USBPROG, test $build_usbprog = yes)
 AM_CONDITIONAL(OOCD_TRACE, test $build_oocd_trace = yes)
 AM_CONDITIONAL(JLINK, test $build_jlink = yes)
+AM_CONDITIONAL(VSLLINK, test $build_vsllink = yes)
 AM_CONDITIONAL(RLINK, test $build_rlink = yes)
 AM_CONDITIONAL(IS_CYGWIN, test $is_cygwin = yes)
 AM_CONDITIONAL(IS_MINGW, test $is_mingw = yes)
index fdbed6b59e26eee59ecca237875931b6c6a951c5..70e8c93c3d8ec306674b4854557ac98102efdaf2 100644 (file)
@@ -222,6 +222,8 @@ should be included:
 @item
 @option{--enable-jlink} - From SEGGER
 @item
+@option{--enable-vsllink}
+@item
 @option{--enable-rlink} - Raisonance.com dongle.
 @end itemize
 
@@ -395,6 +397,9 @@ Raisonance has an adapter called @b{RLink}.  It exists in a stripped-down form o
 
 @item @b{USB - Presto} 
 @* Link: @url{http://tools.asix.net/prg_presto.htm}
+
+@item @b{Versaloon-Link}
+@* Link: @url{http://www.simonqian.com/en/Versaloon}
 @end itemize
 
 @section IBM PC Parallel Printer Port Based
@@ -1140,6 +1145,9 @@ libusb.
 
 @item @b{rlink}
 @* Raisonance RLink usb adapter
+
+@item @b{vsllink}
+@* vsllink is part of Versaloon which is a versatile USB programmer.
 @comment - End parameters
 @end itemize
 @comment - End Interface
index b254291785e3d3a547dd07144c439af1c98133b3..0e0f50e480e713e181ec55af7d679833b3971ccf 100644 (file)
@@ -50,10 +50,14 @@ else
 if RLINK
 LIBUSB = -lusb
 else
+if VSLLINK
+LIBUSB = -lusb
+else
 LIBUSB =
 endif
 endif
 endif
+endif
 
 
 
index 0c5812964ca41a33aebc156c48f94bc8c70dfed1..8bb0ea21af6768e7acd16e3c7277d348c86194c5 100644 (file)
@@ -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
index 16dbbd22f0248fe90689d8a73b865809ee8a57b2..48921ebc4c67f8830925da7fad1931c8e5a3d0c0 100644 (file)
@@ -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
index dbe8ac10eb660b4130092a7b74d8fc6723f0b57d..6b0cb56ff0f8188a3a99f93a78f050c541ad4830 100755 (executable)
@@ -40,7 +40,7 @@ MINGW32_EASY_PERMUTATIONS += ftd2xx
 CONFIG_OPTIONS_win32_libftdi  = --enable-parport --enable-ft2232_libftdi
 
 # Default build for win32... is the ftd2xx type build.
-PERMUTE_win32          ?= $(BUILD_SYSNAME)_ftd2xx
+PERMUTE_win32          ?= ftd2xx
 CONFIG_OPTIONS_win32   ?= $(CONFIG_OPTIONS_win32_$(PERMUTE_win32))
 CONFIG_OPTIONS_cygwin   = $(CONFIG_OPTIONS_win32)
 CONFIG_OPTIONS_mingw32  = $(CONFIG_OPTIONS_win32)