diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-04-09 00:42:30 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-09 12:10:42 +0000 |
commit | 46ccd63c1daa335e3891003dcd699d1732dfebc5 (patch) | |
tree | b5ca18d56dc4791f7edb44dd5383443ec4dd60b4 /include/math_util.h | |
parent | f58d821a5ac305c963722997713c6fc35a4dc6f7 (diff) | |
download | chrome-ec-46ccd63c1daa335e3891003dcd699d1732dfebc5.tar.gz |
accel: move X,Y,Z definition
Move definition so that we can use it in accel driver.
BUG=None
TEST=Compile
BRANCH=none
Change-Id: I45d16a91d923cb0538b7fdf4110112566c87b6d0
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/269837
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/math_util.h')
-rw-r--r-- | include/math_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/math_util.h b/include/math_util.h index dc0eb431c3..e7dcc6cbec 100644 --- a/include/math_util.h +++ b/include/math_util.h @@ -70,6 +70,10 @@ typedef fp_t matrix_3x3_t[3][3]; /* Integer vector */ typedef int vector_3_t[3]; +/* For vector_3_t, define which coordinates are in which location. */ +enum { + X, Y, Z +}; /* * Return absolute value of x. Note that as a macro expansion, this may have * side effects if x includes function calls, which is why inline functions |