91 Commits (5c3e634a0e4daaf1cf3f6f37ca8a90833a33b046)

Author SHA1 Message Date
Arnim Läuger 470105ff37 update copyright year at both instances
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1501 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger 5fb2046d6d set release version 0.10, update copyright year
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1500 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger aa6224f709 more than one optional file can be specified
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1465 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Kolja Waschk ff3536198c Update for OS X support (by Ville Voipio)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1205 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Mike Frysinger 733722108d move Windows stub functions to the global sysdep.h header rather than duplicating everywhere
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1204 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Mike Frysinger ecff4c7410 2008-04-24 Mike Frysinger <vapier@gentoo.org>
* src/jtag.c (jtag_readline_loop): [ 1950315 ] Fix quiting when
     using the non readline version.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1181 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk 09f3ff129e [ 1946331 ] command completion support (Mike Frysinger)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1175 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk b6684fa685 Change occurences of u_intX into uintX types and provide variants of usleep, frealtime, mkdir for [ 1838732 ] EXE built with MinGW
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1169 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk de70664578 [ 1940323 ] OS X support for UrJTAG (by Ville Voipio)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1167 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk d89edeac62 [ 1933141 ] Don't add duplicate history lines (U.Bonnes)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1155 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk b26cc32639 [ 1911291 ] customize jtag prompt
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1153 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk d2c80944d1 [ 1916428 ] support runtime-relocatable urjtag (by M.Frysinger)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1152 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Jie Zhang 11d5d2813c * include/jtag.h (jtag_parse_line): Declare.
(jtag_parse_stream): Declare.
	* src/discovery.c: Move ...
	* src/tap/discovery.c: ... here.
	* src/detect.c: Move ...
	* src/tap/detect.c: ... here.
	* src/tap/Makefile.am (libtap_a_SOURCES): Add detect.c and
	discovery.c.
	* src/readmem.c: Move ...
	* src/bus/readmem.c: ... here.
	* src/writemem.c: Move ...
	* src/bus/writemem.c: ... here.
	* src/bus/Makefile.am (libbus_a_SOURCES): Add readmem.c and
	writemem.c.
	* src/flash.c: Move ...
	* src/flash/flash.c: ... here.
	* src/flash/Makefile.am (libflash_a_SOURCES): Add flash.c.
	* src/jtag.c (get_token, jtag_parse_line, jtag_parse_stream,
	jtag_parse_file): Move to ...
	* src/cmd/parse.c: ... here.
	* src/cmd/Makefile.am (libbus_a_SOURCES): Add parse.c.
	* src/Makefile.am (jtag_SOURCES): Remove detect.c, discovery.c,
	readmem.c, writemem.c and flash.c.
	(jtag_LDADD): Add -ltap and -lflash one more time to resolve
	undefined references.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1120 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Jie Zhang 0a03521de6 [ 1901955 ] Localize chain variable
