diff options
| author | QMK Bot <hello@qmk.fm> | 2021-02-28 20:12:15 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2021-02-28 20:12:15 +0000 |
| commit | 0efafdd408f31c39dd1b9a5e0ef356bc84a50243 (patch) | |
| tree | 003a139836d526f600658de702eaa7ec77ef7f96 /quantum/quantum.h | |
| parent | 3718f5149a9a745313aa54e8df70bff11bf2f965 (diff) | |
| parent | 1a7f2c8f453d4da6ed8622e52d5b788bc6dad480 (diff) | |
| download | qmk_firmware-0efafdd408f31c39dd1b9a5e0ef356bc84a50243.tar.gz qmk_firmware-0efafdd408f31c39dd1b9a5e0ef356bc84a50243.zip | |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'quantum/quantum.h')
| -rw-r--r-- | quantum/quantum.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h index 7bb6e796e..070bd0131 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h | |||
| @@ -62,7 +62,7 @@ | |||
| 62 | #include "action_util.h" | 62 | #include "action_util.h" |
| 63 | #include "action_tapping.h" | 63 | #include "action_tapping.h" |
| 64 | #include "print.h" | 64 | #include "print.h" |
| 65 | #include "send_string_keycodes.h" | 65 | #include "send_string.h" |
| 66 | #include "suspend.h" | 66 | #include "suspend.h" |
| 67 | #include <stddef.h> | 67 | #include <stddef.h> |
| 68 | #include <stdlib.h> | 68 | #include <stdlib.h> |
| @@ -232,31 +232,6 @@ extern layer_state_t layer_state; | |||
| 232 | # define waitInputPinDelay() wait_cpuclock(GPIO_INPUT_PIN_DELAY) | 232 | # define waitInputPinDelay() wait_cpuclock(GPIO_INPUT_PIN_DELAY) |
| 233 | 233 | ||
| 234 | #endif | 234 | #endif |
| 235 | #define SEND_STRING(string) send_string_P(PSTR(string)) | ||
| 236 | #define SEND_STRING_DELAY(string, interval) send_string_with_delay_P(PSTR(string), interval) | ||
| 237 | |||
| 238 | // Look-Up Tables (LUTs) to convert ASCII character to keycode sequence. | ||
| 239 | extern const uint8_t ascii_to_keycode_lut[128]; | ||
| 240 | extern const uint8_t ascii_to_shift_lut[16]; | ||
| 241 | extern const uint8_t ascii_to_altgr_lut[16]; | ||
| 242 | extern const uint8_t ascii_to_dead_lut[16]; | ||
| 243 | // clang-format off | ||
| 244 | #define KCLUT_ENTRY(a, b, c, d, e, f, g, h) \ | ||
| 245 | ( ((a) ? 1 : 0) << 0 \ | ||
| 246 | | ((b) ? 1 : 0) << 1 \ | ||
| 247 | | ((c) ? 1 : 0) << 2 \ | ||
| 248 | | ((d) ? 1 : 0) << 3 \ | ||
| 249 | | ((e) ? 1 : 0) << 4 \ | ||
| 250 | | ((f) ? 1 : 0) << 5 \ | ||
| 251 | | ((g) ? 1 : 0) << 6 \ | ||
| 252 | | ((h) ? 1 : 0) << 7 ) | ||
| 253 | // clang-format on | ||
| 254 | |||
| 255 | void send_string(const char *str); | ||
| 256 | void send_string_with_delay(const char *str, uint8_t interval); | ||
| 257 | void send_string_P(const char *str); | ||
| 258 | void send_string_with_delay_P(const char *str, uint8_t interval); | ||
| 259 | void send_char(char ascii_code); | ||
| 260 | 235 | ||
| 261 | // For tri-layer | 236 | // For tri-layer |
| 262 | void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3); | 237 | void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3); |
