diff options
author | tmk <nobody@nowhere> | 2013-03-09 11:22:27 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-03-09 11:22:27 +0900 |
commit | 4d64fd8faa8b1a0ceb9019446ba6915aaf1812ea (patch) | |
tree | 25410ede4bbf7d5a8994bb385e6c7ee4ad2f4c0c /common/bootmagic.h | |
parent | 359b68d35f0763ab0cafa2fb800e0a3497291f95 (diff) |
Add bootmagic.c and fix bootloader_jump
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 0000000000..7aa224def9 --- /dev/null +++ b/common/bootmagic.h @@ -0,0 +1,39 @@ +#ifndef BOOTMAGIC_H +#define BOOTMAGIC_H + + +#ifndef BOOTMAGIC_IS_ENABLE +#define BOOTMAGIC_IS_ENABLE() true +#endif + +/* bootloader */ +#ifndef BOOTMAGIC_BOOTLOADER_KEY +#define BOOTMAGIC_BOOTLOADER_KEY KC_B +#endif +/* debug enable */ +#ifndef BOOTMAGIC_DEBUG_ENABLE_KEY +#define BOOTMAGIC_DEBUG_ENABLE_KEY KC_D +#endif +/* eeprom clear */ +#ifndef BOOTMAGIC_EEPROM_CLEAR_KEY +#define BOOTMAGIC_EEPROM_CLEAR_KEY KC_BSPACE +#endif + +/* change default layer */ +#ifndef BOOTMAGIC_DEFAULT_LAYER_0_KEY +#define BOOTMAGIC_DEFAULT_LAYER_0_KEY KC_0 +#endif +#ifndef BOOTMAGIC_DEFAULT_LAYER_1_KEY +#define BOOTMAGIC_DEFAULT_LAYER_1_KEY KC_1 +#endif +#ifndef BOOTMAGIC_DEFAULT_LAYER_2_KEY +#define BOOTMAGIC_DEFAULT_LAYER_2_KEY KC_2 +#endif +#ifndef BOOTMAGIC_DEFAULT_LAYER_3_KEY +#define BOOTMAGIC_DEFAULT_LAYER_3_KEY KC_3 +#endif + +void bootmagic(void); +bool bootmagic_scan_keycode(uint8_t keycode); + +#endif |