aboutsummaryrefslogtreecommitdiff
path: root/src/hello.c
AgeCommit message (Collapse)AuthorFilesLines
2010-01-08Doc/examples: clarify usage messagesDavid Brownell1-4/+4
Update/bugfix the "hello" example; emphasize using EBNF syntax, matching the User's Guide. Correct the Texinfo style guide to say EBNF, not BNF. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-03change #include "log.h" to <helper/log.h>Zachary T Welch1-1/+1
Changes from the flat namespace to heirarchical one. Instead of writing: #include "log.h" the following form should be used. #include <helper/log.h> The exception is from .c files in the same directory.
2009-11-30fix foo command group help messagesZachary T Welch1-3/+6
Splits the old help strings to provide proper usage as well.
2009-11-25improve command handling examplesZachary T Welch1-1/+1
Removes hello and foo commands from top-level registration. Instead, the dummy interface driver and faux flash driver have been augmented to register these commands as sub-commands.
2009-11-24demonstrate chaining with foo commandsZachary T Welch1-12/+7
Use the new command registration chaining capabilities to eliminate the foo_register_commands helper, folding its remaining command handler setup into the hello_command_handlers registration array.
2009-11-24hello: use register_commands()Zachary T Welch1-16/+36
Use new register_commands() with command registration table.
2009-11-24use COMMAND_REGISTER macroZachary T Welch1-5/+5
Replaces direct calls to register_command() with a macro, to allow its parameters to be changed and callers updated in phases.
2009-11-18update src/hello.c with parsing examplesZachary T Welch1-1/+54
Adds the foo/bar commands to provide more working examples of command argument parsing, including the new handle_command_parse_bool helper. Updates hello command help text to provide useful information.
2009-11-17command_handler: change 'cmd_ctx' to CMD_CTXZachary T Welch1-1/+1
Convert all command handler 'cmd_ctx' parameter usage with CMD_CTX.
2009-11-17command_handler: change 'args' to CMD_ARGVZachary T Welch1-1/+1
This patch converts all instances of 'args' in COMMAND_HANDLER routines to use CMD_ARGV macro.
2009-11-17command_handler: change to 'argc' to CMD_ARGCZachary T Welch1-2/+2
This patch converts all instances of 'argc' in COMMAND_HANDLER routines to use CMD_ARGC.
2009-11-13command_t -> struct commandZachary T Welch1-1/+1
Remove misleading typedef and redundant suffix from struct command.
2009-11-13command_context_t -> struct command_contextZachary T Welch1-1/+1
Remove misleading typedef and redundant suffix from struct command_context.
2009-11-13add src/hello.c to augment new command tutorialZachary T Welch1-0/+57
The hello module provides the 'hello' command, printing a greetings to the command console. It can grow to serve as pedagogical example of services that OpenOCD developers should use: a runnable style guide.