From: asterix Date: Fri, 6 Feb 2009 16:53:47 +0000 (+0000) Subject: Add cfg for thermo and add wizard info. X-Git-Tag: 2.1.0~371 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=e6698dd93b44786a6d81fb527a74342f151e248f;p=bertos.git Add cfg for thermo and add wizard info. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2311 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cfg/cfg_thermo.h b/bertos/cfg/cfg_thermo.h new file mode 100644 index 00000000..4e1e1acf --- /dev/null +++ b/bertos/cfg/cfg_thermo.h @@ -0,0 +1,52 @@ +/** + * \file + * + * + * \brief Configuration file for thermo module. + * + * \version $Id$ + * \author Daniele Basile + */ + +#ifndef CFG_THERMO_H +#define CFG_THERMO_H + +/// Interval at which thermo control is performed. $WIZARD = { "type" : "int" } +#define THERMO_INTERVAL_MS 100 + +/** + * Number of different samples we interpolate over to get the hifi temperature. + * + * $WIZARD = { "type" : "int" } + */ +#define THERMO_HIFI_NUM_SAMPLES 10 + +#endif /* CFG_THERMO_H */ diff --git a/bertos/drv/thermo.c b/bertos/drv/thermo.c index db395210..621f3baa 100644 --- a/bertos/drv/thermo.c +++ b/bertos/drv/thermo.c @@ -41,6 +41,8 @@ #include "hw/thermo_map.h" #include "hw/hw_thermo.h" +#include "cfg/cfg_thermo.h" + #include #include #include @@ -51,11 +53,6 @@ -/** Interval at which thermo control is performed. */ -#define THERMO_INTERVAL_MS 100 - -/** Number of different samples we interpolate over to get the hifi temperature. */ -#define THERMO_HIFI_NUM_SAMPLES 10 /** Timer for thermo-regulation. */ static Timer thermo_timer; diff --git a/bertos/drv/thermo.h b/bertos/drv/thermo.h index 9fc20e0d..cb44d399 100644 --- a/bertos/drv/thermo.h +++ b/bertos/drv/thermo.h @@ -26,11 +26,11 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. * - * Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/) + * Copyright 2004, 2005, 2009 Develer S.r.l. (http://www.develer.com/) * * --> * - * \brief Thermo-control driver + * \brief Thermo-control driver. * * \version $Id$ * @@ -47,6 +47,11 @@ * of the black box). This low-level driver also controls the units in which the temperature * is expressed: thermo control treats it just as a number. * + * $WIZARD_MODULE = { + * "name" : "thermo", + * "depends" : ["timer", "ntc"], + * "configuration" : "bertos/cfg/cfg_thermo.h" + * } */ #ifndef DRV_THERMO_H