]> git.sur5r.net Git - openocd/commitdiff
use TAP_INVALID enum instead of -1
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 14 May 2009 21:00:30 +0000 (21:00 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 14 May 2009 21:00:30 +0000 (21:00 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1787 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/flash/str9xpec.c

index dc195c148fa1f5ef662a049a74f4ca0008e712b1..5e9f43898279f48804b6adf54386e20c0f9d6e2b 100644 (file)
@@ -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));