Files
OpenCellular/include
Randall Spangler 0b6b6b7754 Refactor TMP006 module
1) Use floating-point more freely, since it's on all the time now, and
the old fixed-point code no longer compiled.

2) Sensitivity and Bn values are now in a RAM-based struct in
preparation for setting them at runtime.  No changes from current
values.

3) If a sensor fails to read good data, is initialized, or loses
power, its die temperature history will be set to the next good
temperature, rather than persisting an arbitrary start value or old
state.  This fixes reading wildly inaccurate object temperatures for
the first few seconds following boot/resume.

4) If a sensor loses power, wait for the sensor to report data-ready
before reading temperature/voltage.  Otherwise, those read as 0, which
again throws off the first few seconds of data.

BUG=chrome-os-partner:14955
BRANCH=link

TEST=Boot system and set at login screen for a minute to reach thermal
equilibrium.  Then reboot system, type 'temps' repeatedly.  Data from
TMP006's should initially be Error; after a second or so it should be
good, and shouldn't change more than a few degrees.

Change-Id: Id0b42b9b18e94978ba7d3a1ee33194e44b1904bc
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/35188
2012-10-11 10:06:54 -07:00
..
2012-09-26 08:58:59 -07:00
2012-04-19 11:08:28 -07:00
2011-12-07 19:10:02 +00:00
2012-07-10 14:56:05 -07:00
2012-08-27 12:16:10 -07:00
2012-08-29 18:16:46 -07:00
2012-06-29 10:46:22 -07:00
2012-05-31 15:03:17 -07:00
2012-01-11 11:37:55 -08:00
2012-06-07 09:59:55 -07:00
2012-07-12 18:22:24 -07:00
2011-12-07 19:10:02 +00:00
2012-04-19 13:08:58 -07:00
2012-09-21 14:54:33 -07:00
2011-12-07 19:10:02 +00:00
2012-07-30 13:41:33 -07:00
2012-08-09 17:40:37 -07:00
2012-09-09 11:00:34 -07:00
2012-10-11 10:06:54 -07:00
2012-08-28 16:39:32 -07:00
2012-04-24 17:46:54 -07:00