Mike Frysinger
212b865479
remove spurious semicolons at the end of braces
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1438 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
8c5d69aab4
convert printf(buffer) to puts(buffer) to avoid security issues/warnings
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1433 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
46509a4cf7
use const markings on const strings to shutup gcc warnings
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1425 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
c39d7fbd41
src/cmd/include.c: Include ctype.h for isalpha().
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1421 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Kolja Waschk
dde7398208
[2187351] Direct JTAG signal access, get/set_trst extension integrated from getset_pod branch
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1419 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
8fb546d493
[ 2499176 ] No chain_flush() when executing commands from file
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1418 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Kolja Waschk
d908ce8eef
Do not define usleep() in sysdep. Include unistd.h with it
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1414 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
aeb93db8d2
add the ref_freq option to svf command
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1385 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
bfcc7becba
avoid clipping message when reading comments (Hartley)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1384 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
85ce6399f1
[ 1964834 ] Add 'print instruction' support to print command
...
(Hartley Sweeten)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1380 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Kolja Waschk
9ed3f7deea
Added usleep command (Stanislav Sinyagin)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1377 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
a76a13a632
[ 2102453 ] Use macros for std return values instead of literals
...
started with the bus driver stack
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1366 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
f7251ebba6
test correct return value of bus->driver->init()
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1356 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger
a4550b1b68
cleaned-up bsdl subsystem, avoid double reading during detect, commenting
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1345 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger
a4a48f0158
document feature to set active data register with dr
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1303 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger
3c9dae4961
[ 1873260 ] Command 'reset' does not reset internal states
...
next round to fix this one
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1302 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Jie Zhang
6edc1f842d
[ 2007630 ] Pass driver to new_bus
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1292 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger
684ef2f9f7
[ 1984813 ] Bus driver cleanup
...
Separate (*init) and (*prepare) functions
(Hartley Sweeten)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1288 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger
32dc74e986
[ 1984813 ] Bus driver cleanup, remove unnecessary sanity checking (Hartley Sweeten)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1284 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk
d6055a121b
Cleanup/fix Cable connect/disconnect free/malloc issues (Hartley Sweeten)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1258 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger
47d85b3d35
new svf command option 'progress'
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1256 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Ville Voipio
753958c4b5
='addpart' instruction added for manual chain building without 'detect'.
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1208 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Ville Voipio
e07c290fb3
Rewritten parse.c (removed strtok() for being evil and gettext() for being non-POSIX)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1207 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 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
a71df446b6
handle absolute paths under windows that start with drive letters
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1203 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
614ba2075c
[ 1946119 ] fixup relocatable jtag in detection (M. Frysinger)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1174 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk
6fb0f78c1a
Fix [ 1933736 ] "frequency" command segfaults without args
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1172 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk
5f23e7ac5e
[ 1936543 ] Patch: Checkfor set-up cable in idcode
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1159 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
Kolja Waschk
b067b0d946
1933730 "idcode" command (by U.Bonnes)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1151 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger
cee1b1bda2
remove global variables for bsdl subsystem
...
[ 1929235 ] Use less global and static variables
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1148 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
3bff855141
Applied M. Frysingers patches to fix 1899908,1899922,1899930
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1087 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk
2a31c0b3a3
Restored old behaviour for "script" command (for now)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1055 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger
01714116f2
in include.c: check and read file if it's BSDL syntax -> [ 1895936 ]
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1054 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk
d4c8a7311b
Merged script.c command into include.c and modified the file search strategy
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1052 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk
afb5cc0c29
Implemented "scan": [1895135] Basic Boundary Scan Command
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1036 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger
7b122e1c00
Updates required to parse some Xilins BSDL files:
...
- bsdl file for 2001 standard added
- MAXLEN_DATA_REGISTER increased to 32
- convert bsdl package filename to uppercase
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@988 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk
aae9e008ec
[ 1873220 ] Merge libbrux into src, and inclow into include. Compiles now.
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@926 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger
cb72f1c1da
added 'prototype' bus driver (Detrick Martin)
...
since this driver requires a parameter string upon initialization, the
API had to be extended for bus_new()
all other drivers need to follow the new function prototype
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@914 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger
a763de935e
conditional build of SVF and BSDL components based on --enable-svf and --enable-bsdl
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@908 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger
b62f2996f0
merged BSDL parser from branches/bsdl 787:903 to trunk
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@904 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Arnim Läuger
b8727aafa1
applied patch '[ 1858985 ] possible fix to print the signal aliases' (Hartley Sweeten)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@892 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk
814f38046d
cast uint64_t to (long long unsigned) for %llu
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@869 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
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
4ecbb35521
Cosmetics and fix for segfault after legacy check in cable.c
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@849 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago
Kolja Waschk
cd7ea9388c
Replaced several strcmps by strcasecmps, fixes 1845811 Case sensitivity in shell
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@848 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
17 years ago