From b151f87eb7cd0b37d3c6571b9f566aed038f33fe Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Mon, 23 Sep 2024 01:57:34 +0200 Subject: more tricks from https://github.com/filterpaper/qmk_userspace --- common/keymap.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'common/keymap.h') diff --git a/common/keymap.h b/common/keymap.h index 2d32c98..951c177 100644 --- a/common/keymap.h +++ b/common/keymap.h @@ -137,3 +137,14 @@ layer_state_t layer_state_set_user(layer_state_t state) { return state; } + +// Simplify unused magic config functions +#ifndef MAGIC_ENABLE +uint8_t mod_config(uint8_t mod) { return mod; } +uint16_t keycode_config(uint16_t keycode) { return keycode; } +#endif + +// Reduce marix scanning delay +#ifndef DIRECT_PINS +void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); } +#endif -- cgit v1.2.3