X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Farduino-mega%2Ftemplates%2Fempty%2Fcfg%2Fcfg_pocketbus.h;fp=boards%2Farduino-mega%2Ftemplates%2Fempty%2Fcfg%2Fcfg_pocketbus.h;h=aa0b090bb1aadaf9d6e65197474c586bdd404465;hb=450741a2b0b851ba6f71cb6e87fd5f61fe311beb;hp=0000000000000000000000000000000000000000;hpb=fc82096bbc71c4197171bdfa33584df6b69038f6;p=bertos.git diff --git a/boards/arduino-mega/templates/empty/cfg/cfg_pocketbus.h b/boards/arduino-mega/templates/empty/cfg/cfg_pocketbus.h new file mode 100644 index 00000000..aa0b090b --- /dev/null +++ b/boards/arduino-mega/templates/empty/cfg/cfg_pocketbus.h @@ -0,0 +1,71 @@ +/** + * \file + * + * + * \brief Configuration file for pocketbus module. + * + * \author Daniele Basile + */ + +#ifndef CFG_POCKETBUS_H +#define CFG_POCKETBUS_H + +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define POCKETBUS_LOG_LEVEL LOG_LVL_ERR + +/** + * Module logging format. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#define POCKETBUS_LOG_FORMAT LOG_FMT_TERSE + + +/** + *Buffer len for pockebus protocol. + * $WIZ$ type = "int" + * $WIZ$ min = 2 + */ +#define CONFIG_POCKETBUS_BUFLEN 128 + +/** + * Command replay timeout in milliseconds. + * $WIZ$ type = "int" + */ +#define CONFIG_POCKETBUS_CMD_REPLY_TIMEOUT 50 + +#endif /* CFG_POCKETBUS_H */