diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-17 08:34:14 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-17 08:34:14 +0000 |
commit | 44928321e6d4d67bcb3da7022ff9d23e0c8ee78b (patch) | |
tree | ea659ff38e179ee9b2513664a7dbf4958ba37e56 /src/flash | |
parent | 6af107855dd590a054b7bd610dadf3f7210c352c (diff) | |
download | openocd_libswd-44928321e6d4d67bcb3da7022ff9d23e0c8ee78b.tar.gz openocd_libswd-44928321e6d4d67bcb3da7022ff9d23e0c8ee78b.tar.bz2 openocd_libswd-44928321e6d4d67bcb3da7022ff9d23e0c8ee78b.tar.xz openocd_libswd-44928321e6d4d67bcb3da7022ff9d23e0c8ee78b.zip |
Charles Hardin <ckhardin@gmail.com> and Øyvind Harboe
This patch just uses the command.c interface to create tcl commands for the root level commands and avoids a bit of the "TCL" bleed into the rest of the openocd code.
Multilevel commands also supported.
git-svn-id: svn://svn.berlios.de/openocd/trunk@818 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/flash.c b/src/flash/flash.c index b51db58c..900fdbf9 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -188,7 +188,7 @@ int flash_init_drivers(struct command_context_s *cmd_ctx) { if (flash_banks) { - Jim_CreateCommand(interp, "flash_banks", Jim_Command_flash_banks, NULL, NULL ); + Jim_CreateCommand(interp, "openocd_flash_banks", Jim_Command_flash_banks, NULL, NULL ); register_command(cmd_ctx, flash_cmd, "info", handle_flash_info_command, COMMAND_EXEC, "print info about flash bank <num>"); |