Commit 3d59e0f6 authored by Antonio Borneo's avatar Antonio Borneo Committed by Tomas Vanek
Browse files

drivers/vsllink: add help and usage to commands



Change-Id: I4a8a68147011525191ca79e65fc3d7e760371ae1
Signed-off-by: default avatarAntonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5020


Tested-by: jenkins
Reviewed-by: default avatarTomas Vanek <vanekt@fbl.cz>
parent 84ca4995
...@@ -919,31 +919,43 @@ static const struct command_registration vsllink_command_handlers[] = { ...@@ -919,31 +919,43 @@ static const struct command_registration vsllink_command_handlers[] = {
.name = "vsllink_usb_vid", .name = "vsllink_usb_vid",
.handler = &vsllink_handle_usb_vid_command, .handler = &vsllink_handle_usb_vid_command,
.mode = COMMAND_CONFIG, .mode = COMMAND_CONFIG,
.help = "Set USB VID",
.usage = "<vid>",
}, },
{ {
.name = "vsllink_usb_pid", .name = "vsllink_usb_pid",
.handler = &vsllink_handle_usb_pid_command, .handler = &vsllink_handle_usb_pid_command,
.mode = COMMAND_CONFIG, .mode = COMMAND_CONFIG,
.help = "Set USB PID",
.usage = "<pid>",
}, },
{ {
.name = "vsllink_usb_serial", .name = "vsllink_usb_serial",
.handler = &vsllink_handle_usb_serial_command, .handler = &vsllink_handle_usb_serial_command,
.mode = COMMAND_CONFIG, .mode = COMMAND_CONFIG,
.help = "Set or disable check for USB serial",
.usage = "[<serial>]",
}, },
{ {
.name = "vsllink_usb_bulkin", .name = "vsllink_usb_bulkin",
.handler = &vsllink_handle_usb_bulkin_command, .handler = &vsllink_handle_usb_bulkin_command,
.mode = COMMAND_CONFIG, .mode = COMMAND_CONFIG,
.help = "Set USB input endpoint",
.usage = "<ep_in>",
}, },
{ {
.name = "vsllink_usb_bulkout", .name = "vsllink_usb_bulkout",
.handler = &vsllink_handle_usb_bulkout_command, .handler = &vsllink_handle_usb_bulkout_command,
.mode = COMMAND_CONFIG, .mode = COMMAND_CONFIG,
.help = "Set USB output endpoint",
.usage = "<ep_out>",
}, },
{ {
.name = "vsllink_usb_interface", .name = "vsllink_usb_interface",
.handler = &vsllink_handle_usb_interface_command, .handler = &vsllink_handle_usb_interface_command,
.mode = COMMAND_CONFIG, .mode = COMMAND_CONFIG,
.help = "Set USB output interface",
.usage = "<interface>",
}, },
COMMAND_REGISTRATION_DONE COMMAND_REGISTRATION_DONE
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment