X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Flpc-p2378%2Ftemplates%2Fkernel%2Fcfg%2Fcfg_thermo.h;fp=boards%2Flpc-p2378%2Ftemplates%2Fkernel%2Fcfg%2Fcfg_thermo.h;h=2734f8990b9c8a6bb98a11b8e13fa3364818caf1;hb=c4c3ad2edbffae2b04e5d22d6fa3fa5de6feeb68;hp=0000000000000000000000000000000000000000;hpb=b99421f706c4f6978a6d399cba3bf4d9a383cb2c;p=bertos.git diff --git a/boards/lpc-p2378/templates/kernel/cfg/cfg_thermo.h b/boards/lpc-p2378/templates/kernel/cfg/cfg_thermo.h new file mode 100644 index 00000000..2734f899 --- /dev/null +++ b/boards/lpc-p2378/templates/kernel/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 */