summaryrefslogtreecommitdiff
path: root/include/motion_sense.h
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2017-02-07 16:38:26 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-02-11 13:06:38 -0800
commiteb2e38ec56c5701a1d9bcc3618957b4d4dee50f6 (patch)
treec842f3e693bb70eec8309558034ae6021c97c8b9 /include/motion_sense.h
parent050ea0226844252d33285461b490372fe8c02f8e (diff)
downloadchrome-ec-eb2e38ec56c5701a1d9bcc3618957b4d4dee50f6.tar.gz
console: Add non-verbose print config option
Shorten certain long prints and reduce the precision of timestamp prints when CONFIG_CONSOLE_VERBOSE is undef'd. BUG=chromium:688743 BRANCH=gru TEST=On kevin, cold reset the EC, boot to OS, and verify cros_ec.log contains all data since sysjump and is < 2K bytes (~1500 bytes). Change-Id: Ia9390867788d0ab3087f827b0296107b4e9d4bca Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/438932 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r--include/motion_sense.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h
index 30384374bd..3e56e7597b 100644
--- a/include/motion_sense.h
+++ b/include/motion_sense.h
@@ -172,6 +172,15 @@ void motion_sense_fifo_add_unit(struct ec_response_motion_sensor_data *data,
#endif
+/**
+ * Take actions at end of sensor initialization (currently only printing
+ * init done status to console).
+ *
+ * @param sensor sensor which was just initialized
+ * @param range range of sensor
+ */
+void sensor_init_done(const struct motion_sensor_t *sensor, int range);
+
#ifdef CONFIG_GESTURE_HOST_DETECTION
/* Add an extra sensor. We may need to add more */
#define MOTION_SENSE_ACTIVITY_SENSOR_ID (motion_sensor_count)