diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2017-02-07 16:38:26 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-02-11 13:06:38 -0800 |
commit | eb2e38ec56c5701a1d9bcc3618957b4d4dee50f6 (patch) | |
tree | c842f3e693bb70eec8309558034ae6021c97c8b9 /include | |
parent | 050ea0226844252d33285461b490372fe8c02f8e (diff) | |
download | chrome-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')
-rw-r--r-- | include/config.h | 3 | ||||
-rw-r--r-- | include/motion_sense.h | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 734cd71874..1e238bf3f9 100644 --- a/include/config.h +++ b/include/config.h @@ -766,6 +766,9 @@ /* Max length of a single line of input */ #define CONFIG_CONSOLE_INPUT_LINE_SIZE 80 +/* Enable verbose output to UART console and extra timestamp print precision. */ +#define CONFIG_CONSOLE_VERBOSE + /* * Enable the experimental console. * 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) |