X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Farduino%2Fbenchmark%2Farduino_kernel_footprint%2Fcfg%2Fcfg_xmodem.h;fp=boards%2Farduino%2Fbenchmark%2Farduino_kernel_footprint%2Fcfg%2Fcfg_xmodem.h;h=38db7359a17e9208be9c5c36e31be52aa76ad3fd;hb=a9694caa1505e6387d8976437d38b330499e18dc;hp=0000000000000000000000000000000000000000;hpb=f87390bf71f44a3ed9dc65c66128c5c6979655a9;p=bertos.git diff --git a/boards/arduino/benchmark/arduino_kernel_footprint/cfg/cfg_xmodem.h b/boards/arduino/benchmark/arduino_kernel_footprint/cfg/cfg_xmodem.h new file mode 100644 index 00000000..38db7359 --- /dev/null +++ b/boards/arduino/benchmark/arduino_kernel_footprint/cfg/cfg_xmodem.h @@ -0,0 +1,79 @@ +/** + * \file + * + * + * \brief Configuration file for xmodem module. + * + * \author Daniele Basile + */ + +#ifndef CFG_XMODEM_H +#define CFG_XMODEM_H + +/** + * Module logging level. + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define CONFIG_XMODEM_LOG_LEVEL LOG_LVL_ERR +/** + * Module logging format. + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#define CONFIG_XMODEM_LOG_FORMAT LOG_FMT_TERSE + + +/// Enable Rx. $WIZ$ type = "boolean" +#define CONFIG_XMODEM_RECV 1 + +/// Enable TX. $WIZ$ type = "boolean" +#define CONFIG_XMODEM_SEND 1 + +/// Allow a Rx/Tx of 1Kbyte block. $WIZ$ type = "boolean" +#define CONFIG_XMODEM_1KCRC 1 + +/** + * Max retries before giving up. + * $WIZ$ type = "int" + * $WIZ$ min = 1 + */ +#define CONFIG_XMODEM_MAXRETRIES 15 + +/** + * Max retries before switching to BCC. + * $WIZ$ type = "int" + * $WIZ$ min = 1 + */ +#define CONFIG_XMODEM_MAXCRCRETRIES 7 + +#endif /* CFG_XMODEM_H */ +