target: add target async algorithm support
commitbee7184ce4bd2beb10fb29d1b6ba4e4b33f1c2ed
authorSpencer Oliver <spen@spen-soft.co.uk>
Fri, 10 Feb 2012 15:24:52 +0000 (10 15:24 +0000)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 26 Feb 2012 00:44:25 +0000 (26 00:44 +0000)
tree446b927c070a73140f2138f4e27a401e55bc1897
parentdec6b913809bd3f857af31be178ffde65e42dbab
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>
src/flash/nor/stm32f1x.c
src/target/target.c
src/target/target.h