diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2010-03-14 13:13:39 -0700 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2010-03-14 13:13:39 -0700 |
commit | c25fda2c95f130d758c7784277fe5f2693ff3dd4 (patch) | |
tree | 1a69d29e168659cb21291e33fa1519a7058ef417 /src/openocd.c | |
parent | c23d4596d2239bdbba080499de837f53e0c89e59 (diff) | |
download | riscv-openocd-c25fda2c95f130d758c7784277fe5f2693ff3dd4.zip riscv-openocd-c25fda2c95f130d758c7784277fe5f2693ff3dd4.tar.gz riscv-openocd-c25fda2c95f130d758c7784277fe5f2693ff3dd4.tar.bz2 |
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>
Diffstat (limited to 'src/openocd.c')
-rw-r--r-- | src/openocd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openocd.c b/src/openocd.c index 4250434..d376f5f 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -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; } |