diff options
Diffstat (limited to 'quantum/quantum.h')
-rw-r--r-- | quantum/quantum.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h index 7dc14e628..d03ba5942 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h | |||
@@ -211,9 +211,21 @@ typedef ioline_t pin_t; | |||
211 | #define SEND_STRING(string) send_string_P(PSTR(string)) | 211 | #define SEND_STRING(string) send_string_P(PSTR(string)) |
212 | #define SEND_STRING_DELAY(string, interval) send_string_with_delay_P(PSTR(string), interval) | 212 | #define SEND_STRING_DELAY(string, interval) send_string_with_delay_P(PSTR(string), interval) |
213 | 213 | ||
214 | extern const bool ascii_to_shift_lut[128]; | 214 | // Look-Up Tables (LUTs) to convert ASCII character to keycode sequence. |
215 | extern const bool ascii_to_altgr_lut[128]; | ||
216 | extern const uint8_t ascii_to_keycode_lut[128]; | 215 | extern const uint8_t ascii_to_keycode_lut[128]; |
216 | extern const uint8_t ascii_to_shift_lut[16]; | ||
217 | extern const uint8_t ascii_to_altgr_lut[16]; | ||
218 | // clang-format off | ||
219 | #define KCLUT_ENTRY(a, b, c, d, e, f, g, h) \ | ||
220 | ( ((a) ? 1 : 0) << 0 \ | ||
221 | | ((b) ? 1 : 0) << 1 \ | ||
222 | | ((c) ? 1 : 0) << 2 \ | ||
223 | | ((d) ? 1 : 0) << 3 \ | ||
224 | | ((e) ? 1 : 0) << 4 \ | ||
225 | | ((f) ? 1 : 0) << 5 \ | ||
226 | | ((g) ? 1 : 0) << 6 \ | ||
227 | | ((h) ? 1 : 0) << 7 ) | ||
228 | // clang-format on | ||
217 | 229 | ||
218 | void send_string(const char *str); | 230 | void send_string(const char *str); |
219 | void send_string_with_delay(const char *str, uint8_t interval); | 231 | void send_string_with_delay(const char *str, uint8_t interval); |