Nicolas Boichat 540601885f poppy: If base ADC value is unclear, try reading it again
If the base ADC value does not clearly indicate attach, reverse
attach, or disconnect, read the ADC value again in 500ms.

This time should be long enough that even if the ADC value is
wrong, it would not use an inconsiderate amount of power.

BRANCH=none
BUG=b:67970530
TEST=Connect 6K and 30K resistors in parallel between DET and GND
     pin, EC detects an unclear 27 mV ADC value, and retries
     every 500ms until the 6K resistor is removed and a clear
     attach value is read (154 mV).
TEST=Connect base in reverse, ADC value is around 475 mV, and
     ADC is not polled again.
TEST=Disconnect base, ADC value is at maximum (2816 mV), and ADC
     is not polled again.

Change-Id: I616114afc683608b853c18d0a081c6cd1e150c75
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/727790
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
2017-10-19 21:15:32 -07:00
2017-08-07 19:29:13 -07:00
2017-10-18 22:48:41 +00:00
2017-10-19 14:56:09 -07:00
2017-09-07 15:01:05 -07:00
2017-07-08 20:38:53 -07:00
2017-10-10 22:13:43 -07:00
2017-10-19 21:15:29 -07:00
2017-10-19 12:56:42 -07:00
2017-10-19 12:56:42 -07:00
2012-05-11 09:11:52 -07:00
2014-04-02 19:58:53 +00:00
2015-12-08 20:05:05 -08:00

For an overview of the Embedded Controller firmware, refer to

http://www.chromium.org/chromium-os/2014-firmware-summit

For instructions on building from source, refer to

http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly
Description
No description provided
Readme 1.4 GiB
Languages
C 64.7%
Lasso 20.7%
ASL 3.6%
JavaScript 3.2%
C# 2.9%
Other 4.6%