From 113d9b9454d7dc3361ba34f5b6dacb0a655f6bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Sat, 11 Oct 2008 19:38:11 +0000 Subject: [PATCH] added remaining return values (Stanislav Sinyagin) git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1373 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 5 +++++ jtag/src/bus/ejtag.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 50d70004..8a61f8a8 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,8 @@ +2008-10-11 Arnim Laeuger + + * src/bus/ejtag.c (ejtag_bus_init): added remaining return values + (Stanislav Sinyagin) + 2008-09-27 Arnim Laeuger * include/jtag.h, src/cmd/detect.c, src/cmd/initbus.c, diff --git a/jtag/src/bus/ejtag.c b/jtag/src/bus/ejtag.c index 37096c86..3a65ca43 100644 --- a/jtag/src/bus/ejtag.c +++ b/jtag/src/bus/ejtag.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; } /**