diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2010-01-09 22:14:08 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2010-01-09 22:14:08 -0800 |
commit | 5cb1dcfad34aab7de64ef85f6227f28f3711dd85 (patch) | |
tree | fad244fe873db37f2f01ba6781dd663135f0e814 /src | |
parent | 0811f6b192674788a00e02fbbfe29e0a2a138ea2 (diff) | |
download | openocd+libswd-5cb1dcfad34aab7de64ef85f6227f28f3711dd85.tar.gz openocd+libswd-5cb1dcfad34aab7de64ef85f6227f28f3711dd85.tar.bz2 openocd+libswd-5cb1dcfad34aab7de64ef85f6227f28f3711dd85.tar.xz openocd+libswd-5cb1dcfad34aab7de64ef85f6227f28f3711dd85.zip |
ZY1000 help/usage fixups
The usual: same EBNF as in the User's Guide, full sentence helptext,
function names *are* their addresses.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/zy1000/zy1000.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/jtag/zy1000/zy1000.c b/src/jtag/zy1000/zy1000.c index 7c5f4407..e66a8b5a 100644 --- a/src/jtag/zy1000/zy1000.c +++ b/src/jtag/zy1000/zy1000.c @@ -832,29 +832,32 @@ void embeddedice_write_dcc(struct jtag_tap *tap, int reg_addr, uint8_t *buffer, static const struct command_registration zy1000_commands[] = { { .name = "power", - .handler = &handle_power_command, + .handler = handle_power_command, .mode = COMMAND_ANY, - .help = "turn power switch to target on/off. No arguments - print status.", - .usage = "power <on/off>", + .help = "Turn power switch to target on/off. " + "With no arguments, prints status.", + .usage = "('on'|'off)", }, { .name = "zy1000_version", .mode = COMMAND_ANY, - .jim_handler = &jim_zy1000_version, - .help = "print version info for zy1000", + .jim_handler = jim_zy1000_version, + .help = "Print version info for zy1000.", + .usage = "['openocd'|'zy1000'|'date'|'time'|'pcb'|'fpga']", }, { .name = "powerstatus", .mode = COMMAND_ANY, - .jim_handler = & zylinjtag_Jim_Command_powerstatus, - .help = "print power status of target", + .jim_handler = zylinjtag_Jim_Command_powerstatus, + .help = "Returns power status of target", }, #ifdef CYGPKG_HAL_NIOS2 { .name = "updatezy1000firmware", .mode = COMMAND_ANY, - .jim_handler = &jim_zy1000_writefirmware, + .jim_handler = jim_zy1000_writefirmware, .help = "writes firmware to flash", + /* .usage = "some_string", */ }, #endif COMMAND_REGISTRATION_DONE |