summaryrefslogtreecommitdiff
path: root/common/build.mk
diff options
context:
space:
mode:
authorChing-Kang Yen <chingkang@chromium.org>2020-07-31 02:04:51 +0800
committerCommit Bot <commit-bot@chromium.org>2020-09-03 07:15:42 +0000
commit53a2ee971270fcf759766a83496da05685ec8151 (patch)
tree03c7627b41a63a53ac54e0158cb526c8b9982ffb /common/build.mk
parent90c79d90699268d31a3a2d8f48af5955e493005b (diff)
downloadchrome-ec-53a2ee971270fcf759766a83496da05685ec8151.tar.gz
common: implement body_detection state machine
Implement body_detection state machine. Detect whether the user is close to the devices or not. Use the variance of acceleration from accelerometer to compute the motion confidence. If motion confidence is high enough, set the motion state to ON_BODY. If low enough, set it to OFF_BODY. Also, make gesture_cal() be called only when the gesture sensor data is updated. BRANCH=None BUG=b:123434029 TEST=make buildall, flash the ec, watch the ec console log Change-Id: If886b7f9fc505ef4db4d7abb08194b8f866121bb Signed-off-by: Ching-Kang Yen <chingkang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2230938 Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'common/build.mk')
-rw-r--r--common/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/build.mk b/common/build.mk
index f54f9ad5a8..4ef78d57f5 100644
--- a/common/build.mk
+++ b/common/build.mk
@@ -44,6 +44,7 @@ common-$(CONFIG_BATTERY)+=battery.o
common-$(CONFIG_BATTERY_FUEL_GAUGE)+=battery_fuel_gauge.o
common-$(CONFIG_BLUETOOTH_LE)+=bluetooth_le.o
common-$(CONFIG_BLUETOOTH_LE_STACK)+=btle_hci_controller.o btle_ll.o
+common-$(CONFIG_BODY_DETECTION)+=body_detection.o
common-$(CONFIG_CAPSENSE)+=capsense.o
common-$(CONFIG_CEC)+=cec.o
common-$(CONFIG_CROS_BOARD_INFO)+=cbi.o