summaryrefslogtreecommitdiff
path: root/src/flash/stellaris.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-31 09:38:20 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-31 09:38:20 +0000
commitfbe8cf72a5e6c80fed5fba8754d790ca63ad2b65 (patch)
treeb700b797a4a505e7926703e85724b1477712e5d4 /src/flash/stellaris.c
parent95e13054cafeeb13163d85822e4202e12007e1a7 (diff)
downloadopenocd+libswd-fbe8cf72a5e6c80fed5fba8754d790ca63ad2b65.tar.gz
openocd+libswd-fbe8cf72a5e6c80fed5fba8754d790ca63ad2b65.tar.bz2
openocd+libswd-fbe8cf72a5e6c80fed5fba8754d790ca63ad2b65.tar.xz
openocd+libswd-fbe8cf72a5e6c80fed5fba8754d790ca63ad2b65.zip
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
Diffstat (limited to 'src/flash/stellaris.c')
-rw-r--r--src/flash/stellaris.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/stellaris.c b/src/flash/stellaris.c
index 38ded4f1..001b0176 100644
--- a/src/flash/stellaris.c
+++ b/src/flash/stellaris.c
@@ -779,7 +779,7 @@ static int stellaris_write_block(struct flash_bank_s *bank, u8 *buffer, u32 offs
buf_set_u32(reg_params[2].value, 0, 32, 4*thisrun_count);
LOG_INFO("Algorithm flash write %i words to 0x%x, %i remaining", thisrun_count, address, wcount);
LOG_DEBUG("Algorithm flash write %i words to 0x%x, %i remaining", thisrun_count, address, wcount);
- if ((retval = target->type->run_algorithm(target, 0, NULL, 3, reg_params, write_algorithm->address, write_algorithm->address + sizeof(stellaris_write_code)-10, 10000, &armv7m_info)) != ERROR_OK)
+ if ((retval = target_run_algorithm(target, 0, NULL, 3, reg_params, write_algorithm->address, write_algorithm->address + sizeof(stellaris_write_code)-10, 10000, &armv7m_info)) != ERROR_OK)
{
LOG_ERROR("error executing stellaris flash write algorithm");
retval = ERROR_FLASH_OPERATION_FAILED;