add jtag/usb_common.[ch] files

Begins to consolidate code used by several USB JTAG interfaces.
This first patch provides the required build system changes and
a common jtag_usb_open routine, which will replace the guts for
probing the busses and devices for possible VID/PID matches.
The following patches convert each driver to use it.
This commit is contained in:
Zachary T Welch
2009-11-19 12:02:07 -08:00
parent 3efc99b34a
commit 3a660e2293
4 changed files with 99 additions and 1 deletions

View File

@@ -23,6 +23,10 @@ else
# Standard Driver: common files
DRIVERFILES += driver.c commands.c
if USB
DRIVERFILES += usb_common.c
endif
if BITBANG
DRIVERFILES += bitbang.c
endif
@@ -92,7 +96,8 @@ noinst_HEADERS = \
rlink/ep1_cmd.h \
rlink/rlink.h \
rlink/st7.h \
minidummy/jtag_minidriver.h
minidummy/jtag_minidriver.h \
usb_common.h
EXTRA_DIST = startup.tcl