2003-03-18 Marcel Telka <marcel@telka.sk>

* po/POTFILES.in: Added src/tap/parport/direct.c and src/tap/parport/ppdev.c.
	* src/help.c (help) <cable>: Added help for `cable ppdev' command.
	* src/tap/parport/ppdev.c (ppdev_open): Removed debug messages.
	* src/jtag.c (jtag_parse_line) <cable>: Added chain_disconnect() call before
		new cable connection.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@400 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 22 years ago
parent d75952bec4
commit 3e1b91019a

@ -1,3 +1,11 @@
2003-03-18 Marcel Telka <marcel@telka.sk>
* po/POTFILES.in: Added src/tap/parport/direct.c and src/tap/parport/ppdev.c.
* src/help.c (help) <cable>: Added help for `cable ppdev' command.
* src/tap/parport/ppdev.c (ppdev_open): Removed debug messages.
* src/jtag.c (jtag_parse_line) <cable>: Added chain_disconnect() call before
new cable connection.
2003-03-18 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_CHECK_HEADERS): Added test for linux/ppdev.h.

@ -3,4 +3,6 @@
src/help.c
src/jtag.c
src/tap/chain.c
src/tap/parport/direct.c
src/tap/parport/ppdev.c
src/tap/tap.c

@ -93,17 +93,19 @@ help( const char *cmd )
printf(
_("Usage: %s PORTADDR CABLE\n"
"Usage: %s DEV CABLE\n"
"Select JTAG cable connected to parallel port.\n"
"\n"
"PORTADDR parallel port address (e.g. 0x378)\n"
"CABLE cable type\n"
"DEV ppdev device (e.g. /dev/parport0)\n"
"\n"
"List of supported cables:\n"
"none No cable connected\n"), "cable parallel"
"%-14sNo cable connected\n"), "cable parallel", "cable ppdev", "none"
);
for (i = 0; cable_drivers[i]; i++)
printf( "%-14s%s\n", cable_drivers[i]->name, cable_drivers[i]->description );
printf( "%-14s%s\n", cable_drivers[i]->name, _(cable_drivers[i]->description) );
} else if (strcmp( cmd, "detect" ) == 0)
printf(
_("Usage: %s\n"

@ -220,6 +220,7 @@ jtag_parse_line( char *line )
return 1;
}
chain_disconnect( chain );
chain->cable = parport_drivers[i]->connect( params, numpar );
if (!chain->cable) {
printf( _("Error: Cable connection failed!\n") );

@ -167,9 +167,7 @@ ppdev_open( parport_t *parport )
{
ppdev_params_t *p = parport->params;
printf( "Opening port: %s\n", p->portname );
p->fd = open( p->portname, O_RDWR );
printf( "Result: %d\n", p->fd );
if (p->fd < 0)
return -1;

Loading…
Cancel
Save