The CommandProcessor is the interface to install a run-time menu into an embedded system.
Dependents: A_CANAdapter USB2I2C
Revision 5:a98bd1f2fd59, committed 2011-03-31
- Comitter:
- WiredHome
- Date:
- Thu Mar 31 00:33:18 2011 +0000
- Parent:
- 4:283e35536097
- Child:
- 6:1a0512faa75d
- Commit message:
- Added ? as a shortcut alternate to \Help\
Changed in this revision
CommandProcessor.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/CommandProcessor.c Fri Mar 25 11:38:05 2011 +0000 +++ b/CommandProcessor.c Thu Mar 31 00:33:18 2011 +0000 @@ -73,6 +73,7 @@ static RUNRESULT_T About(char *p); static CMD_T HelpMenu = {"Help", "Shows this help, 'Help ?' shows more details.", Help, visible}; +static CMD_T QuestionMenu = {"?", "Shows this help, '? ?' shows more details.", Help, visible}; static CMD_T AboutMenu = {"About", "About this CommandProcessor", About, visible}; static CMD_T ExitMenu = {"Exit", "Exits the program", Exit, visible}; @@ -343,6 +344,8 @@ if (buffer) { if (addDefaultMenu & 0x0004) + CommandProcessor.Add(&QuestionMenu); + if (addDefaultMenu & 0x0004) CommandProcessor.Add(&HelpMenu); if (addDefaultMenu & 0x0002) CommandProcessor.Add(&AboutMenu);