summaryrefslogtreecommitdiff
path: root/chip/stm32/usart_rx_interrupt-stm32f4.c
diff options
context:
space:
mode:
authorChing-Kang Yen <chingkang@chromium.org>2020-09-18 00:29:51 +0800
committerCommit Bot <commit-bot@chromium.org>2020-09-29 13:31:20 +0000
commit9513a63a626021b071199d02b7c73112eb746833 (patch)
tree17dd2259d9c0e1a617e0814f20785405b10cd17a /chip/stm32/usart_rx_interrupt-stm32f4.c
parent17d47b68f8730a5404e9d2379a4b1a20c87d045b (diff)
downloadchrome-ec-9513a63a626021b071199d02b7c73112eb746833.tar.gz
common: body_detection: modify calculation of noise level
We used rms_noise^2 as noise level for body_detection. But, there are still some different noise level based on different devices. Add the CONFIG_BODY_DETECTION_VAR_NOISE_FACTOR to adjust the noise_level. Default value is 120%, since the 100% of the rms_noise^2 is not enough, especially in 200Hz. BRANCH=None BUG=b:123434029 TEST=make buildall; make BOARD=ampton, re-flash the DUT, see if the body detection works Signed-off-by: Ching-Kang Yen <chingkang@chromium.org> Change-Id: I2a7416b0bd8d0aac51d16c3aed9d962837f52c0b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2416477 Reviewed-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-by: Heng-ruey Hsu <henryhsu@chromium.org>
Diffstat (limited to 'chip/stm32/usart_rx_interrupt-stm32f4.c')
0 files changed, 0 insertions, 0 deletions