summaryrefslogtreecommitdiff
path: root/include/keyboard_protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/keyboard_protocol.h')
-rw-r--r--include/keyboard_protocol.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/keyboard_protocol.h b/include/keyboard_protocol.h
index 6fc0a06f7c..a8eafe308d 100644
--- a/include/keyboard_protocol.h
+++ b/include/keyboard_protocol.h
@@ -35,6 +35,18 @@ void keyboard_update_button(enum keyboard_button_type button, int is_pressed);
#ifdef CONFIG_KEYBOARD_PROTOCOL_MKBP
#include "keyboard_mkbp.h"
+
+/* MKBP protocol takes the whole keyboard matrix, and does not care about
+ * individual key presses.
+ */
+static inline void keyboard_state_changed(int row, int col, int is_pressed) {}
+#else
+/**
+ * Called by keyboard scan code once any key state change (after de-bounce),
+ *
+ * This function will look up matrix table and convert scancode host.
+ */
+void keyboard_state_changed(int row, int col, int is_pressed);
#endif
#endif /* __CROS_EC_KEYBOARD_PROTOCOL_H */