diff options
author | Vic Yang <victoryang@chromium.org> | 2013-05-08 02:43:59 +0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-05-07 20:59:47 -0700 |
commit | 235e6e1d0d713ddad79fa77d6982c006378053cd (patch) | |
tree | b4bb3c44f4f7a23ae4a37f268bcbe3c4e5eed135 /common | |
parent | 0fe217c745406dd562d875ee845a73f8783339b8 (diff) | |
download | chrome-ec-235e6e1d0d713ddad79fa77d6982c006378053cd.tar.gz |
stm32f: Set ADC single read timeout
If an ADC read fails and EOC bit is somehow never set, we will be stuck
in the read function holding mutex lock forever, which is really bad.
Let's set a timeout for this.
BUG=chrome-os-partner:18997
TEST=Boot Spring. Check ADC works.
BRANCH=spring
Change-Id: I19b108326f34f380497606fe92eabfaf0a778bb4
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/50338
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions