aboutsummaryrefslogtreecommitdiff
path: root/src/target/target.h
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2012-02-10 15:24:52 +0000
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2012-02-26 00:44:25 +0000
commitbee7184ce4bd2beb10fb29d1b6ba4e4b33f1c2ed (patch)
tree446b927c070a73140f2138f4e27a401e55bc1897 /src/target/target.h
parentdec6b913809bd3f857af31be178ffde65e42dbab (diff)
target: add target async algorithm support
Currently the stm32f1x flash driver uses an asynchronous algorithm as part of the block flash programming. This greatly speeds up flash programming as the target is always running. Moving the async code to the target enable other targets to use this added functionality. Change-Id: I8e53f094c2ef7848a7f86ddb9a35b6edbfc8454a Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/402 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/target/target.h')
-rw-r--r--src/target/target.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/target/target.h b/src/target/target.h
index a5ab3bdd..9dc928fe 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -443,6 +443,18 @@ int target_wait_algorithm(struct target *target,
void *arch_info);
/**
+ * This routine is a wrapper for asynchronous algorithms.
+ *
+ */
+int target_run_flash_async_algorithm(struct target *target,
+ uint8_t *buffer, uint32_t count, int block_size,
+ int num_mem_params, struct mem_param *mem_params,
+ int num_reg_params, struct reg_param *reg_params,
+ uint32_t buffer_start, uint32_t buffer_size,
+ uint32_t entry_point, uint32_t exit_point,
+ void *arch_info);
+
+/**
* Read @a count items of @a size bytes from the memory of @a target at
* the @a address given.
*