diff options
author | Christoph Cullmann <christoph@cullmann.io> | 2024-09-23 01:57:34 +0200 |
---|---|---|
committer | Christoph Cullmann <christoph@cullmann.io> | 2024-09-23 01:57:34 +0200 |
commit | b151f87eb7cd0b37d3c6571b9f566aed038f33fe (patch) | |
tree | dc1a189a6cc077ce7a693f1d73834a9aef7bda4a | |
parent | 955857eba9abecc378b6820be7e12c8089bf3f0a (diff) |
more tricks from https://github.com/filterpaper/qmk_userspace
-rw-r--r-- | common/keymap.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 |