Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed_controller_demo
Fork of CMDB by
Diff: cmdb.h
- Revision:
- 9:dc9faec79298
- Parent:
- 8:83edd6addbd5
- Child:
- 10:05fea1780005
--- a/cmdb.h Fri Feb 11 10:51:08 2011 +0000
+++ b/cmdb.h Fri Feb 11 11:26:32 2011 +0000
@@ -212,6 +212,10 @@
*/
#define HIDDENSUB -3
+/** Predefined Dump Command.
+ */
+#define CID_COMMANDS 9989
+
/** Predefined Boot Command.
*/
#define CID_BOOT 9990
@@ -275,9 +279,17 @@
/** The Boot Command.
*
+ * @note: this command can be used to list all commands in Windows ini file format for host processing.
+ *
* Optional.
*/
-const cmd BOOT("Boot",GLOBALCMD,CID_BOOT,"","Boot");
+const cmd COMMANDS("Commands",GLOBALCMD,CID_COMMANDS,"","Dump Commands");
+
+/** The Boot Command.
+ *
+ * Optional.
+ */
+const cmd BOOT("Boot",GLOBALCMD,CID_BOOT,"","Boot mBed");
/** The Macro Command.
*
@@ -363,7 +375,7 @@
/** The Command Interpreter Version.
*/
-#define CMDB_VERSION 0.71
+#define CMDB_VERSION 0.72
//------------------------------------------------------------------------------
@@ -687,7 +699,11 @@
* @param ndx the index of the command in the command table.
* @param post trailing text.
*/
- void cmdhelp(char *pre, int ndx, char *post);
+ void cmd_help(char *pre, int ndx, char *post);
+
+ /** Dumps all commands in ini file format.
+ */
+ void cmd_dump();
/** memset wrapper.
*
