aboutsummaryrefslogtreecommitdiff
path: root/keyboard/gh60/config.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-03-12 01:07:06 +0900
committertmk <nobody@nowhere>2013-03-12 10:43:02 +0900
commit92b92dd78f5488981244d353f2d500ad9d82fc49 (patch)
treed0d1a061fd8dd7e8ff07ce63f8493618c30f9031 /keyboard/gh60/config.h
parent8b9bd51d3a13959a4d59fdbc819a033cd8b0a3ce (diff)
downloadqmk_firmware-92b92dd78f5488981244d353f2d500ad9d82fc49.tar.gz
qmk_firmware-92b92dd78f5488981244d353f2d500ad9d82fc49.zip
Add mechanical locking switch support for CapsLock
Diffstat (limited to 'keyboard/gh60/config.h')
-rw-r--r--keyboard/gh60/config.h24
1 files changed, 7 insertions, 17 deletions
diff --git a/keyboard/gh60/config.h b/keyboard/gh60/config.h
index cd98395eb..bd0a19c33 100644
--- a/keyboard/gh60/config.h
+++ b/keyboard/gh60/config.h
@@ -27,16 +27,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
27#define PRODUCT GH60 27#define PRODUCT GH60
28#define DESCRIPTION t.m.k. keyboard firmware for GH60 28#define DESCRIPTION t.m.k. keyboard firmware for GH60
29 29
30/* matrix size */ 30/* key matrix size */
31#define MATRIX_ROWS 5 31#define MATRIX_ROWS 5
32#define MATRIX_COLS 14 32#define MATRIX_COLS 14
33 33
34/* define if matrix has ghost */ 34/* define if matrix has ghost */
35//#define MATRIX_HAS_GHOST 35//#define MATRIX_HAS_GHOST
36 36
37/* Set 0 if need no debouncing */ 37/* Set 0 if debouncing isn't needed */
38#define DEBOUNCE 5 38#define DEBOUNCE 5
39 39
40/* Mechanical locking CapsLock support. Use KC_LCAP instead of KC_CAPS in keymap */
41#define CAPSLOCK_LOCKING_ENABLE
42/* Locking CapsLock resynchronize hack, which won't work on Linux */
43#define CAPSLOCK_LOCKING_RESYNC_ENABLE
44
40/* key combination for command */ 45/* key combination for command */
41#define IS_COMMAND() ( \ 46#define IS_COMMAND() ( \
42 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ 47 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
@@ -51,20 +56,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
51 */ 56 */
52#define BOOTLOADER_SIZE 4096 57#define BOOTLOADER_SIZE 4096
53 58
54/*
55 * Boot magic keys
56 * call some function by pressing key when pluging cable or powering on.
57 */
58/* key position on matrix(ROW:COL) */
59#define KEY_FN 0x4A
60#define KEY_D 0x23
61#define KEY_ESC 0x00
62#define KEY_IS_ON(key) matrix_is_on((key)>>4, (key)&0xF)
63/* kick up bootloader */
64#define IS_BOOTMAGIC_BOOTLOADER() KEY_IS_ON(KEY_FN)
65/* debug on */
66#define IS_BOOTMAGIC_DEBUG() KEY_IS_ON(KEY_D)
67/* eeprom clear */
68#define IS_BOOTMAGIC_EEPROM_CLEAR() KEY_IS_ON(KEY_ESC)
69 59
70#endif 60#endif