summaryrefslogtreecommitdiff
path: root/include/motion_sense.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r--include/motion_sense.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h
index dda02f19f9..08aefbcc0b 100644
--- a/include/motion_sense.h
+++ b/include/motion_sense.h
@@ -8,6 +8,7 @@
#ifndef __CROS_EC_MOTION_SENSE_H
#define __CROS_EC_MOTION_SENSE_H
+#include "gpio.h"
#include "math_util.h"
/**
@@ -73,5 +74,19 @@ void motion_get_accel_lid(vector_3_t *v, int adjusted);
void motion_get_accel_base(vector_3_t *v);
#endif
+/**
+ * Interrupt function for lid accelerometer.
+ *
+ * @param signal GPIO signal that caused interrupt
+ */
+void accel_int_lid(enum gpio_signal signal);
+
+/**
+ * Interrupt function for base accelerometer.
+ *
+ * @param signal GPIO signal that caused interrupt
+ */
+void accel_int_base(enum gpio_signal signal);
+
#endif /* __CROS_EC_MOTION_SENSE_H */