forked from auracaster/openocd
Add target_run_algorithm wrapper:
- replaces all calls to target->type->run_algorithm. - add documentation in target_s to warn not to invoke callback directly. git-svn-id: svn://svn.berlios.de/openocd/trunk@1961 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -162,7 +162,7 @@ static int orion_nand_fast_block_write(struct nand_device_s *device, u8 *data, i
|
||||
buf_set_u32(reg_params[1].value, 0, 32, target_buf);
|
||||
buf_set_u32(reg_params[2].value, 0, 32, size);
|
||||
|
||||
retval = target->type->run_algorithm(target, 0, NULL, 3, reg_params,
|
||||
retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
|
||||
hw->copy_area->address,
|
||||
hw->copy_area->address + code_size - 4,
|
||||
1000, &algo);
|
||||
|
||||
Reference in New Issue
Block a user