summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 13:14:07 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 13:14:07 +0000
commitf133158175b568b9355e1bb3da159fd235723dec (patch)
tree72c3de1ff05ebacdff8f5b0371a7b90f0c403c45 /src/flash
parent310a9eabff252327092a5d8981942c549cfeb2ae (diff)
downloadopenocd_libswd-f133158175b568b9355e1bb3da159fd235723dec.tar.gz
openocd_libswd-f133158175b568b9355e1bb3da159fd235723dec.tar.bz2
openocd_libswd-f133158175b568b9355e1bb3da159fd235723dec.tar.xz
openocd_libswd-f133158175b568b9355e1bb3da159fd235723dec.zip
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/flash')
-rw-r--r--src/flash/str9xpec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/flash/str9xpec.c b/src/flash/str9xpec.c
index d50efccc..947903b3 100644
--- a/src/flash/str9xpec.c
+++ b/src/flash/str9xpec.c
@@ -539,7 +539,7 @@ static int str9xpec_lock_device(struct flash_bank_s *bank)
field.out_value = NULL;
field.in_value = &status;
- jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_INVALID));
+ jtag_add_dr_scan(1, &field, jtag_get_end_state());
jtag_execute_queue();
} while(!(status & ISC_STATUS_BUSY));
@@ -620,7 +620,7 @@ static int str9xpec_set_address(struct flash_bank_s *bank, u8 sector)
field.out_value = &sector;
field.in_value = NULL;
- jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_INVALID));
+ jtag_add_dr_scan(1, &field, jtag_get_end_state());
return ERROR_OK;
}
@@ -717,7 +717,7 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32
field.out_value = NULL;
field.in_value = scanbuf;
- jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_INVALID));
+ jtag_add_dr_scan(1, &field, jtag_get_end_state());
jtag_execute_queue();
status = buf_get_u32(scanbuf, 0, 8);
@@ -767,7 +767,7 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32
field.out_value = NULL;
field.in_value = scanbuf;
- jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_INVALID));
+ jtag_add_dr_scan(1, &field, jtag_get_end_state());
jtag_execute_queue();
status = buf_get_u32(scanbuf, 0, 8);
@@ -959,7 +959,7 @@ static int str9xpec_write_options(struct flash_bank_s *bank)
field.out_value = NULL;
field.in_value = &status;
- jtag_add_dr_scan(1, &field, jtag_add_end_state(TAP_INVALID));
+ jtag_add_dr_scan(1, &field, jtag_get_end_state());
jtag_execute_queue();
} while(!(status & ISC_STATUS_BUSY));