Add wizard info and reformat.
[bertos.git] / bertos / drv / thermo.c
index fb8cbb7958ccda1bedc1a59444bcd58534118b18..621f3baaa5f0118add62a7dd803ae3c64be7b008 100644 (file)
  * \author Francesco Sacchi <batt@develer.com>
  */
 
-/*#*
- *#* $Log$
- *#* Revision 1.3  2006/09/20 20:12:41  marco
- *#* Names convention, MOD_* macros.
- *#*
- *#* Revision 1.2  2006/07/19 12:56:26  bernie
- *#* Convert to new Doxygen style.
- *#*
- *#* Revision 1.1  2005/11/04 17:59:47  bernie
- *#* Import into DevLib.
- *#*
- *#*/
-#include <thermo_map.h>
-#include <hw_thermo.h>
+#include "hw/thermo_map.h"
+#include "hw/hw_thermo.h"
 
-#include <drv/thermo.h>
-#include <drv/timer.h>
-#include <drv/ntc.h>
+#include "cfg/cfg_thermo.h"
 
+#include <cfg/module.h>
 #include <cfg/macros.h>
 #include <cfg/debug.h>
 
+#include <drv/thermo.h>
+#include <drv/timer.h>
+#include <drv/ntc.h>
+
 
-/** 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;
@@ -269,6 +256,6 @@ void thermo_init(void)
        MOD_INIT(thermo);
 
        timer_setDelay(&thermo_timer, ms_to_ticks(THERMO_INTERVAL_MS));
-       timer_set_event_softint(&thermo_timer, (Hook)thermo_softint, 0);
+       timer_setSoftint(&thermo_timer, (Hook)thermo_softint, 0);
        timer_add(&thermo_timer);
 }