rename jtag_interface_{init,quit}()

These routines apply to non-JTAG debug adapters too.  To
reduce confusion, give them better (non-misleading) names.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
David Brownell
2010-03-14 13:13:39 -07:00
parent c23d4596d2
commit c25fda2c95
4 changed files with 21 additions and 18 deletions

View File

@@ -115,12 +115,12 @@ COMMAND_HANDLER(handle_init_command)
if (ERROR_OK != retval)
return ERROR_FAIL;
if ((retval = jtag_interface_init(CMD_CTX)) != ERROR_OK)
if ((retval = adapter_init(CMD_CTX)) != ERROR_OK)
{
/* we must be able to set up the jtag interface */
/* we must be able to set up the debug adapter */
return retval;
}
LOG_DEBUG("jtag interface init complete");
LOG_DEBUG("Debug Adapter init complete");
/* Try to initialize & examine the JTAG chain at this point,
* but continue startup regardless. Note that platforms
@@ -297,7 +297,7 @@ int openocd_main(int argc, char *argv[])
/* free commandline interface */
command_done(cmd_ctx);
jtag_interface_quit();
adapter_quit();
return ret;
}