summaryrefslogtreecommitdiff
path: root/tmk_core/common
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/keymap.c1
-rw-r--r--tmk_core/common/matrix.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/tmk_core/common/keymap.c b/tmk_core/common/keymap.c
index d489238085..11f4aa8aaa 100644
--- a/tmk_core/common/keymap.c
+++ b/tmk_core/common/keymap.c
@@ -28,6 +28,7 @@ static action_t keycode_to_action(uint8_t keycode);
/* converts key to action */
+__attribute__ ((weak))
action_t action_for_key(uint8_t layer, keypos_t key)
{
uint8_t keycode = keymap_key_to_keycode(layer, key);
diff --git a/tmk_core/common/matrix.h b/tmk_core/common/matrix.h
index ec6f8cd431..85415df719 100644
--- a/tmk_core/common/matrix.h
+++ b/tmk_core/common/matrix.h
@@ -63,6 +63,10 @@ void matrix_print(void);
void matrix_power_up(void);
void matrix_power_down(void);
+/* keyboard-specific setup/loop functionality */
+void * matrix_init_kb(void);
+void * matrix_scan_kb(void);
+
#ifdef __cplusplus
}
#endif