shell: header file update
Minor formatting corrections in shell.h file. Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
parent
7ad59c84c8
commit
0c678fac9d
1 changed files with 88 additions and 88 deletions
|
@ -135,7 +135,7 @@ struct shell_static_entry {
|
|||
* @brief Macro for defining and adding a root command (level 0) with
|
||||
* arguments.
|
||||
*
|
||||
* @note Each root command shall have unique syntax.
|
||||
* @note All root commands must have different name.
|
||||
*
|
||||
* @param[in] syntax Command syntax (for example: history).
|
||||
* @param[in] subcmd Pointer to a subcommands array.
|
||||
|
@ -205,7 +205,7 @@ struct shell_static_entry {
|
|||
.help = (const char *)_help, \
|
||||
.handler = _handler, \
|
||||
.args = _mandatory ? \
|
||||
(&(struct shell_static_args) SHELL_ARG(_mandatory, _optional)) : NULL\
|
||||
(&(struct shell_static_args) SHELL_ARG(_mandatory, _optional)) : NULL \
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -389,7 +389,7 @@ struct shell_ctx {
|
|||
/*!< VT100 color and cursor position, terminal width.*/
|
||||
struct shell_vt100_ctx vt100_ctx;
|
||||
|
||||
u16_t cmd_buff_len;/*!< Command length.*/
|
||||
u16_t cmd_buff_len; /*!< Command length.*/
|
||||
u16_t cmd_buff_pos; /*!< Command buffer cursor position.*/
|
||||
|
||||
u16_t cmd_tmp_buff_len; /*!< Command length in tmp buffer.*/
|
||||
|
@ -470,7 +470,7 @@ extern void shell_print_stream(const void *user_ctx, const char *data,
|
|||
true, shell_print_stream); \
|
||||
LOG_INSTANCE_REGISTER(shell, _name, CONFIG_SHELL_LOG_LEVEL); \
|
||||
SHELL_STATS_DEFINE(_name); \
|
||||
static K_THREAD_STACK_DEFINE(_name##_stack, CONFIG_SHELL_STACK_SIZE);\
|
||||
static K_THREAD_STACK_DEFINE(_name##_stack, CONFIG_SHELL_STACK_SIZE); \
|
||||
static struct k_thread _name##_thread; \
|
||||
static const struct shell _name = { \
|
||||
.prompt = _name##prompt, \
|
||||
|
@ -555,11 +555,11 @@ int shell_stop(const struct shell *shell);
|
|||
#define SHELL_ERROR SHELL_VT100_COLOR_RED
|
||||
|
||||
/**
|
||||
* @brief Printf-like function which sends formatted data stream to the shell.
|
||||
* @brief printf-like function which sends formatted data stream to the shell.
|
||||
* This function shall not be used outside of the shell command context.
|
||||
*
|
||||
* @param[in] shell Pointer to the shell instance.
|
||||
* @param[in] color Printf color.
|
||||
* @param[in] color Printed text color.
|
||||
* @param[in] p_fmt Format string.
|
||||
* @param[in] ... List of parameters to print.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue