diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-02-18 15:41:38 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-02-18 15:41:38 +0000 |
commit | e7084a0c873c0fe4f89a4574bbe85c0014124fe2 (patch) | |
tree | 5e9cd13ae6d1871a425e8360b5438b7c4b287d2b /src/jtag | |
parent | d36abc1cd687fa8152644fcecb788d095f7296f7 (diff) | |
download | riscv-openocd-e7084a0c873c0fe4f89a4574bbe85c0014124fe2.zip riscv-openocd-e7084a0c873c0fe4f89a4574bbe85c0014124fe2.tar.gz riscv-openocd-e7084a0c873c0fe4f89a4574bbe85c0014124fe2.tar.bz2 |
- fix broken JTAG error handling
- Allow all commands to be executed during config stage
- Help now works for config commands
- make var args handling follow the rules more closely
Thanks Øyvind Harboe
git-svn-id: svn://svn.berlios.de/openocd/trunk@305 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag')
-rw-r--r-- | src/jtag/jtag.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index 11011a1..47031b7 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -1067,6 +1067,8 @@ int jtag_check_value(u8 *captured, void *priv, scan_field_t *field) free(captured_char); free(in_check_value_char); + + retval = ERROR_JTAG_QUEUE_FAILED; } } @@ -1310,7 +1312,7 @@ int jtag_register_commands(struct command_context_s *cmd_ctx) register_command(cmd_ctx, NULL, "jtag_speed", handle_jtag_speed_command, COMMAND_ANY, "set jtag speed (if supported) <speed>"); register_command(cmd_ctx, NULL, "jtag_device", handle_jtag_device_command, - COMMAND_CONFIG, NULL); + COMMAND_CONFIG, "jtag_device <ir_length> <ir_expected> <ir_mask>"); register_command(cmd_ctx, NULL, "reset_config", handle_reset_config_command, COMMAND_CONFIG, NULL); register_command(cmd_ctx, NULL, "jtag_nsrst_delay", handle_jtag_nsrst_delay_command, |