summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2012-02-15 15:38:06 -0800
committerVic Yang <victoryang@chromium.org>2012-02-18 13:37:53 +0800
commit0fefd25c0c7d6517f47aac2da974495f72312014 (patch)
treed67e0071040aa53f3b3922f2ca39cce6ed4e4617 /common/main.c
parent737fbbd032ef937b37f2e5e833fa52455aa19c64 (diff)
downloadchrome-ec-0fefd25c0c7d6517f47aac2da974495f72312014.tar.gz
Temperature polling and temporal correction
A temperature polling task is added to achieve temporal correction and also reduce the latency of reading temperature. Factor out sensor specific part to keep code clean. Signed-off-by: Vic Yang <victoryang@chromium.org> BUG=chrome-os-partner:7801 TEST=On link, 'temps' shows all temperature readings. Cover each sensor with hand and see object temperature rise. Compilation succeeded on bds/adv/daisy/discovery. Change-Id: I3c44c8b2e3ab2aa9ce640d3fc25e7fba56534b86
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c
index 7058aad009..f342bad9a0 100644
--- a/common/main.c
+++ b/common/main.c
@@ -30,6 +30,7 @@
#include "system.h"
#include "task.h"
#include "temp_sensor.h"
+#include "tmp006.h"
#include "timer.h"
#include "uart.h"
#include "usb_charge.h"