diff options
author | Yuval Peress <peress@chromium.org> | 2019-07-15 14:10:11 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-09-03 20:36:04 +0000 |
commit | dfbc632cd5b5a856086249253a98bc83d8942a29 (patch) | |
tree | 9f0359115a96ca0efe66905b5f6b1be644367430 /include/motion_sense_fifo.h | |
parent | 083788ac19505f07bfe57a4d8b54a3b11b7554b3 (diff) | |
download | chrome-ec-dfbc632cd5b5a856086249253a98bc83d8942a29.tar.gz |
config: Refactor CONFIG_ACCEL_FIFO to enable use of IS_ENABLED
This change allows us to use the IS_ENABLED condition to replace
the various ifdef guards around the CONFIG_ACCEL_FIFO
BUG=b:137758297,chromium:981990
BRANCH=None
TEST=buildall and CTS tests on Arcada
Change-Id: I65d36bac19855e51c830a33e6f3812575e8d15d9
Signed-off-by: Yuval Peress <peress@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1704164
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'include/motion_sense_fifo.h')
-rw-r--r-- | include/motion_sense_fifo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/motion_sense_fifo.h b/include/motion_sense_fifo.h index f0d5f853dd..6b306b5f29 100644 --- a/include/motion_sense_fifo.h +++ b/include/motion_sense_fifo.h @@ -67,4 +67,11 @@ void motion_sense_fifo_stage_timestamp(uint32_t timestamp); void motion_sense_get_fifo_info( struct ec_response_motion_sense_fifo_info *fifo_info); +/** + * Checks if either the AP should be woken up due to the fifo. + * + * @return 1 if the AP should be woken up, 0 otherwise. + */ +int motion_sense_fifo_is_wake_up_needed(void); + #endif /* __CROS_EC_MOTION_SENSE_FIFO_H */ |