summaryrefslogtreecommitdiff
path: root/common/timer.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-09-08 11:43:25 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-19 15:18:09 -0700
commitb98e33c95000976d689a9e5537402eafadad6507 (patch)
tree684cd3ee19cc2164d23449b7bfb516e6709b0849 /common/timer.c
parent1ce66908fb6f1a34cdf9a9775d9c832e83dc0d0c (diff)
downloadchrome-ec-b98e33c95000976d689a9e5537402eafadad6507.tar.gz
common: motion: Fix oversampling calculation.
Was setting frequency radix at 1 mHz. That would limit frequency to 32Hz, which is not enough for accelerometor. Set radix as a fixed point or float variable, to calculate the rate properly. BRANCH=smaug BUG=None TEST=Check that when Ryu set accelerometer to 100Hz internally (for double tap), that AP gets data when requested frequency is 15Hz. Change-Id: I84e0ea784f8bd04566aa91bc4300cf4ff30b350c Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/298688 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/timer.c')
0 files changed, 0 insertions, 0 deletions