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.
Dependencies: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/CommandParser/cmd.cpp
- Revision:
- 111:d31b3a347e6a
- Parent:
- 109:bb4ef6a4bd0a
diff -r 1e1b7c733880 -r d31b3a347e6a src/CommandParser/cmd.cpp
--- a/src/CommandParser/cmd.cpp Thu Sep 22 15:16:55 2016 +0000
+++ b/src/CommandParser/cmd.cpp Thu Sep 22 16:12:12 2016 +0000
@@ -62,6 +62,7 @@
{"cof", "create a test output file", cmd_cof },
{"create-manual", "create a manual control", cmd_createManual },
{"create-setpoint", "create a setpoint control", cmd_createSetpoint },
+ {"create-timer", "create a timer control", cmd_createTimer },
{"destroy-control", "destroy a control", cmd_destroy },
{"heap", "show heap statistics", cmd_heap },
{"help", "help command", cmd_help },
@@ -436,6 +437,15 @@
return;
}
+void cmd_createTimer(int argc, char **argv)
+{
+ if ( argc != 8 ) {
+ printf("\rusage: create-timer <filename> <id> <dow> <startw> <output> <starttime> <duration>\n");
+ printf("\rexample: create-timer control_tm_1.json tm-1 135 52 o_rly5 1235 60\r\n");
+ return;
+ }
+}
+
/*****************************************************************************
* Function: cmd_createManual
* Description: create a manual control
