#ifndef CFG_PARSER_H
#define CFG_PARSER_H
+/**
+ * Max number of arguments and results for each command
+ * $WIZ$ type = "int"
+ * $WIZ$ min = 0
+ */
+#define CONFIG_PARSER_MAX_ARGS 4
+
+/**
+ * Max number of commands
+ * $WIZ$ type = "int"
+ * $WIZ$ min = 8
+ */
+#define CONFIG_MAX_COMMANDS_NUMBER 16
+/**
+ * Enable compatibility behaviour.
+ *
+ * Skip the first word from incoming commands. Don't enable in new projects.
+ * $WIZ$ type = "boolean"
+ */
+#define CONFIG_ENABLE_COMPAT_BEHAVIOUR 1
#endif /* CFG_PARSER_H */
#include "hw/hw_input.h"
+#include "cfg/cfg_parser.h"
+#include <cfg/compiler.h>
+#include <cfg/debug.h>
+
#include <drv/adc.h>
#include <drv/timer.h>
#include <drv/ser.h>
#include <mware/readline.h>
#include <mware/parser.h>
-#include <cfg/compiler.h>
-#include <cfg/debug.h>
-
#include <io/kfile.h>
#include <stdlib.h>
return;
}
- parms args[PARSER_MAX_ARGS];
+ parms args[CONFIG_PARSER_MAX_ARGS];
/* Args Check. TODO: Handle different case. see doc/PROTOCOL . */
if (!parser_get_cmd_arguments(buf, templ, args))