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