diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-14 21:00:30 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-14 21:00:30 +0000 |
commit | adf3a2ce7ba7cc96d1202a3d8bb086fd78d697ad (patch) | |
tree | a8ae876d40142a9a41dfd0e2c4caf9ae71eca110 /src | |
parent | b3b0ff60c26baf1a82a00f288ae59e3baf503172 (diff) | |
download | openocd_libswd-adf3a2ce7ba7cc96d1202a3d8bb086fd78d697ad.tar.gz openocd_libswd-adf3a2ce7ba7cc96d1202a3d8bb086fd78d697ad.tar.bz2 openocd_libswd-adf3a2ce7ba7cc96d1202a3d8bb086fd78d697ad.tar.xz openocd_libswd-adf3a2ce7ba7cc96d1202a3d8bb086fd78d697ad.zip |
use TAP_INVALID enum instead of -1
git-svn-id: svn://svn.berlios.de/openocd/trunk@1787 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/flash/str9xpec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/flash/str9xpec.c b/src/flash/str9xpec.c index dc195c14..5e9f4389 100644 --- a/src/flash/str9xpec.c +++ b/src/flash/str9xpec.c @@ -572,7 +572,7 @@ static int str9xpec_lock_device(struct flash_bank_s *bank) - jtag_add_dr_scan(1, &field, -1); + jtag_add_dr_scan(1, &field, TAP_INVALID); jtag_execute_queue(); } while(!(status & ISC_STATUS_BUSY)); @@ -658,7 +658,7 @@ static int str9xpec_set_address(struct flash_bank_s *bank, u8 sector) - jtag_add_dr_scan(1, &field, -1); + jtag_add_dr_scan(1, &field, TAP_INVALID); return ERROR_OK; } @@ -765,7 +765,7 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 - jtag_add_dr_scan(1, &field, -1); + jtag_add_dr_scan(1, &field, TAP_INVALID); jtag_execute_queue(); status = buf_get_u32(scanbuf, 0, 8); @@ -825,7 +825,7 @@ static int str9xpec_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 - jtag_add_dr_scan(1, &field, -1); + jtag_add_dr_scan(1, &field, TAP_INVALID); jtag_execute_queue(); status = buf_get_u32(scanbuf, 0, 8); @@ -1032,7 +1032,7 @@ static int str9xpec_write_options(struct flash_bank_s *bank) - jtag_add_dr_scan(1, &field, -1); + jtag_add_dr_scan(1, &field, TAP_INVALID); jtag_execute_queue(); } while(!(status & ISC_STATUS_BUSY)); |