X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Farduino%2Fbenchmark%2Fcontext_switch%2Fcfg%2Fcfg_thermo.h;fp=boards%2Farduino%2Fbenchmark%2Fcontext_switch%2Fcfg%2Fcfg_thermo.h;h=2734f8990b9c8a6bb98a11b8e13fa3364818caf1;hb=6dc643d3ebe28f30fb9a1c477f6ca09a0d81c038;hp=0000000000000000000000000000000000000000;hpb=366c02d6f05383863508ae721746fc12fe21c559;p=bertos.git diff --git a/boards/arduino/benchmark/context_switch/cfg/cfg_thermo.h b/boards/arduino/benchmark/context_switch/cfg/cfg_thermo.h new file mode 100644 index 00000000..2734f899 --- /dev/null +++ b/boards/arduino/benchmark/context_switch/cfg/cfg_thermo.h @@ -0,0 +1,71 @@ +/** + * \file + * + * + * \brief Configuration file for thermo module. + * + * \author Daniele Basile + */ + +#ifndef CFG_THERMO_H +#define CFG_THERMO_H + +/** + * Module logging level. + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define CONFIG_THERMO_LOG_LEVEL LOG_LVL_ERR +/** + * Module logging format. + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#define CONFIG_THERMO_LOG_FORMAT LOG_FMT_TERSE + + +/** + * Interval at which thermo control is performed [ms]. + * + * $WIZ$ type = "int" + * $WIZ$ min = 1 + */ +#define CONFIG_THERMO_INTERVAL_MS 100 + +/** + * Number of different samples we interpolate over to get the hifi temperature. + * + * $WIZ$ type = "int" + * $WIZ$ min = 1 + */ +#define CONFIG_THERMO_HIFI_NUM_SAMPLES 10 + +#endif /* CFG_THERMO_H */