diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-21 17:44:04 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-21 17:44:04 +0000 |
commit | 2f8c6015ba65c49a653de07d2f2c4de4df1d1a84 (patch) | |
tree | b8387f29ee0a75129b8246a065fc1c928718f76d /src | |
parent | 576b8a8a482a6cef25cccd713bbc781bb7f03806 (diff) | |
download | openocd_libswd-2f8c6015ba65c49a653de07d2f2c4de4df1d1a84.tar.gz openocd_libswd-2f8c6015ba65c49a653de07d2f2c4de4df1d1a84.tar.bz2 openocd_libswd-2f8c6015ba65c49a653de07d2f2c4de4df1d1a84.tar.xz openocd_libswd-2f8c6015ba65c49a653de07d2f2c4de4df1d1a84.zip |
delete unused code
git-svn-id: svn://svn.berlios.de/openocd/trunk@1878 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/helper/ioutil.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/helper/ioutil.c b/src/helper/ioutil.c index 1b2f9261..c07bd9b2 100644 --- a/src/helper/ioutil.c +++ b/src/helper/ioutil.c @@ -492,32 +492,6 @@ zylinjtag_Jim_Command_ls(Jim_Interp *interp, return JIM_OK; } -int handle_peek_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) -{ - if (argc != 1) - { - return ERROR_COMMAND_SYNTAX_ERROR; - } - unsigned long addr = strtoul(args[0], NULL, 0); - volatile unsigned *address = (volatile unsigned *)addr; - unsigned value = *address; - command_print(cmd_ctx, "0x%p : 0x%x", address, (int)value); - return ERROR_OK; -} - -int handle_poke_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) -{ - if (argc != 2) - { - return ERROR_INVALID_ARGUMENTS; - } - unsigned long addr = strtoul(args[0], NULL, 0); - volatile int *address = (volatile int *)addr; - int value=strtoul(args[1], NULL, 0); - *address=value; - return ERROR_OK; -} - static int zylinjtag_Jim_Command_peek(Jim_Interp *interp, int argc, |