X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fthermo.c;h=621f3baaa5f0118add62a7dd803ae3c64be7b008;hb=00bc8478ab5087769fc67e52327934370ee5e3a6;hp=d8e2742e6843bb4287594d59f71b236098e311a3;hpb=3fb609d60480eefd5e43d48d13cb9f387c38cb0f;p=bertos.git diff --git a/bertos/drv/thermo.c b/bertos/drv/thermo.c index d8e2742e..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; @@ -259,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); }