mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
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>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
f58d821a5a
commit
46ccd63c1d
@@ -26,11 +26,6 @@
|
||||
#define CPRINTS(format, args...) cprints(CC_MOTION_LID, format, ## args)
|
||||
#define CPRINTF(format, args...) cprintf(CC_MOTION_LID, format, ## args)
|
||||
|
||||
/* For vector_3_t, define which coordinates are in which location. */
|
||||
enum {
|
||||
X, Y, Z
|
||||
};
|
||||
|
||||
/* Current acceleration vectors and current lid angle. */
|
||||
static int lid_angle_deg;
|
||||
static int lid_angle_is_reliable;
|
||||
|
||||
@@ -32,10 +32,6 @@
|
||||
/* Time to wait in between failed attempts to initialize sensors */
|
||||
#define TASK_MOTION_SENSE_WAIT_TIME (500 * MSEC)
|
||||
|
||||
/* For vector_3_t, define which coordinates are in which location. */
|
||||
enum {
|
||||
X, Y, Z
|
||||
};
|
||||
|
||||
/* Bounds for setting the sensor polling interval. */
|
||||
#define MIN_POLLING_INTERVAL_MS 5
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -19,11 +19,6 @@
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
|
||||
/* For vector_3_t, define which coordinates are in which location. */
|
||||
enum {
|
||||
X, Y, Z
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Mock functions */
|
||||
static int accel_init(const struct motion_sensor_t *s)
|
||||
|
||||
Reference in New Issue
Block a user