From 60ba4476dfef5fae48b85d54e376a3ca27442113 Mon Sep 17 00:00:00 2001 From: ntfreak Date: Fri, 18 Jul 2008 11:38:23 +0000 Subject: - fix incorrectly registered function openocd_array2mem - removed unused variables - reformatted lpc288x.[ch] - fixed helper/Makefile.am dependencies - add correct svn props to added files git-svn-id: svn://svn.berlios.de/openocd/trunk@829 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/interface/olimex-jtag-tiny-a.cfg | 8 ++++---- src/target/target.c | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'src/target') diff --git a/src/target/interface/olimex-jtag-tiny-a.cfg b/src/target/interface/olimex-jtag-tiny-a.cfg index c3196fa6..04e1d5b6 100644 --- a/src/target/interface/olimex-jtag-tiny-a.cfg +++ b/src/target/interface/olimex-jtag-tiny-a.cfg @@ -1,4 +1,4 @@ -# REFERENCE: http://www.olimex.com/dev/arm-usb-tiny.html -interface ft2232 -ft2232_device_desc "Olimex OpenOCD JTAG TINY A" -ft2232_layout olimex-jtag +# REFERENCE: http://www.olimex.com/dev/arm-usb-tiny.html +interface ft2232 +ft2232_device_desc "Olimex OpenOCD JTAG TINY A" +ft2232_layout olimex-jtag diff --git a/src/target/target.c b/src/target/target.c index dd16c2bd..1c3e0ad2 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -949,10 +949,9 @@ int target_register_commands(struct command_context_s *cmd_ctx) register_command(cmd_ctx, NULL, "virt2phys", handle_virt2phys_command, COMMAND_ANY, "virt2phys "); register_command(cmd_ctx, NULL, "profile", handle_profile_command, COMMAND_EXEC, "PRELIMINARY! - profile "); - /* script procedures */ register_jim(cmd_ctx, "openocd_mem2array", jim_mem2array, "read memory and return as a TCL array for script processing"); - register_jim(cmd_ctx, "openocd_array2mem", jim_mem2array, "convert a TCL array to memory locations and write the values"); + register_jim(cmd_ctx, "openocd_array2mem", jim_array2mem, "convert a TCL array to memory locations and write the values"); return ERROR_OK; } @@ -2863,7 +2862,7 @@ static int jim_array2mem(Jim_Interp *interp, int argc, Jim_Obj *const *argv) u32 v; const char *varname; u8 buffer[4096]; - int i, n, e, retval; + int i, n, e, retval; /* argv[1] = name of array to get the data * argv[2] = desired width -- cgit v1.2.3