]> git.sur5r.net Git - openocd/commitdiff
- added starting point for development on a ngw100 eval board
authormifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 10 Feb 2008 19:04:31 +0000 (19:04 +0000)
committermifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 10 Feb 2008 19:04:31 +0000 (19:04 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@289 b42882b7-edfa-0310-969c-e2dbd0fdcd60

configure.in
src/jtag/Makefile.am
src/jtag/ngw100.c [new file with mode: 0644]

index fd2584bbf80bc40d95dd9f911aa22f81c5ab5297..d61e7fe512f318d4616fed27328eae330b5ef643 100644 (file)
@@ -65,6 +65,10 @@ case "${host_cpu}" in
     ;;
 esac
 
+AC_ARG_ENABLE(ngw100,
+  AS_HELP_STRING([--enable-ngw100], [Enable building for NGW100 driver]), 
+  [build_ngw100=$enableval], [build_ngw100=no])
+
 AC_ARG_ENABLE(gw16012,
   AS_HELP_STRING([--enable-gw16012], [Enable building support for the Gateworks GW16012 JTAG Programmer]),
   [build_gw16012=$enableval], [build_gw16012=no])
@@ -148,6 +152,13 @@ else
   AC_DEFINE(BUILD_AT91RM9200, 0, [0 if you don't want at91rm9200.])
 fi
 
+if test $build_ngw100 = yes; then
+  build_bitbang=yes
+  AC_DEFINE(BUILD_NGW100, 1, [1 if you want ngw100.])
+else
+  AC_DEFINE(BUILD_NGW100, 0, [0 if you don't want ngw100.])
+fi
+
 if test $parport_use_ppdev = yes; then
   AC_DEFINE(PARPORT_USE_PPDEV, 1, [1 if you want parport to use ppdev.])
 else
@@ -229,6 +240,7 @@ AM_CONDITIONAL(PARPORT, test $build_parport = yes)
 AM_CONDITIONAL(GIVEIO, test $parport_use_giveio = yes)
 AM_CONDITIONAL(EP93XX, test $build_ep93xx = yes)
 AM_CONDITIONAL(AT91RM9200, test $build_at91rm9200 = yes)
+AM_CONDITIONAL(NGW100, test $build_ngw100 = yes)
 AM_CONDITIONAL(BITBANG, test $build_bitbang = yes)
 AM_CONDITIONAL(FT2232_LIBFTDI, test $build_ft2232_libftdi = yes)
 AM_CONDITIONAL(FT2232_FTD2XX, test $build_ft2232_ftd2xx = yes)
index a35e3f3f17b0e0b645acda77aac034fc76e8a0aa..705f25a618a1a70872b5a5158f2f8916bf7d3492 100644 (file)
@@ -81,7 +81,13 @@ else
 USBPROGFILES =
 endif
 
+if NGW100
+NGW100FILES = ngw100.c
+else
+NGW100FILES =
+endif
+
 libjtag_a_SOURCES = jtag.c $(BITBANGFILES) $(PARPORTFILES) $(FT2232FILES) $(AMTJTAGACCELFILES) $(EP93XXFILES) \
-       $(AT91RM9200FILES) $(GW16012FILES) $(BITQFILES) $(PRESTOFILES) $(USBPROGFILES)
+       $(AT91RM9200FILES) $(GW16012FILES) $(BITQFILES) $(PRESTOFILES) $(USBPROGFILES) $(NGW100FILES)
 
 noinst_HEADERS = bitbang.h jtag.h
diff --git a/src/jtag/ngw100.c b/src/jtag/ngw100.c
new file mode 100644 (file)
index 0000000..74abc0c
--- /dev/null
@@ -0,0 +1,28 @@
+/***************************************************************************
+ *   Copyright (C) 2008 by Michael Fischer                                 *
+ *   fischermi@t-online.de                                                 *
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ *   This program is distributed in the hope that it will be useful,       *
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
+ *   GNU General Public License for more details.                          *
+ *                                                                         *
+ *   You should have received a copy of the GNU General Public License     *
+ *   along with this program; if not, write to the                         *
+ *   Free Software Foundation, Inc.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ ***************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+
+/* EOF */
+
+
+