summaryrefslogtreecommitdiff
path: root/include/tablet_mode.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/tablet_mode.h')
-rw-r--r--include/tablet_mode.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/tablet_mode.h b/include/tablet_mode.h
index 5edfb52f20..e4444aca1b 100644
--- a/include/tablet_mode.h
+++ b/include/tablet_mode.h
@@ -28,4 +28,13 @@ void hall_sensor_isr(enum gpio_signal signal);
*/
void hall_sensor_disable(void);
+/*
+ * This must be defined when CONFIG_HALL_SENSOR_CUSTOM is defined. This allows
+ * a board to override the default behavior that determines if the 360 sensor is
+ * active: !gpio_get_level(HALL_SENSOR_GPIO_L).
+ *
+ * Returns 1 if the 360 sensor is active; otherwise 0.
+ */
+int board_sensor_at_360(void);
+
#endif