diff options
author | Alec Berg <alecaberg@chromium.org> | 2014-10-14 16:50:52 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-15 20:49:40 +0000 |
commit | 27d60bb83eae453955ae55235ea31d7aa2d39a3f (patch) | |
tree | 27ac6c52614d5b801f82dc6822c576eee86c89b2 /board/discovery-stm32f072 | |
parent | 4a9cabc3f9e8cfbeee857180c8a0b400ef7c8092 (diff) | |
download | chrome-ec-27d60bb83eae453955ae55235ea31d7aa2d39a3f.tar.gz |
zinger: fix double ADC interrupt bug
The ADC interrupt does not clear the NVIC pending register. This
can cause the interrupt to fire more than once for a given
interrupt.
BUG=none
BRANCH=samus
TEST=Send hard reset from samus to zinger using "pd 1 hard" on
PD MCU console. This causes zinger to cut its output voltage
and go into voltage discharging mode. When voltage discharge is
complete, we get an ADC interrupt and switch back to current
monitoring. Before this CL, sometimes (1 out of 20) times the
ADC interrupt will fire twice, causing an OCP to be detected.
With this CL, we never see the double fire.
Change-Id: I91397a04773d04e263bc80a698c8799342b80a2e
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/223381
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/discovery-stm32f072')
0 files changed, 0 insertions, 0 deletions