[ 1830901 ] Merge Blackfin support


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1102 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk cf5c40b075 [ 1901880 ] quit upon EOF
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1099 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk ad76ac32a0 [ 1901877 ] allow people to disable startup message
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1098 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk 68e3cf5966 Always flush after each command during interactive use
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1037 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk fec0b29826 Fix 1887179, and add new command line option "-i"
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@999 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk df9f2fe92d Without readline, output order of prompt and informative/error output was mixed up
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@922 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk ea79dff446 fixes for function prototypes and missing includes (Hartley)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@867 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk 12092532be Cosmetics, small corrections, Copyright
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@861 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk dd055b72d8 jtag: Don't abort for invalid command line options
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@860 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk a224cab4b0 Removed code for "setdevice" command (introduced in #741)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@853 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk 8a15b610f3 Small documentation updates
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@845 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk 0ddc31415e Allow compilation of jtag.c if readline isn't installed (needs more work)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@824 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk 54fc8fc0a9 SVN Revision now put into config.h by configure; removed -lrt dependency (needs more testing)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@823 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger c6685ac0a3 automatically generate version.h from ChangeLog's Revision tag
used for printing the JTAG Tools build number upon startup


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@811 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk 7f38f9afe1 [ 1838018 ] "Forbid" to run JTAG tools with suid root
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@801 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk 666363cfe9 [ 1839756 ] (openwince [972637]) add command line options to jtag
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@800 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk 029593bbd1 [ 1605981 ] JTAG Support for ADSP-21065L Processor (with modifications)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@741 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger bd53788ad9 get rid of (most) compiler warnings
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@733 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk fb8a7b3831 Remaining diffs from gumstix repository: Add debug, test and shell command, aliases for parts, small fixes.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@732 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk c0ef192b30 [ 826404 ] s3c4510 bus driver (without jedec.c fix)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@680 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Marcel Telka 5968bafaf9 2004-11-21 Marcel Telka <marcel@telka.sk>
* src/jtag.c (jtag_parse_stream, cleanup): New function.
	(jtag_parse_file): Replaced stream parsing algorithm with jtag_parse_stream() call. Removed support
		for special filename '-'.
	(main): Rewritten and improved startup sequence to distinguish between interactive invocation
		and stdin input (fixed bug 858535, thanks to Andrew Dyer for an idea).


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@623 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
20 years ago
Marcel Telka 4bd78f389e 2004-08-13 Marcel Telka <marcel@telka.sk>
* src/jtag.c: Added missing locale.h include (patch 986414, Martin Buck).


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@603 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
21 years ago
Marcel Telka 26db6e67c3 2003-11-02 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.5.2.

	* data/Makefile.am (nobase_dist_pkgdata_DATA): Added motorola/mpc8245/1.2.
	* data/motorola/mpc8245/1.2: New file.
	* src/bus/mpc824x.c: Ditto.
	* src/bus/Makefile.am (libbus_a_SOURCES): Added mpc824x.c.
	* src/bus/buses.c (bus_drivers): Added mpc824x_bus.
	* src/bus/buses.h (mpc824x_bus): Added bus declaration.

	* include/bsbit.h (bsbit_alloc): Changed parameter name (signals -> signal).
	* src/part/bsbit.c (bsbit_alloc): Changed parameter behaviour.
	* src/cmd/bit.c (cmd_bit_run): Passed exact signal to bsbit_alloc() instead of list of signals.

	* src/jtag.c (main): Added cfi_array deallocation.

	* src/flash.c (set_flash_driver): Used global cfi_array variable to set flash driver.
	(flashcheck): Function removed.
	All function calls replaced by set_flash_driver().
	(flashmsbin): Removed local cfi_array variable.
	(flashmem): Removed local cfi_array variable. Fixed bug with one more block erase while programming
		data at end of previous block.
	(flasherase): Removed local cfi_array variable. Fixed block number calculation.
	* src/readmem.c (readmem): Fixed bug while reading address near to end of 32 bit address range.
	* src/bus/pxa2x0.c (pxa2x0_bus_new): Added BSR sampling before BOOT_DEF initialization (bugfix).


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@585 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
21 years ago
Marcel Telka 3a1bb84aa4 2003-09-15 Marcel Telka <marcel@telka.sk>
* configure.ac: Fixed spelling (patch 805108, Andreas Mohr).
	* src/jtag.c (main): Ditto.
	* src/cmd/discovery.c (cmd_discovery_help, cmd_discovery): Ditto.
	* src/cmd/flashmem.c (cmd_flashmem_help): Ditto.

	* src/tap/cable/ei012.c: Changed comment (patch 805108, Andreas Mohr).
	* src/tap/cable/keithkoep.c: Ditto.
	* src/tap/cable/mpcbdm.c: Ditto.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@568 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
21 years ago
Marcel Telka b05cffa059 2003-09-05 Marcel Telka <marcel@telka.sk>
* 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
22 years ago
Marcel Telka 41c771380b 2003-08-25 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed package name.
	* src/jtag.c (main): Added full package name to banner.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@543 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka c146db4b84 2003-08-19 Marcel Telka <marcel@telka.sk>
* src/jtag.c (main): Fixed setlocale() call.
	* Makefile.am (noinst_HEADERS): Renamed config.h -> sysdep.h.
	* config.h: Renamed this file ...
	* sysdep.h: ... to this one.
	Changed config.h -> sysdep.h include in all source files.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@523 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 05d3c24f64 2003-08-13 Marcel Telka <marcel@telka.sk>
* include/part.h (struct part): Added new member 'id'.
	(part_alloc): Added new parameter 'id'.
	* src/detect.c (detect_parts): Added execution JTAG declarations as script.
	* src/jtag.c (get_token): Added support for in-line comments.
	* src/cmd/Makefile.am (libcmd_a_SOURCES): Added signal.c, bit.c, and register.c.
	* src/cmd/bit.c: New file.
	* src/cmd/register.c: Ditto.
	* src/cmd/signal.c: Ditto.
	* src/cmd/cmd.c (cmds): Added cmd_signal, cmd_bit, and cmd_register.
	* src/cmd/instruction.c (cmd_instruction_run, cmd_instruction_help, cmd_instruction): Added support
		for new instruction declaration.
	* src/part/parse.c: File removed.
	* src/part/Makefile.am (libpart_a_SOURCES): Removed parse.c.
	* src/cmd/detect.c (cmd_detect_run): Fixed possible NULL pointer dereference.
	* src/part/part.c (part_alloc): Added new parameter 'id'.
	(part_free): Addedd id deallocation.
	(part_print): Added support for instructions without data register.
	* src/tap/chain.c (chain_shift_data_registers): Ditto.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@506 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 7cca05a558 2003-08-11 Marcel Telka <marcel@telka.sk>
* include/bus.h (buses_t): Added new structure.
	* src/jtag.c (bus): Removed global variable.
	* src/bus/Makefile.am (libbus_a_SOURCES): Added buses.c.
	* src/bus/buses.c: New file.
	* src/bus/bcm1250.c (bcm1250_bus_printinfo): New function.
	* src/bus/ixp425.c (ixp425_bus_printinfo): Ditto.
	* src/bus/pxa2x0.c (pxa2x0_bus_printinfo): Ditto.
	* src/bus/sa1110.c (sa1110_bus_printinfo): Ditto.
	* src/bus/sh7727.c (sh7727_bus_printinfo): Ditto.
	* src/bus/sh7750r.c (sh7750r_bus_printinfo): Ditto.
	* src/cmd/Makefile.am (libcmd_a_SOURCES): Added bus.c.
	* src/cmd/bus.c: New file.
	* src/cmd/cmd.c (cmds): Added cmd_bus.
	* src/cmd/detect.c (cmd_detect_run): Added support for multiple buses detection.
	* src/cmd/print.c (cmd_print_run): Fixed header printing while syntax error. Added support for printing
		list of active buses.
	(cmd_print_help): Added new parameter 'bus'.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@497 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 1632019141 2003-07-16 Marcel Telka <marcel@telka.sk>
* src/jtag.c (jtag_parse_line): Fixed invalid memory allocation size (core dump).


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@491 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 88953b5633 2003-06-03 Marcel Telka <marcel@telka.sk>
* src/Makefile.am (jtag_LDADD): Added libbrux twice to resolve dependencies.
	* src/jtag.c: Fixed cmd.h include path.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@468 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka bb8b9d4cd9 2003-05-22 Marcel Telka <marcel@telka.sk>
* config.h: New file.
	Changed all relevant source files to include this file unconditionaly.
	* Makefile.am (noinst_HEADERS): Added config.h.
	* configure.ac (AM_CONFIG_HEADER): Renamed generated configuration file
		from config.h to acconfig.h.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@440 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 39e71ae23b 2003-05-22 Marcel Telka <marcel@telka.sk>
* src/jtag.c: Added new global variable 'big_endian'.
	* include/jtag.h: Ditto.
	* src/flash.c (flashmem): Added full support for little/big endian.
	* src/readmem.c (readmem): Ditto.
	* src/cmd/Makefile.am (libcmd_a_SOURCES): Added endian.c.
	* src/cmd/cmd.c (cmds): Added new command 'endian'.
	* src/cmd/endian.c: New file.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@439 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka bdac1de201 2003-05-20 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_CONFIG_FILES): Added src/cmd/Makefile.
	* include/Makefile.am (noinst_HEADERS): Added jtag.h.
	* include/jtag.h: New file.
	* po/POTFILES.in: Updated.
	* src/Makefile.am (SUBDIRS): Added cmd.
	(jtag_SOURCES): Removed jtag.h and help.c.
	(jtag_DEPENDENCIES): Added cmd/libcmd.a.
	(jtag_LDADD): Added libcmd.
	(INCLUDES): Removed JTAG_DATA_DIR.
	* src/help.c: File removed.
	* src/jtag.h: Ditto.
	* src/jtag.c (jtag_parse_line): Removed command parsing and moved it to cmd directory.
	(jtag_parse_file): Function is no longer static.
	* src/cmd/Makefile.am: New file.
	* src/cmd/cable.c: Ditto.
	* src/cmd/cmd.c: Ditto.
	* src/cmd/cmd.h: Ditto.
	* src/cmd/detect.c: Ditto.
	* src/cmd/detectflash.c: Ditto.
	* src/cmd/discovery.c: Ditto.
	* src/cmd/dr.c: Ditto.
	* src/cmd/flashmem.c: Ditto.
	* src/cmd/frequency.c: Ditto.
	* src/cmd/get.c: Ditto.
	* src/cmd/help.c: Ditto.
	* src/cmd/instruction.c: Ditto.
	* src/cmd/print.c: Ditto.
	* src/cmd/quit.c: Ditto.
	* src/cmd/readmem.c: Ditto.
	* src/cmd/script.c: Ditto.
	* src/cmd/set.c: Ditto.
	* src/cmd/shift.c: Ditto.

	* src/part/part.c (parts_print): Fixed header printing.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@434 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka c66099c0b3 2003-05-13 Marcel Telka <marcel@telka.sk>
