diff options
author | Jonathan Brandmeyer <jbrandmeyer@chromium.org> | 2018-07-30 13:16:46 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-07-31 16:37:04 -0700 |
commit | 160748e02929a4fc2142b84dcd91031690420b15 (patch) | |
tree | 211476ba7044985a918123f4b47c3caa23573f9d /include | |
parent | 9b4909334c5b2531e9dd08d81ca00f51ddd1a906 (diff) | |
download | chrome-ec-160748e02929a4fc2142b84dcd91031690420b15.tar.gz |
careena: Correct baseboard IMU orientation.
The Careena baseboard IMU principle axes are rotated relative to the
Grunt reference design for manufacturability. Also, refactor
common/spi_flash_reg.c to avoid a name collision with axis definitions
in math_util.
BRANCH=none
BUG=b:111983307
TEST=make -j buldall; Observe `accelread 1` output with the base in
orientations: flat, perturbed by rotation about +y, and perturbed by
rotation about +x.
Signed-off-by: Jonathan Brandmeyer <jbrandmeyer@chromium.org>
Change-Id: Ib85d657ef47a89aaa63134b2bdf43920caf6c06e
Reviewed-on: https://chromium-review.googlesource.com/1155628
Commit-Ready: Jonathan Brandmeyer <jbrandmeyer@chromium.org>
Tested-by: Jonathan Brandmeyer <jbrandmeyer@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/math_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/math_util.h b/include/math_util.h index 385c044c6f..093c6c099e 100644 --- a/include/math_util.h +++ b/include/math_util.h @@ -8,6 +8,8 @@ #ifndef __CROS_EC_MATH_UTIL_H #define __CROS_EC_MATH_UTIL_H +#include <stdint.h> + #ifdef CONFIG_FPU typedef float fp_t; typedef float fp_inter_t; |