diff options
Diffstat (limited to 'board/reef_mchp/board.h')
-rw-r--r-- | board/reef_mchp/board.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/board/reef_mchp/board.h b/board/reef_mchp/board.h index 3befb5bf05..348375e8da 100644 --- a/board/reef_mchp/board.h +++ b/board/reef_mchp/board.h @@ -213,11 +213,12 @@ #define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL #define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL +/* Enable sensor fifo, must also define the _SIZE and _THRES */ +#define CONFIG_ACCEL_FIFO /* FIFO size is in power of 2. */ -#define CONFIG_ACCEL_FIFO 1024 - +#define CONFIG_ACCEL_FIFO_SIZE 1024 /* Depends on how fast the AP boots and typical ODRs */ -#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO / 3) +#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO_SIZE / 3) #ifndef __ASSEMBLER__ |