From 11edf227768f41b2a96c0d26a871f9e5f89d259a Mon Sep 17 00:00:00 2001 From: zwelch Date: Sun, 31 May 2009 09:39:04 +0000 Subject: Add target_bulk_write_memory wrapper: - replaces all calls to target->type->bulk_write_memory. - add documentation in target_s to warn not to invoke callback directly. git-svn-id: svn://svn.berlios.de/openocd/trunk@1963 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/target.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/target/target.c') diff --git a/src/target/target.c b/src/target/target.c index 2209612c..4a60cc49 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -536,6 +536,12 @@ int target_write_memory(struct target_s *target, { return target->type->write_memory(target, address, size, count, buffer); } +int target_bulk_write_memory(struct target_s *target, + u32 address, u32 count, u8 *buffer) +{ + return target->type->bulk_write_memory(target, address, count, buffer); +} + int target_run_algorithm(struct target_s *target, int num_mem_params, mem_param_t *mem_params, -- cgit v1.2.3