X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Farduino%2Fbenchmark%2Farduino_kernel_footprint%2Fcfg%2Fcfg_pocketbus.h;fp=boards%2Farduino%2Fbenchmark%2Farduino_kernel_footprint%2Fcfg%2Fcfg_pocketbus.h;h=aa0b090bb1aadaf9d6e65197474c586bdd404465;hb=a9694caa1505e6387d8976437d38b330499e18dc;hp=0000000000000000000000000000000000000000;hpb=f87390bf71f44a3ed9dc65c66128c5c6979655a9;p=bertos.git diff --git a/boards/arduino/benchmark/arduino_kernel_footprint/cfg/cfg_pocketbus.h b/boards/arduino/benchmark/arduino_kernel_footprint/cfg/cfg_pocketbus.h new file mode 100644 index 00000000..aa0b090b --- /dev/null +++ b/boards/arduino/benchmark/arduino_kernel_footprint/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 */