* configure.ac (AC_CHECK_FUNCS): Added swprintf.
* src/cmd/print.c (cmd_print_run): Added alternative implementation of the header printing using
snprintf() for platforms without swprintf() function available.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@564 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* src/tap/cable/wiggler.c (wiggler_init, wiggler_clock, wiggler_get_tdo, wiggler_set_trst): Fixed
inverted TRST signal (see patch 799377 for more info, thanks to Mike Tesch for reporting).
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@562 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* include/bus.h (bus_drivers): Added constant declaration.
(new_sa1110_bus, new_pxa250_bus, new_ixp425_bus, new_sh7727_bus, new_sh7750r_bus, new_sh7751r_bus)
(new_bcm1250_bus): Function declarations removed.
* src/bus/buses.c (bus_drivers): New constant definition.
* src/bus/buses.h: New file.
* src/bus/Makefile.am (libbus_a_SOURCES): Added buses.h.
* src/bus/bcm1250.c (bcm1250_bus_printinfo): Added new function parameter 'bus'.
(bcm1250_bus): Changed structure type to bus_driver_t. Changed members.
(new_bcm1250_bus): Function renamed ...
(bcm1250_bus_new): ... to this one. Changed parameter list to void (and function body updated).
* src/bus/ixp425.c (ixp425_bus_printinfo): Added new function parameter 'bus'.
(ixp425_bus): Changed structure type to bus_driver_t. Changed members.
(new_ixp425_bus): Function renamed ...
(ixp425_bus_new): ... to this one. Changed parameter list to void (and function body updated).
* src/bus/pxa2x0.c (pxa2x0_bus_printinfo): Added new function parameter 'bus'.
(pxa250_bus): Structure transformed ...
(pxa2x0_bus): ... to this constant (changed type to bus_driver_t, changed members).
(new_pxa250_bus): Function renamed ...
(pxa2x0_bus_new): ... to this one. Changed parameter list to void (and function body updated).
* src/bus/s3c4510x.c (s3c4510_bus_printinfo): Added new function parameter 'bus'.
(s3c4510_bus): Changed structure type to bus_driver_t. Changed members.
(new_s3c4510_bus): Function renamed ...
(s3c4510_bus_new): ... to this one. Changed parameter list to void (and function body updated).
* src/bus/sa1110.c (sa1110_bus_printinfo): Added new function parameter 'bus'.
(sa1110_bus): Changed structure type to bus_driver_t. Changed members.
(new_sa1110_bus): Function renamed ...
(sa1110_bus_new): ... to this one. Changed parameter list to void (and function body updated).
* src/bus/sh7727.c (sh7727_bus_printinfo): Added new function parameter 'bus'.
(sh7727_bus): Changed structure type to bus_driver_t. Changed members.
(new_sh7727_bus): Function renamed ...
(sh7727_bus_new): ... to this one. Changed parameter list to void (and function body updated).
* src/bus/sh7750r.c (sh7750r_bus_printinfo): Added new function parameter 'bus'.
(sh7750r_bus): Changed structure type to bus_driver_t. Changed members.
(new_sh7750r_bus): Function renamed ...
(sh7750r_bus_new): ... to this one. Changed parameter list to void (and function body updated).
* src/bus/sh7751r.c (sh7751r_bus_printinfo): Added new function parameter 'bus'.
(sh7751r_bus): Changed structure type to bus_driver_t. Changed members.
(new_sh7751r_bus): Function renamed ...
(sh7751r_bus_new): ... to this one. Changed parameter list to void (and function body updated).
* src/cmd/cable.c (cmd_cable_run): Replaced bus->free() call with bus_free().
* src/jtag.c (main): Ditto.
* src/cmd/cmd.c (cmds): Added cmd_initbus.
* src/cmd/detect.c (cmd_detect_run): Removed explicit bus driver detection.
* src/cmd/initbus.c: New file.
* src/cmd/Makefile.am (libcmd_a_SOURCES): Added initbus.c.
* data/broadcom/bcm1250/bcm1250: Added 'initbus' command call.
* data/hitachi/sh7727/sh7727: Ditto.
* data/intel/ixp425/ixp425: Ditto.
* data/intel/pxa250/pxa250: Ditto.
* data/intel/pxa250/pxa250c0: Ditto.
* data/intel/sa1110/sa1110: Ditto.
* data/samsung/s3c4510b/s3c4510b: Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@558 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* src/bus/pxa2x0.c (set_data_in, setup_data): Added new 'adr' parameter. Used real data bus width
for data reading (based on patch 792591, thanks to Guennadi Liakhovetski).
All function callers updated.
(pxa250_bus_read_next, pxa250_bus_read_end): Used real data bus width for data reading (based on
patch 792591, thanks to Guennadi Liakhovetski).
* src/bus/sa1110.c (set_data_in, setup_data, sa1110_bus_read_next, sa1110_bus_read_end): Ditto.
* src/bus/sh7727.c (set_data_in, setup_data, sh7727_bus_read_next, sh7727_bus_read_end): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@554 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* src/readmem.c (readmem): Replaced bus_width macro with new bus_area.
* src/bus/bcm1250.c (bcm1250_bus_width): Function removed.
(bcm1250_bus_area): New function.
* src/bus/ixp425.c (ixp425_bus_width): Function removed.
(ixp425_bus_area): New function.
* src/bus/pxa2x0.c (pxa250_bus_width): Function removed.
(pxa2x0_bus_area): New function.
* src/bus/s3c4510x.c (s3c4510_bus_width): Function removed.
(s3c4510_bus_area): New function.
* src/bus/sa1110.c (sa1110_bus_width: Function removed.
(sa1110_bus_area): New function.
* src/bus/sh7727.c (sh7727_bus_width): Function removed.
(sh7727_bus_area): New function.
* src/bus/sh7750r.c (sh7750r_bus_width): Function removed.
(sh7750r_bus_area): New function.
* src/bus/sh7751r.c (sh7751r_bus_width): Function removed.
(sh7751r_bus_area): New function.
* src/cmd/print.c (cmd_print_run): Added bus area printing.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@551 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* src/tap/cable/byteblaster.c (byteblaster_init): Added additional checks for valid ByteBlaster cable
connection and enabled all variants of the cable (patch 793313, Rojhalat Ibrahim).
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@542 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* include/jtag.h (flasherase): New function prototype (patch 772267, Thomas Fröhlich).
* src/flash.c (flasherase): New function (patch 772267, Thomas Fröhlich).
* src/cmd/Makefile.am (libcmd_a_SOURCES): Added eraseflash.c (patch 772267, Thomas Fröhlich).
* src/cmd/cmd.c (cmds): Added cmd_eraseflash (patch 772267, Thomas Fröhlich).
* src/cmd/eraseflash.c: New file (patch 772267, Thomas Fröhlich).
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@515 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* src/tap/chain.c (chain_shift_instructions): Moved test for parts without active instruction before
shifting process.
(chain_shift_data_registers): Moved test for parts without active instruction or data register before
shifting process.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@514 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* include/jtag.h (detect_register_size): Added function declaration.
* src/discovery.c (detect_register_size): Changed to non-static.
* src/detect.c (detect_parts): Added support for parts without IDCODE.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@510 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
* po/POTFILES.in: Removed missing files.
* configure.ac: Removed VL_LIB_READLINE macro and moved it to ...
* acinclude.m4: ... this new file.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@492 b68d4a1b-bc3d-0410-92ed-d4ac073336b7