X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fsam3x-ek%2Fexamples%2Fsam3x-ek_sd_bootloader%2Fcfg%2Fcfg_parser.h;fp=boards%2Fsam3x-ek%2Fexamples%2Fsam3x-ek_sd_bootloader%2Fcfg%2Fcfg_parser.h;h=67e091a56b690da308b300d204047c61423b8738;hb=f6ba188a9210135158ae19075f8cd038aac4a6ad;hp=0000000000000000000000000000000000000000;hpb=930b5178f390b73b337ce9694fc3d8321a26e665;p=bertos.git diff --git a/boards/sam3x-ek/examples/sam3x-ek_sd_bootloader/cfg/cfg_parser.h b/boards/sam3x-ek/examples/sam3x-ek_sd_bootloader/cfg/cfg_parser.h new file mode 100644 index 00000000..67e091a5 --- /dev/null +++ b/boards/sam3x-ek/examples/sam3x-ek_sd_bootloader/cfg/cfg_parser.h @@ -0,0 +1,66 @@ +/** + * \file + * + * + * \brief Configuration file for parser module. + * + * \author Daniele Basile + */ + +#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 */ + + +