diff options
author | Tristan Honscheid <honscheid@google.com> | 2022-10-03 19:10:10 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-07 17:38:56 +0000 |
commit | dbf15673583860a734eb7373a0c1de414781cd49 (patch) | |
tree | 6930189ada2fba09dc30e8b7d8d66990867a20fe /common/motion_lid.c | |
parent | 237c362e9b9cd8c38b170379ac8b41f515caf5f5 (diff) | |
download | chrome-ec-dbf15673583860a734eb7373a0c1de414781cd49.tar.gz |
zephyr: tests: Test motion_lid.c host command
Test the motion_lid.c subcommands of the motion_sense host command.
BRANCH=None
BUG=b:250726941
TEST=./twister
Signed-off-by: Tristan Honscheid <honscheid@google.com>
Change-Id: Ifb496e7e7d1bf91d320b6dce04a4e90c13975954
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3934412
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/motion_lid.c')
-rw-r--r-- | common/motion_lid.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/motion_lid.c b/common/motion_lid.c index 1a254e786d..d8445bb3d4 100644 --- a/common/motion_lid.c +++ b/common/motion_lid.c @@ -499,6 +499,13 @@ void motion_lid_calc(void) /*****************************************************************************/ /* Host commands */ +/** + * @brief This is a "sub"-host command accessed through EC_CMD_MOTION_SENSE_CMD, + * defined in `common/motion_sense.c` + * + * @param args Hot command args + * @return enum ec_status Exit status + */ enum ec_status host_cmd_motion_lid(struct host_cmd_handler_args *args) { const struct ec_params_motion_sense *in = args->params; |