diff options
Diffstat (limited to 'board/cheza/board.h')
-rw-r--r-- | board/cheza/board.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/board/cheza/board.h b/board/cheza/board.h index 39adbcf500..b7c4131529 100644 --- a/board/cheza/board.h +++ b/board/cheza/board.h @@ -131,8 +131,12 @@ #define CONFIG_ACCEL_INTERRUPTS #define CONFIG_ACCELGYRO_BMI160_INT_EVENT \ TASK_EVENT_MOTION_SENSOR_INTERRUPT(LID_ACCEL) -#define CONFIG_ACCEL_FIFO 512 -#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO / 3) +/* Enable sensor fifo, must also define the _SIZE and _THRES */ +#define CONFIG_ACCEL_FIFO +/* FIFO size is a power of 2. */ +#define CONFIG_ACCEL_FIFO_SIZE 256 +/* Depends on how fast the AP boots and typical ODRs. */ +#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO_SIZE / 3) #define CONFIG_CMD_ACCELS #define CONFIG_CMD_ACCEL_INFO #define CONFIG_ALS |