* src/jtag.c (jtag_parse_file): Added support for command scripts from stdin.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@424 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 60767fa68f 2003-04-29 Marcel Telka <marcel@telka.sk>
* data/MANUFACTURERS: Added new manufacturer: DEC.

	* src/jtag.c (jtag_create_jtagdir): Changed permissions for jtag directory.

	* include/part.h (part_alloc, read_part): Changed return type from `part *' to `part_t *'.
	(struct parts): Changed parts member type from `part **' to `part_t **'.
	(parts_alloc): Changed return type from `parts *' to `parts_t *'.
	* src/bus/ixp425.c (select_flash, unselect_flash, setup_address, set_data_in, setup_data):
		Changed first parameter type from `part *' to `part_t *'.
	* src/bus/pxa250.c (setup_address, set_data_in, setup_data): Ditto.
	* src/bus/sa1110.c (setup_address, set_data_in, setup_data): Ditto.

	* include/bus.h: Replaced static bus_driver_t architecture with dynamic bus_t.
		Removed direct chain_t dependency. Added `params' and `prepare' members.
	All related functions' parameter types changed.
	* src/bus/ixp425.c (bus_params_t): New structure typedef.
	(CHAIN, PART): New macros.
	(ixp425_bus_prepare, ixp425_bus_free, new_ixp425_bus): New functions.
	(ixp425_bus_driver, ixp425_bus): Renamed `ixp425_bus_driver' to `ixp425_bus' and updated
		for new bus driver architecture.
	* src/bus/pxa250.c (bus_params_t): New structure typedef.
	(CHAIN, PART): New macros.
	(pxa250_bus_prepare, pxa250_bus_free, new_pxa250_bus): New functions.
	(pxa250_bus_driver, pxa250_bus): Renamed `pxa250_bus_driver' to `pxa250_bus' and updated
		for new bus driver architecture.
	* src/bus/sa1110.c (bus_params_t): New structure typedef.
	(CHAIN, PART): New macros.
	(sa1110_bus_prepare, sa1110_bus_free, new_sa1110_bus): New functions.
	(sa1110_bus_driver, sa1110_bus): Renamed `sa1110_bus_driver' to `sa1110_bus' and updated
		for new bus driver architecture.
	* src/readmem.c (detectflash, readmem): Moved JTAG chain initialization to bus->prepare().
	* src/flash.c (flashcheck): Ditto.
	(flashmsbin, flashmem): Removed BYPASS instruction setup.
	* src/jtag.c (bus_driver, bus): Replaced `bus_driver' with `bus' global variable.
	(jtag_parse_line, main): Added `bus' deallocation.
	* src/flash.h (flash_driver_t): Changed parameter type for all function members from
		`chain_t*' to `bus_t *'.
	All function callers changed.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@423 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 2e6e74b04d 2003-03-18 Marcel Telka <marcel@telka.sk>
* src/jtag.c (jtag_parse_line) <script>: Added support for `quit' command in scripts.
	(jtag_parse_rc): Ditto.
	(jtag_parse_file): Added support for comments and `quit' command in scripts.
	(main): Added command line parameter list execution as scripts.
	* data/intel/pxa250/STEPPING: Added support for Intel PXA255 A0 (thanks to Mike Sprauve).
	* configure.ac (AC_INIT): Changed version number to 0.3.1.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@401 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago