summaryrefslogtreecommitdiff
path: root/common/mkbp_event.c
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2020-01-16 11:20:01 -0700
committerCommit Bot <commit-bot@chromium.org>2020-03-09 23:02:12 +0000
commita00ace498da24a9288fd39f9728c8fd80cd54336 (patch)
tree98ea22bd6f4d1098bb9dfdaafb98795e1024eb27 /common/mkbp_event.c
parent5ccb5c7cc9c448b66c6f8e0abbb2dd785da0efb7 (diff)
downloadchrome-ec-a00ace498da24a9288fd39f9728c8fd80cd54336.tar.gz
common: online_calibration: Fire MKBP event on new calibration
Implement online calibration for accelerometers and fire a new MKBP event when a new calibration value is computed. TEST=Added new unit tests BRANCH=None BUG=b:138303429,chromium:1023858 Change-Id: I31ec7164be0d8c7dac210a1ac4b94ec9ecd6a60a Signed-off-by: Yuval Peress <peress@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2012847 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'common/mkbp_event.c')
-rw-r--r--common/mkbp_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/mkbp_event.c b/common/mkbp_event.c
index 1b37bf78de..f640a9340c 100644
--- a/common/mkbp_event.c
+++ b/common/mkbp_event.c
@@ -280,7 +280,7 @@ static void force_mkbp_if_events(void)
activate_mkbp_with_events(0);
}
-int mkbp_send_event(uint8_t event_type)
+test_mockable int mkbp_send_event(uint8_t event_type)
{
activate_mkbp_with_events(BIT(event_type));