projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
command_handler: change 'cmd_ctx' to CMD_CTX
[fw/openocd]
/
src
/
pld
/
virtex2.c
diff --git
a/src/pld/virtex2.c
b/src/pld/virtex2.c
index a6587ddc296f6082e6410883f2df98c38b30f972..e8fe63b1d2ad51d2e46a245c67a2b91b93c6075e 100644
(file)
--- a/
src/pld/virtex2.c
+++ b/
src/pld/virtex2.c
@@
-185,16
+185,16
@@
COMMAND_HANDLER(virtex2_handle_read_stat_command)
if (CMD_ARGC < 1)
{
if (CMD_ARGC < 1)
{
- command_print(
cmd_ctx
, "usage: virtex2 read_stat <num>");
+ command_print(
CMD_CTX
, "usage: virtex2 read_stat <num>");
return ERROR_OK;
}
unsigned dev_id;
return ERROR_OK;
}
unsigned dev_id;
- COMMAND_PARSE_NUMBER(uint,
args
[0], dev_id);
+ COMMAND_PARSE_NUMBER(uint,
CMD_ARGV
[0], dev_id);
device = get_pld_device_by_num(dev_id);
if (!device)
{
device = get_pld_device_by_num(dev_id);
if (!device)
{
- command_print(
cmd_ctx, "pld device '#%s' is out of bounds", args
[0]);
+ command_print(
CMD_CTX, "pld device '#%s' is out of bounds", CMD_ARGV
[0]);
return ERROR_OK;
}
return ERROR_OK;
}
@@
-202,7
+202,7
@@
COMMAND_HANDLER(virtex2_handle_read_stat_command)
virtex2_read_stat(device, &status);
virtex2_read_stat(device, &status);
- command_print(
cmd_ctx
, "virtex2 status register: 0x%8.8" PRIx32 "", status);
+ command_print(
CMD_CTX
, "virtex2 status register: 0x%8.8" PRIx32 "", status);
return ERROR_OK;
}
return ERROR_OK;
}
@@
-219,9
+219,9
@@
PLD_DEVICE_COMMAND_HANDLER(virtex2_pld_device_command)
return ERROR_PLD_DEVICE_INVALID;
}
return ERROR_PLD_DEVICE_INVALID;
}
- tap = jtag_tap_by_string(
args
[1]);
+ tap = jtag_tap_by_string(
CMD_ARGV
[1]);
if (tap == NULL) {
if (tap == NULL) {
- command_print(
cmd_ctx, "Tap: %s does not exist", args
[1]);
+ command_print(
CMD_CTX, "Tap: %s does not exist", CMD_ARGV
[1]);
return ERROR_OK;
}
return ERROR_OK;
}