summaryrefslogtreecommitdiff
path: root/board/flapjack/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/flapjack/board.h')
-rw-r--r--board/flapjack/board.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/board/flapjack/board.h b/board/flapjack/board.h
index a7420a55eb..353f3a62b3 100644
--- a/board/flapjack/board.h
+++ b/board/flapjack/board.h
@@ -114,10 +114,17 @@
#define CONFIG_TABLET_MODE
#define CONFIG_TABLET_MODE_SWITCH
+/*
+ * Only include the sensor fifo in the RW section (since the motion task is only
+ * included there).
+ */
#ifdef SECTION_IS_RW
+/* 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 256
-#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO / 3)
+#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)
#endif /* SECTION_IS_RW */
/* Wireless Power Charger Config */