diff options
Diffstat (limited to 'common/bootmagic.h')
| -rw-r--r-- | common/bootmagic.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/common/bootmagic.h b/common/bootmagic.h new file mode 100644 index 000000000..7aa224def --- /dev/null +++ b/common/bootmagic.h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | #ifndef BOOTMAGIC_H | ||
| 2 | #define BOOTMAGIC_H | ||
| 3 | |||
| 4 | |||
| 5 | #ifndef BOOTMAGIC_IS_ENABLE | ||
| 6 | #define BOOTMAGIC_IS_ENABLE() true | ||
| 7 | #endif | ||
| 8 | |||
| 9 | /* bootloader */ | ||
| 10 | #ifndef BOOTMAGIC_BOOTLOADER_KEY | ||
| 11 | #define BOOTMAGIC_BOOTLOADER_KEY KC_B | ||
| 12 | #endif | ||
| 13 | /* debug enable */ | ||
| 14 | #ifndef BOOTMAGIC_DEBUG_ENABLE_KEY | ||
| 15 | #define BOOTMAGIC_DEBUG_ENABLE_KEY KC_D | ||
| 16 | #endif | ||
| 17 | /* eeprom clear */ | ||
| 18 | #ifndef BOOTMAGIC_EEPROM_CLEAR_KEY | ||
| 19 | #define BOOTMAGIC_EEPROM_CLEAR_KEY KC_BSPACE | ||
| 20 | #endif | ||
| 21 | |||
| 22 | /* change default layer */ | ||
| 23 | #ifndef BOOTMAGIC_DEFAULT_LAYER_0_KEY | ||
| 24 | #define BOOTMAGIC_DEFAULT_LAYER_0_KEY KC_0 | ||
| 25 | #endif | ||
| 26 | #ifndef BOOTMAGIC_DEFAULT_LAYER_1_KEY | ||
| 27 | #define BOOTMAGIC_DEFAULT_LAYER_1_KEY KC_1 | ||
| 28 | #endif | ||
| 29 | #ifndef BOOTMAGIC_DEFAULT_LAYER_2_KEY | ||
| 30 | #define BOOTMAGIC_DEFAULT_LAYER_2_KEY KC_2 | ||
| 31 | #endif | ||
| 32 | #ifndef BOOTMAGIC_DEFAULT_LAYER_3_KEY | ||
| 33 | #define BOOTMAGIC_DEFAULT_LAYER_3_KEY KC_3 | ||
| 34 | #endif | ||
| 35 | |||
| 36 | void bootmagic(void); | ||
| 37 | bool bootmagic_scan_keycode(uint8_t keycode); | ||
| 38 | |||
| 39 | #endif | ||
