diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-04 13:14:07 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-04 13:14:07 +0000 |
commit | f133158175b568b9355e1bb3da159fd235723dec (patch) | |
tree | 72c3de1ff05ebacdff8f5b0371a7b90f0c403c45 /src/target/mips_ejtag.c | |
parent | 310a9eabff252327092a5d8981942c549cfeb2ae (diff) | |
download | riscv-openocd-f133158175b568b9355e1bb3da159fd235723dec.zip riscv-openocd-f133158175b568b9355e1bb3da159fd235723dec.tar.gz riscv-openocd-f133158175b568b9355e1bb3da159fd235723dec.tar.bz2 |
Introduce jtag_get_end_state() fn to clarify code a bit.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2049 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/mips_ejtag.c')
-rw-r--r-- | src/target/mips_ejtag.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/mips_ejtag.c b/src/target/mips_ejtag.c index 4e451ec..f9a6862 100644 --- a/src/target/mips_ejtag.c +++ b/src/target/mips_ejtag.c @@ -50,7 +50,7 @@ int mips_ejtag_set_instr(mips_ejtag_t *ejtag_info, int new_instr, void *delete_m - jtag_add_ir_scan(1, &field, jtag_add_end_state(TAP_INVALID)); + jtag_add_ir_scan(1, &field, jtag_get_end_state()); } return ERROR_OK; @@ -73,7 +73,7 @@ int mips_ejtag_get_idcode(mips_ejtag_t *ejtag_info, u32 *idcode) - jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_INVALID)); + jtag_add_dr_scan(1, &field, jtag_get_end_state()); if (jtag_execute_queue() != ERROR_OK) { @@ -100,7 +100,7 @@ int mips_ejtag_get_impcode(mips_ejtag_t *ejtag_info, u32 *impcode) - jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_INVALID)); + jtag_add_dr_scan(1, &field, jtag_get_end_state()); if (jtag_execute_queue() != ERROR_OK) { @@ -131,7 +131,7 @@ int mips_ejtag_drscan_32(mips_ejtag_t *ejtag_info, u32 *data) - jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_INVALID)); + jtag_add_dr_scan(1, &field, jtag_get_end_state()); if ((retval = jtag_execute_queue()) != ERROR_OK) { |