]> git.donarmstrong.com Git - tmk_firmware.git/blob - common/bootmagic.h
Add version string
[tmk_firmware.git] / common / bootmagic.h
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 #define BOOTMAGIC_KEY_DEBUG_ENABLE      KC_D
27 #define BOOTMAGIC_KEY_DEBUG_MATRIX      KC_X
28 #define BOOTMAGIC_KEY_DEBUG_KEYBOARD    KC_K
29 #define BOOTMAGIC_KEY_DEBUG_MOUSE       KC_M
30
31 /*
32  * keymap config
33  */
34 #define BOOTMAGIC_KEY_SWAP_CONTROL_CPASLOCK     KC_LCTRL
35 #define BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL       KC_CAPSLOCK
36 #define BOOTMAGIC_KEY_SWAP_LALT_LGUI            KC_LALT
37 #define BOOTMAGIC_KEY_SWAP_RALT_RGUI            KC_RALT
38 #define BOOTMAGIC_KEY_NO_GUI                    KC_LGUI
39 #define BOOTMAGIC_KEY_SWAP_GRAVE_ESC            KC_GRAVE
40 #define BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE  KC_BSLASH
41
42
43 /*
44  * change default layer
45  */
46 #define BOOTMAGIC_KEY_DEFAULT_LAYER_0   KC_0
47 #define BOOTMAGIC_KEY_DEFAULT_LAYER_1   KC_1
48 #define BOOTMAGIC_KEY_DEFAULT_LAYER_2   KC_2
49 #define BOOTMAGIC_KEY_DEFAULT_LAYER_3   KC_3
50 #define BOOTMAGIC_KEY_DEFAULT_LAYER_4   KC_4
51 #define BOOTMAGIC_KEY_DEFAULT_LAYER_5   KC_5
52 #define BOOTMAGIC_KEY_DEFAULT_LAYER_6   KC_6
53 #define BOOTMAGIC_KEY_DEFAULT_LAYER_7   KC_7
54
55
56 void bootmagic(void);
57 bool bootmagic_scan_keycode(uint8_t keycode);
58
59 #endif