diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-18 11:38:23 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-18 11:38:23 +0000 |
commit | 60ba4476dfef5fae48b85d54e376a3ca27442113 (patch) | |
tree | d830eeb18a83b51cb23f3fb672cb0587c4d92804 /src/target | |
parent | 722fcb8d61e98be3ec2be73f26e8c9ab2136d70c (diff) | |
download | openocd_libswd-60ba4476dfef5fae48b85d54e376a3ca27442113.tar.gz openocd_libswd-60ba4476dfef5fae48b85d54e376a3ca27442113.tar.bz2 openocd_libswd-60ba4476dfef5fae48b85d54e376a3ca27442113.tar.xz openocd_libswd-60ba4476dfef5fae48b85d54e376a3ca27442113.zip |
- 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
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/interface/olimex-jtag-tiny-a.cfg | 8 | ||||
-rw-r--r-- | src/target/target.c | 5 |
2 files changed, 6 insertions, 7 deletions
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 <virtual address>"); register_command(cmd_ctx, NULL, "profile", handle_profile_command, COMMAND_EXEC, "PRELIMINARY! - profile <seconds> <gmon.out>"); - /* 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 |