diff options
| author | Drashna Jaelre <drashna@live.com> | 2021-12-29 20:17:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-29 20:17:34 -0800 |
| commit | c4551d7ef1ed2c1069f23cc8499b7c7fc30f3ecf (patch) | |
| tree | 67dc381a45d59626132c4c59b71c4b36fa971f8b /users/drashna/config.h | |
| parent | 1a8a842cfb3e87a82afb57ba29ca59c5fa6fe97b (diff) | |
| download | qmk_firmware-c4551d7ef1ed2c1069f23cc8499b7c7fc30f3ecf.tar.gz qmk_firmware-c4551d7ef1ed2c1069f23cc8499b7c7fc30f3ecf.zip | |
[Keymap] Reorganization, cleanup and readmes for drashna code (#15617)
Diffstat (limited to 'users/drashna/config.h')
| -rw-r--r-- | users/drashna/config.h | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/users/drashna/config.h b/users/drashna/config.h index cc8f9ac83..46cd276dd 100644 --- a/users/drashna/config.h +++ b/users/drashna/config.h | |||
| @@ -1,24 +1,16 @@ | |||
| 1 | /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | 1 | // Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> |
| 2 | * | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | 3 | ||
| 17 | #pragma once | 4 | #pragma once |
| 18 | 5 | ||
| 19 | // Use custom magic number so that when switching branches, EEPROM always gets reset | 6 | // Use custom magic number so that when switching branches, EEPROM always gets reset |
| 20 | #define EECONFIG_MAGIC_NUMBER (uint16_t)0x1339 | 7 | #define EECONFIG_MAGIC_NUMBER (uint16_t)0x1339 |
| 21 | 8 | ||
| 9 | #ifdef IS_COMMAND | ||
| 10 | #undef IS_COMMAND | ||
| 11 | #endif | ||
| 12 | #define IS_COMMAND() (((get_mods() | get_oneshot_mods()) & MOD_MASK_SHIFT) == MOD_MASK_SHIFT) | ||
| 13 | |||
| 22 | /* Set Polling rate to 1000Hz */ | 14 | /* Set Polling rate to 1000Hz */ |
| 23 | #define USB_POLLING_INTERVAL_MS 1 | 15 | #define USB_POLLING_INTERVAL_MS 1 |
| 24 | 16 | ||
| @@ -37,7 +29,7 @@ | |||
| 37 | # define SELECT_SOFT_SERIAL_SPEED 1 | 29 | # define SELECT_SOFT_SERIAL_SPEED 1 |
| 38 | # endif | 30 | # endif |
| 39 | # ifdef CUSTOM_SPLIT_TRANSPORT_SYNC | 31 | # ifdef CUSTOM_SPLIT_TRANSPORT_SYNC |
| 40 | # define SPLIT_TRANSACTION_IDS_USER RPC_ID_USER_STATE_SYNC, RPC_ID_USER_KEYMAP_SYNC, RPC_ID_USER_CONFIG_SYNC | 32 | # define SPLIT_TRANSACTION_IDS_USER RPC_ID_USER_STATE_SYNC, RPC_ID_USER_KEYMAP_SYNC, RPC_ID_USER_CONFIG_SYNC, RPC_ID_USER_WATCHDOG_SYNC |
| 41 | # endif | 33 | # endif |
| 42 | #endif | 34 | #endif |
| 43 | 35 | ||
| @@ -251,17 +243,6 @@ | |||
| 251 | # define TAPPING_TOGGLE 1 | 243 | # define TAPPING_TOGGLE 1 |
| 252 | #endif | 244 | #endif |
| 253 | 245 | ||
| 254 | #ifdef TAPPING_TERM | ||
| 255 | # undef TAPPING_TERM | ||
| 256 | #endif // TAPPING_TERM | ||
| 257 | #if defined(KEYBOARD_ergodox_ez) | ||
| 258 | # define TAPPING_TERM 185 | ||
| 259 | #elif defined(KEYBOARD_crkbd) | ||
| 260 | # define TAPPING_TERM 200 | ||
| 261 | #else | ||
| 262 | # define TAPPING_TERM 175 | ||
| 263 | #endif | ||
| 264 | |||
| 265 | #define TAP_CODE_DELAY 5 | 246 | #define TAP_CODE_DELAY 5 |
| 266 | 247 | ||
| 267 | /* Disable unused and unneeded features to reduce on firmware size */ | 248 | /* Disable unused and unneeded features to reduce on firmware size */ |
