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