Command line interface.
More...
#include "debug.h"
#include "date.h"
#include "temperature.h"
#include "program.h"
#include "queue.h"
Go to the source code of this file.
◆ MAX_CMD_LENGHT
| #define MAX_CMD_LENGHT 20 |
maximum chars a command is made of
◆ cmdli_exec()
Get a char from the users and echo it, compose the command line and, if an \r is entered, execute the command.
- Parameters
-
| c | input char, |
| cmdli | struct with the command line string, |
| progs | the programs structure, |
| debug | needed for printing things. |
◆ cmdli_free()
| void cmdli_free |
( |
struct cmdli_t * |
cmdli | ) |
|
Free the struct from memory.
◆ cmdli_help()
| void cmdli_help |
( |
struct debug_t * |
debug | ) |
|
◆ cmdli_init()
initialize the struct cli and allocate memory.