The CommandProcessor is the interface to install a run-time menu into an embedded system.

Dependents:   A_CANAdapter USB2I2C

Revision:
5:a98bd1f2fd59
Parent:
0:198f53da1bc8
Child:
6:1a0512faa75d
--- 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);