* \author Francesco Sacchi <batt@develer.com>
*/
-#include <hw/thermo_map.h>
-#include <hw/hw_thermo.h>
+#include "hw/thermo_map.h"
+#include "hw/hw_thermo.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>
-#include <cfg/macros.h>
-#include <cfg/debug.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;
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);
}