added remaining return values (Stanislav Sinyagin)

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1373 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Arnim Läuger 16 years ago
parent 59ca99629f
commit 113d9b9454

@ -1,3 +1,8 @@
2008-10-11 Arnim Laeuger <arniml@users.sourceforge.net>
* src/bus/ejtag.c (ejtag_bus_init): added remaining return values
(Stanislav Sinyagin)
2008-09-27 Arnim Laeuger <arniml@users.sourceforge.net>
* include/jtag.h, src/cmd/detect.c, src/cmd/initbus.c,

@ -222,7 +222,7 @@ ejtag_run_pracc( bus_t *bus, const uint32_t *code, unsigned int len )
return retval;
}
static void
static int
ejtag_bus_init( bus_t *bus )
{
data_register *ejctrl, *ejimpl;
@ -238,7 +238,7 @@ ejtag_bus_init( bus_t *bus )
if (!(ejctrl && ejimpl)) {
printf( _("%s(%d) EJCONTROL or EJIMPCODE register not found\n"),
__FILE__, __LINE__ );
return;
return URJTAG_STATUS_FAIL;
}
part_set_instruction( PART, "EJTAG_IMPCODE" );
@ -300,7 +300,7 @@ ejtag_bus_init( bus_t *bus )
printf( _("%s(%d) Failed to enter debug mode, ctrl=%s\n"),
__FILE__, __LINE__,
register_get_string( ejctrl->out ) );
return;
return URJTAG_STATUS_FAIL;
}
if (ejctrl->out->data[Rocc]) {
@ -313,6 +313,7 @@ ejtag_bus_init( bus_t *bus )
ejtag_run_pracc( bus, code, 4 );
BP->adr_hi = 0;
INITIALIZED = 1;
return URJTAG_STATUS_OK;
}
/**

Loading…
Cancel
Save