Add target_write_memory wrapper:
- replaces all calls to target->type->write_memory. - add documentation in target_s to warn not to invoke callback directly. git-svn-id: svn://svn.berlios.de/openocd/trunk@1960 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -406,7 +406,7 @@ static int lpc288x_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32
|
||||
* it seems not to be a LOT slower....
|
||||
* bulk_write_memory() is no quicker :(*/
|
||||
#if 1
|
||||
if (target->type->write_memory(target, offset + dest_offset, 4, 128, page_buffer) != ERROR_OK)
|
||||
if (target_write_memory(target, offset + dest_offset, 4, 128, page_buffer) != ERROR_OK)
|
||||
{
|
||||
LOG_ERROR("Write failed s %x p %x", sector, page);
|
||||
return ERROR_FLASH_OPERATION_FAILED;
|
||||
|
||||
Reference in New Issue
Block a user