[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Date: Wed, 13 Jan 2010 14:27:50 -0700
- From: rtwas at comcast.net (rtwas)
- Subject: RTEMS Shell
I'm wanting to add *multiple* user commands to Rtems Shell. The examples
how to add *one* command but do not show how to add *n* commands.
To the point, to add a single command (after defining the function) one
"#define CONFIGURE_SHELL_USER_COMMANDS &Shell_USERCMD_Command"
where "Shell_USERCMD_Command" is a structure describing the function.
way I can see to add multiple commands is to define separate structures
multiple pointers to the "CONFIGURE_SHELL_USER_COMMANDS" macro ie.,
"#define CONFIGURE_SHELL_USER_COMMANDS &Shell_USERCMD0_Command
or some how make use of the "next" entry in the "rtems_shell_cmd_t"
struct to create
a linked list of commands. The docs are not clear here.
Another question, can one put this is a separate "C" file? Many of the
macros are used to
simply initialize the the RTEMS Shell but that seems to want to be in
"main.c". The example
shows the user command text wrapped in:
along with things like:
- RTEMS Shell
- From: joel.sherrill at OARcorp.com (Joel Sherrill)