X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=boards%2Farduino%2Ftemplates%2Fempty%2Fcfg%2Fcfg_thermo.h;fp=boards%2Farduino%2Ftemplates%2Fempty%2Fcfg%2Fcfg_thermo.h;h=2734f8990b9c8a6bb98a11b8e13fa3364818caf1;hb=b73ab8af789a79c3beebf051f690a9eed4ddacd0;hp=0000000000000000000000000000000000000000;hpb=faae9ad02b287bebe157a2fbe984a754cf217c9a;p=bertos.git diff --git a/boards/arduino/templates/empty/cfg/cfg_thermo.h b/boards/arduino/templates/empty/cfg/cfg_thermo.h new file mode 100644 index 00000000..2734f899 --- /dev/null +++ b/boards/arduino/templates/empty/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 */