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:
- 66:db1425574b58
- Parent:
- 65:be025ac18fb5
- Child:
- 67:49f266601d83
--- a/src/CommandParser/cmd.cpp Thu Sep 15 21:45:29 2016 +0000 +++ b/src/CommandParser/cmd.cpp Thu Sep 15 22:26:28 2016 +0000 @@ -35,6 +35,7 @@ #include "ntopt.h" #include "global.h" #include "ConfigurationHandler.h" +#include "OutputTask.h" #include "mDot.h" #include "rtos.h" #include "rtc.h" @@ -64,6 +65,7 @@ {"ls", "list user files", cmd_ls }, {"modify", "modify a control", cmd_modify }, {"modmap", "dump modbus register map", cmd_modmap }, + {"outputs", "dump outputs", cmd_outputs }, {"reset", "reset the controller", cmd_reset }, {"reset-stats", "reset current mDot statistics", cmd_resetStats }, {"rm", "remove a user file", cmd_rm }, @@ -688,4 +690,16 @@ int iyr=0, imo=0, idy=0, ihr=0, imn=0, isc=0; rtc_get_time(&iyr, &imo, &idy, &ihr, &imn, &isc); printf("%04d-%02d-%02d %02d:%02d:%02d\r\n", iyr, imo, idy, ihr, imn, isc); +} + +/***************************************************************************** + * Function: cmd_time + * Description: display outputs + ****************************************************************************/ +void cmd_outputs(int argc, char **argv) +{ + UNUSED(argc); + UNUSED(argv); + + DisplayOutputs(); } \ No newline at end of file