aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/bootmagic.h
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common/bootmagic.h')
-rw-r--r--tmk_core/common/bootmagic.h100
1 files changed, 100 insertions, 0 deletions
diff --git a/tmk_core/common/bootmagic.h b/tmk_core/common/bootmagic.h
new file mode 100644
index 000000000..8f6618f4b
--- /dev/null
+++ b/tmk_core/common/bootmagic.h
@@ -0,0 +1,100 @@
1#ifndef BOOTMAGIC_H
2#define BOOTMAGIC_H
3
4
5/* bootmagic salt key */
6#ifndef BOOTMAGIC_KEY_SALT
7#define BOOTMAGIC_KEY_SALT KC_SPACE
8#endif
9
10/* skip bootmagic and eeconfig */
11#ifndef BOOTMAGIC_KEY_SKIP
12#define BOOTMAGIC_KEY_SKIP KC_ESC
13#endif
14
15/* eeprom clear */
16#ifndef BOOTMAGIC_KEY_EEPROM_CLEAR
17#define BOOTMAGIC_KEY_EEPROM_CLEAR KC_BSPACE
18#endif
19
20/* kick up bootloader */
21#ifndef BOOTMAGIC_KEY_BOOTLOADER
22#define BOOTMAGIC_KEY_BOOTLOADER KC_B
23#endif
24
25/* debug enable */
26#ifndef BOOTMAGIC_KEY_DEBUG_ENABLE
27#define BOOTMAGIC_KEY_DEBUG_ENABLE KC_D
28#endif
29#ifndef BOOTMAGIC_KEY_DEBUG_MATRIX
30#define BOOTMAGIC_KEY_DEBUG_MATRIX KC_X
31#endif
32#ifndef BOOTMAGIC_KEY_DEBUG_KEYBOARD
33#define BOOTMAGIC_KEY_DEBUG_KEYBOARD KC_K
34#endif
35#ifndef BOOTMAGIC_KEY_DEBUG_MOUSE
36#define BOOTMAGIC_KEY_DEBUG_MOUSE KC_M
37#endif
38
39/*
40 * keymap config
41 */
42#ifndef BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK
43#define BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK KC_LCTRL
44#endif
45#ifndef BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL
46#define BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL KC_CAPSLOCK
47#endif
48#ifndef BOOTMAGIC_KEY_SWAP_LALT_LGUI
49#define BOOTMAGIC_KEY_SWAP_LALT_LGUI KC_LALT
50#endif
51#ifndef BOOTMAGIC_KEY_SWAP_RALT_RGUI
52#define BOOTMAGIC_KEY_SWAP_RALT_RGUI KC_RALT
53#endif
54#ifndef BOOTMAGIC_KEY_NO_GUI
55#define BOOTMAGIC_KEY_NO_GUI KC_LGUI
56#endif
57#ifndef BOOTMAGIC_KEY_SWAP_GRAVE_ESC
58#define BOOTMAGIC_KEY_SWAP_GRAVE_ESC KC_GRAVE
59#endif
60#ifndef BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE
61#define BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE KC_BSLASH
62#endif
63#ifndef BOOTMAGIC_HOST_NKRO
64#define BOOTMAGIC_HOST_NKRO KC_N
65#endif
66
67
68/*
69 * change default layer
70 */
71#ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_0
72#define BOOTMAGIC_KEY_DEFAULT_LAYER_0 KC_0
73#endif
74#ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_1
75#define BOOTMAGIC_KEY_DEFAULT_LAYER_1 KC_1
76#endif
77#ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_2
78#define BOOTMAGIC_KEY_DEFAULT_LAYER_2 KC_2
79#endif
80#ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_3
81#define BOOTMAGIC_KEY_DEFAULT_LAYER_3 KC_3
82#endif
83#ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_4
84#define BOOTMAGIC_KEY_DEFAULT_LAYER_4 KC_4
85#endif
86#ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_5
87#define BOOTMAGIC_KEY_DEFAULT_LAYER_5 KC_5
88#endif
89#ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_6
90#define BOOTMAGIC_KEY_DEFAULT_LAYER_6 KC_6
91#endif
92#ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_7
93#define BOOTMAGIC_KEY_DEFAULT_LAYER_7 KC_7
94#endif
95
96
97void bootmagic(void);
98bool bootmagic_scan_keycode(uint8_t keycode);
99
100#endif