Browse Source

- added starting point for development on a ngw100 eval board

git-svn-id: svn://svn.berlios.de/openocd/trunk@289 b42882b7-edfa-0310-969c-e2dbd0fdcd60
tags/v0.1.0
mifi 16 years ago
parent
commit
fdf58f74e0
3 changed files with 47 additions and 1 deletions
  1. +12
    -0
      configure.in
  2. +7
    -1
      src/jtag/Makefile.am
  3. +28
    -0
      src/jtag/ngw100.c

+ 12
- 0
configure.in View 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)


+ 7
- 1
src/jtag/Makefile.am View 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

+ 28
- 0
src/jtag/ngw100.c View File

@@ -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 */




Loading…
Cancel
Save